summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol
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
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')
-rw-r--r--modules-available/rebootcontrol/templates/status-exec.html6
-rw-r--r--modules-available/rebootcontrol/templates/status-reboot.html2
-rw-r--r--modules-available/rebootcontrol/templates/status-wol.html22
3 files changed, 20 insertions, 10 deletions
diff --git a/modules-available/rebootcontrol/templates/status-exec.html b/modules-available/rebootcontrol/templates/status-exec.html
index d001941e..a3efef5f 100644
--- a/modules-available/rebootcontrol/templates/status-exec.html
+++ b/modules-available/rebootcontrol/templates/status-exec.html
@@ -16,7 +16,11 @@
{{#clients}}
<div class="list-group-item" id="client-{{machineuuid}}">
<div class="row">
- <div class="col-md-6 col-sm-8 col-xs-12 slx-bold">{{hostname}}{{^hostname}}{{clientip}}{{/hostname}}</div>
+ <div class="col-md-6 col-sm-8 col-xs-12 slx-bold">
+ <a href="?do=statistics&amp;uuid={{machineuuid}}">
+ {{hostname}}{{^hostname}}{{clientip}}{{/hostname}}
+ </a>
+ </div>
<div class="col-md-4 col-sm-2 col-xs-6 state"></div>
<div class="col-md-2 col-sm-2 col-xs-6 text-right exitCode"></div>
</div>
diff --git a/modules-available/rebootcontrol/templates/status-reboot.html b/modules-available/rebootcontrol/templates/status-reboot.html
index ff52244e..34971845 100644
--- a/modules-available/rebootcontrol/templates/status-reboot.html
+++ b/modules-available/rebootcontrol/templates/status-reboot.html
@@ -19,7 +19,7 @@
<tbody>
{{#clients}}
<tr>
- <td>{{hostname}}{{^hostname}}{{machineuuid}}{{/hostname}}</td>
+ <td><a href="?do=statistics&amp;uuid={{machineuuid}}">{{hostname}}{{^hostname}}{{machineuuid}}{{/hostname}}</a></td>
<td>{{clientip}}</td>
<td>
<span id="status-{{machineuuid}}" class="machineuuid" data-uuid="{{machineuuid}}"></span>
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>