diff options
Diffstat (limited to 'modules-available/rebootcontrol/templates/status-wol.html')
-rw-r--r-- | modules-available/rebootcontrol/templates/status-wol.html | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/modules-available/rebootcontrol/templates/status-wol.html b/modules-available/rebootcontrol/templates/status-wol.html index 5a53a6f8..70517f84 100644 --- a/modules-available/rebootcontrol/templates/status-wol.html +++ b/modules-available/rebootcontrol/templates/status-wol.html @@ -1,10 +1,12 @@ +<h3>{{timestamp_s}}</h3> + {{#locations}} <div class="loc">{{name}}</div> {{/locations}} <div class="clearfix slx-space"></div> {{#tasks}} -<div data-tm-id="{{.}}" data-tm-callback="wolCallback" data-tm-log="messages" data-tm-log-fail-only="true">{{lang_aWolJob}}</div> +<div data-tm-id="{{.}}" data-tm-callback="wolCallback" data-tm-log="messages">{{lang_aWolJob}}</div> {{/tasks}} {{^tasks}} <div class="alert alert-warning"> @@ -29,17 +31,23 @@ <tbody> {{#clients}} <tr> - <td>{{hostname}}{{^hostname}}{{machineuuid}}{{^machineuuid}}{{clientip}}{{/machineuuid}}{{/hostname}}</td> - <td>{{clientip}}</td> + <td> {{#machineuuid}} + <a href="?do=statistics&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> @@ -48,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; @@ -71,4 +79,4 @@ function wolCallback(task) { $do.text(txt); } } -//--></script>
\ No newline at end of file +</script> |