diff options
author | Simon Rettberg | 2020-04-22 18:53:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-04-22 18:53:25 +0200 |
commit | 932ed98553b5a4ff97c705f75e268958d1243b22 (patch) | |
tree | 9283acdf1c179abf6e7f9691b2298a302a7d4639 | |
parent | [rebootcontrol] Update translations, fix typo (diff) | |
download | slx-admin-932ed98553b5a4ff97c705f75e268958d1243b22.tar.gz slx-admin-932ed98553b5a4ff97c705f75e268958d1243b22.tar.xz slx-admin-932ed98553b5a4ff97c705f75e268958d1243b22.zip |
[rebootcontrol] Add button to subnet list to show all matching clients
-rw-r--r-- | modules-available/rebootcontrol/config.json | 3 | ||||
-rw-r--r-- | modules-available/rebootcontrol/templates/subnet-list.html | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/modules-available/rebootcontrol/config.json b/modules-available/rebootcontrol/config.json index f823e2eb..4608665b 100644 --- a/modules-available/rebootcontrol/config.json +++ b/modules-available/rebootcontrol/config.json @@ -3,6 +3,7 @@ "collapse": true, "dependencies": [ "locations", - "js_stupidtable" + "js_stupidtable", + "statistics" ] }
\ No newline at end of file diff --git a/modules-available/rebootcontrol/templates/subnet-list.html b/modules-available/rebootcontrol/templates/subnet-list.html index 1c8aac38..6df0c4f6 100644 --- a/modules-available/rebootcontrol/templates/subnet-list.html +++ b/modules-available/rebootcontrol/templates/subnet-list.html @@ -20,7 +20,12 @@ {{#subnets}} <tr> <td> - <a href="?do=rebootcontrol&show=subnet&what=subnet&id={{subnetid}}">{{cidr}}</a> + <div style="display: inline-block; min-width: 10em"> + <a href="?do=rebootcontrol&show=subnet&what=subnet&id={{subnetid}}">{{cidr}}</a> + </div> + <a href="?do=statistics&show=list&filters=clientip%20=%20{{cidr}}" class="btn btn-default btn-xs"> + <span class="glyphicon glyphicon-eye-open"></span> + </a> </td> <td class="text-center">{{#fixed}}<span class="glyphicon glyphicon-lock"></span>{{/fixed}}</td> <td class="text-center">{{#isdirect}}<span class="glyphicon glyphicon-ok"></span>{{/isdirect}}</td> |