diff options
author | Christoph Schulthess | 2017-03-01 16:14:49 +0100 |
---|---|---|
committer | Christoph Schulthess | 2017-03-01 16:14:49 +0100 |
commit | 0edfd21498c514e9f5da9aea10fc2082fe6fe834 (patch) | |
tree | ad3c3a281517bab29a1d94240f09c682c960312f /modules-available/debugconfig/templates/relaystatus.html | |
parent | Merge branch 'master' of git.openslx.org:openslx-ng/slx-admin into remote-debug (diff) | |
download | slx-admin-0edfd21498c514e9f5da9aea10fc2082fe6fe834.tar.gz slx-admin-0edfd21498c514e9f5da9aea10fc2082fe6fe834.tar.xz slx-admin-0edfd21498c514e9f5da9aea10fc2082fe6fe834.zip |
Added active relay list to debugconfig
Diffstat (limited to 'modules-available/debugconfig/templates/relaystatus.html')
-rw-r--r-- | modules-available/debugconfig/templates/relaystatus.html | 60 |
1 files changed, 47 insertions, 13 deletions
diff --git a/modules-available/debugconfig/templates/relaystatus.html b/modules-available/debugconfig/templates/relaystatus.html index 60e4c494..d38b3735 100644 --- a/modules-available/debugconfig/templates/relaystatus.html +++ b/modules-available/debugconfig/templates/relaystatus.html @@ -1,18 +1,52 @@ <div class="panel panel-default"> - <div class="panel-heading">Relay Status for task: {{taskid}}</div> + <div class="panel-heading"> + Active relays + </div> <div class="panel-body"> - <div data-tm-id="{{taskid}}" data-tm-log="messages"></div> + <table class="table table-striped table-condensed"> + <thead> + <tr> + <th>Relay ID</th> + <th>BWLP client</th> + <th>Debug Server</th> + <th> + <form method="post"> + <input type="hidden" name="token" value={{token}}> + <input type="hidden" name="action" value="refreshList"> + <button type="submit" class="btn btn-default pull-right btn-xs" title="Refresh relay list"><span class="glyphicon glyphicon-refresh"></span></button> + </form> + </th> + </tr> + </thead> + <tbody> + {{#activeRelays}} + <tr> + <td>{{id}}</td> + <td>{{bwlpclient}}</td> + <td>{{debugserver}}</td> + <td> + <div class="btn-group pull-right"> + <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#log" title="Show log"><span class="glyphicon glyphicon-paperclip"></span></button> + <div id="log" class="modal fade" tabindex="-1" role="dialog"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header">Relay ID: {{id}}</div> + <div class="modal-body" data-tm-id="{{id}}" data-tm-log="messages"></div> + <div class="modal-footer"> + <a class="btn btn-primary" data-dismiss="modal">Close</a> + </div> + </div> + </div> + </div> + </div> + </td> + </tr> + {{/activeRelays}} + </tbody> + </table> + <!-- </div> + <div data-tm-id="{{id}}" data-tm-log="messages"> + </div> --> </div> </div> - -<!-- <script type="text/javascript"> - function restartCb(task) - { - console.log("here"); - if (!task) - console.log("nothing"); - else - console.log("something"); - } -</script> -->
\ No newline at end of file |