Commit 1571ffab7eafba7698962b83b0be2227ce1f3ba0
1 parent
c5336a0f
Exists in
dev
UI changes on agent_detail
Showing
3 changed files
with
23 additions
and
11 deletions
Show diff stats
CHANGELOG
VERSION
src/core/pyros_django/dashboard/templates/dashboard/agent_detail.html
... | ... | @@ -33,7 +33,10 @@ |
33 | 33 | .violet{ |
34 | 34 | color : violet; |
35 | 35 | } |
36 | - .table{ | |
36 | + #agentsst_table{ | |
37 | + max-width: fit-content; | |
38 | + } | |
39 | + #cmd_table{ | |
37 | 40 | //max-width:90vw; |
38 | 41 | table-layout: fixed; |
39 | 42 | } |
... | ... | @@ -46,12 +49,17 @@ |
46 | 49 | overflow:hidden; |
47 | 50 | word-wrap: break-word; |
48 | 51 | } |
52 | + .date_td{ | |
53 | + max-width: fit-content; | |
54 | + word-wrap: none; | |
55 | + overflow: none; | |
56 | + } | |
49 | 57 | #td_result{ |
50 | 58 | max-width:20vw; |
51 | 59 | } |
52 | 60 | .theader{ |
53 | 61 | text-align: center; |
54 | - min-width:7vw; | |
62 | + //min-width:7vw; | |
55 | 63 | max-width: 12vw; |
56 | 64 | vertical-align:top; |
57 | 65 | } |
... | ... | @@ -119,13 +127,13 @@ |
119 | 127 | {% endcomment %} |
120 | 128 | |
121 | 129 | <h2 id="cmd_unimplemented_message" style="color:red;"></h2> |
122 | - <h2 id="cmdform_exiting" style="color:red;display:none" > {{ agent_name }} is not available.</h2> | |
130 | + <h2 id="cmdform_exiting" style="color:red;display:none" > {{ agent_name }} is OFF.</h2> | |
123 | 131 | |
124 | 132 | {% endif %} |
125 | 133 | {% if managed_agents != None %} |
126 | 134 | <div> |
127 | 135 | <h2> Managed agents </h2> |
128 | - <table | |
136 | + <table id="agentsst_table" | |
129 | 137 | class="table table-sm table-bordered tablesorter"> |
130 | 138 | <thead> |
131 | 139 | <tr> |
... | ... | @@ -196,10 +204,10 @@ |
196 | 204 | <th class="theader align-top">Status </th> |
197 | 205 | <th class="theader align-top small-cln">Validity<br> (s)</th> |
198 | 206 | <th class="theader align-top small-cln">Timeout<br> (s)</th> |
199 | - <th class="theader align-top">Deposit<br> (UTC)</th> | |
200 | - <th class="theader align-top">Read<br> (UTC)</th> | |
201 | - <th class="theader align-top">Exec start <br>(UTC)</th> | |
202 | - <th class="theader align-top">Exec end <br>(UTC)</th> | |
207 | + <th class="theader align-top date_td">Deposit<br> (UTC)</th> | |
208 | + <th class="theader align-top date_td">Read<br> (UTC)</th> | |
209 | + <th class="theader align-top date_td">Exec start <br>(UTC)</th> | |
210 | + <th class="theader align-top date_td">Exec end <br>(UTC)</th> | |
203 | 211 | <th class="theader align-top small-cln">Exec time <br>(s)</th> |
204 | 212 | <th class="theader align-top">Result</th> |
205 | 213 | </tr> |
... | ... | @@ -496,10 +504,10 @@ |
496 | 504 | fetch("/api/agent_survey/{{agent_name}}?format=json").then(response => response.json()).then(function(data){ |
497 | 505 | app2.agent = data; |
498 | 506 | if (data.status == "EXITING"){ |
499 | - $("#agent_title").text(data.name + " is not available").css("color","red") | |
507 | + $("#agent_title").text(data.name + " (OFF)").css("color","red") | |
500 | 508 | } |
501 | 509 | else{ |
502 | - $("#agent_title").text(data.name + " is available").css("color","green") | |
510 | + $("#agent_title").text(data.name + " (ON)").css("color","green") | |
503 | 511 | } |
504 | 512 | |
505 | 513 | if (previous_status != data.status){ | ... | ... |