Commit 1571ffab7eafba7698962b83b0be2227ce1f3ba0

Authored by Alexis Koralewski
1 parent c5336a0f
Exists in dev

UI changes on agent_detail

CHANGELOG
  1 +25-11-2022 (AKo): v0.6.13.1
  2 + - Add debug mode to agentSST
  3 + - UI changes on agent_detail
  4 +
1 5 25-11-2022 (AKo): v0.6.13.0
2 6 - Add is_active field for agents in tnc obsconfig
3 7 - Add new colors in agents_cmds and agent_detail for cmd status
... ...
VERSION
1   -0.6.13.0
2 1 \ No newline at end of file
  2 +0.6.13.1
3 3 \ No newline at end of file
... ...
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){
... ...