Commit 8f80cc6ed949d1b70feb9e01e79a0fcb105d4b1e

Authored by Alexis Koralewski
1 parent c636598c
Exists in dev

visual changes

src/core/pyros_django/dashboard/templates/dashboard/agent_detail.html
@@ -27,12 +27,12 @@ @@ -27,12 +27,12 @@
27 .table{ 27 .table{
28 width:auto; 28 width:auto;
29 } 29 }
30 - h1{  
31 - margin-bottom: 5vh; 30 + h2{
  31 + margin-top: 5vh;
32 } 32 }
33 </style> 33 </style>
34 <div> 34 <div>
35 - <h1> {{ agent_name }} detail </h1> 35 + <h1> {{ agent_name }} </h1>
36 {% if managed_by %} 36 {% if managed_by %}
37 <p> This agent is managed by <a href="{% url 'agent_detail' managed_by %}">{{ managed_by }} </a></p> 37 <p> This agent is managed by <a href="{% url 'agent_detail' managed_by %}">{{ managed_by }} </a></p>
38 {% endif %} 38 {% endif %}
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </div> 41 </div>
42 {% if CAN_SEND_COMMAND %} 42 {% if CAN_SEND_COMMAND %}
43 {% if specific_cmd_with_args|length > 0 %} 43 {% if specific_cmd_with_args|length > 0 %}
44 - <div><h1> Send command to {{agent_name}}</h1> 44 + <div><h2> Send command to {{agent_name}}</h2>
45 45
46 46
47 47
@@ -69,13 +69,13 @@ @@ -69,13 +69,13 @@
69 </form> 69 </form>
70 </div> 70 </div>
71 {% else %} 71 {% else %}
72 - <h1 style="color:red;"> {{ agent_name }} is not available.</h1> 72 + <h2 style="color:red;"> {{ agent_name }} is not available.</h2>
73 73
74 {% endif %} 74 {% endif %}
75 {% endif %} 75 {% endif %}
76 {% if managed_agents != None %} 76 {% if managed_agents != None %}
77 <div> 77 <div>
78 - <h1> Managed agents </h1> 78 + <h2> Managed agents </h2>
79 <table 79 <table
80 class="table table-sm table-bordered tablesorter"> 80 class="table table-sm table-bordered tablesorter">
81 <thead> 81 <thead>
@@ -126,7 +126,7 @@ @@ -126,7 +126,7 @@
126 </table> 126 </table>
127 </div> 127 </div>
128 {% endif %} 128 {% endif %}
129 - <br><h1> Commands <span style="color:green;">received</span> & <span style="color:blue;">sent</span> </h1><br> 129 + <br><h2> Commands <span style="color:green;">received</span> & <span style="color:blue;">sent</span> </h2><br>
130 {% if commands %} 130 {% if commands %}
131 <div> 131 <div>
132 <table 132 <table
@@ -190,7 +190,7 @@ @@ -190,7 +190,7 @@
190 </div> 190 </div>
191 {% if not error_message %} 191 {% if not error_message %}
192 <div> 192 <div>
193 -<h1> Last logs : </h1> 193 +<h2> Last logs : </h2>
194 <pre id="log_content"> 194 <pre id="log_content">
195 {% comment %} {% for line in log_last_30_lines %} 195 {% comment %} {% for line in log_last_30_lines %}
196 {{ line }} 196 {{ line }}
@@ -199,7 +199,7 @@ @@ -199,7 +199,7 @@
199 </pre> 199 </pre>
200 </div> 200 </div>
201 {% else %} 201 {% else %}
202 -<h1> {{ error_message }} </h1> 202 +<h2> {{ error_message }} </h2>
203 {% endif %} 203 {% endif %}
204 <a class="btn btn-info" href={% url 'agents_state' %}> Go back to agents state </a> 204 <a class="btn btn-info" href={% url 'agents_state' %}> Go back to agents state </a>
205 {% csrf_token %} 205 {% csrf_token %}