summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/templates/status-wol.html
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-30 17:01:53 +0200
committerSimon Rettberg2022-05-30 17:01:53 +0200
commit15818f658b2d11e98d66dffd56d1929406862e94 (patch)
tree982b1cf503f540fedced63d2b3af49dff17ba109 /modules-available/rebootcontrol/templates/status-wol.html
parent[rebootcontrol] Pick better variable names (diff)
downloadslx-admin-15818f658b2d11e98d66dffd56d1929406862e94.tar.gz
slx-admin-15818f658b2d11e98d66dffd56d1929406862e94.tar.xz
slx-admin-15818f658b2d11e98d66dffd56d1929406862e94.zip
[rebootcontrol] Make machines clickable in wol/reboot/exec status page
Diffstat (limited to 'modules-available/rebootcontrol/templates/status-wol.html')
-rw-r--r--modules-available/rebootcontrol/templates/status-wol.html22
1 files changed, 14 insertions, 8 deletions
diff --git a/modules-available/rebootcontrol/templates/status-wol.html b/modules-available/rebootcontrol/templates/status-wol.html
index 3a8de68f..70517f84 100644
--- a/modules-available/rebootcontrol/templates/status-wol.html
+++ b/modules-available/rebootcontrol/templates/status-wol.html
@@ -31,17 +31,23 @@
<tbody>
{{#clients}}
<tr>
- <td>{{hostname}}{{^hostname}}{{machineuuid}}{{^machineuuid}}{{clientip}}{{/machineuuid}}{{/hostname}}</td>
- <td>{{clientip}}</td>
+ <td>
{{#machineuuid}}
+ <a href="?do=statistics&amp;uuid={{machineuuid}}">
+ {{hostname}}{{^hostname}}{{machineuuid}}{{/hostname}}
+ </a>
+ {{/machineuuid}}
+ {{^machineuuid}}
+ {{hostname}}{{^hostname}}{{clientip}}{{/hostname}}
+ {{/machineuuid}}
+ </td>
+ <td>{{clientip}}</td>
<td>
+ {{#machineuuid}}
<span id="status-{{machineuuid}}" class="machineuuid" data-uuid="{{machineuuid}}"></span>
<span id="spinner-{{machineuuid}}" class="glyphicon glyphicon-refresh slx-rotation"></span>
- </td>
- {{/machineuuid}}
- {{^machineuuid}}
- <td></td>
{{/machineuuid}}
+ </td>
</tr>
{{/clients}}
</tbody>
@@ -50,7 +56,7 @@
<a class="text-muted" href="#debug-out" data-toggle="collapse">Debug</a>
<pre id="debug-out" class="collapse"></pre>
-<script><!--
+<script>
function wolCallback(task) {
if (task.statusCode === 'TASK_WAITING' || task.statusCode === 'TASK_PROCESSING') {
stillActive = 25;
@@ -73,4 +79,4 @@ function wolCallback(task) {
$do.text(txt);
}
}
-//--></script>
+</script>