summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates/location-subnets.html
diff options
context:
space:
mode:
authorSimon Rettberg2018-03-28 14:55:54 +0200
committerSimon Rettberg2018-03-28 14:55:54 +0200
commitafee61496e9fa59d9e024339530b38c6652bba59 (patch)
tree7f41b59d5ef49278541ab3055374afa635b258d3 /modules-available/locations/templates/location-subnets.html
parent[locations] Make subnet list editable again :) (diff)
downloadslx-admin-afee61496e9fa59d9e024339530b38c6652bba59.tar.gz
slx-admin-afee61496e9fa59d9e024339530b38c6652bba59.tar.xz
slx-admin-afee61496e9fa59d9e024339530b38c6652bba59.zip
[locations] Handle statistics permissions when showing/linking machine stats
Diffstat (limited to 'modules-available/locations/templates/location-subnets.html')
-rw-r--r--modules-available/locations/templates/location-subnets.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html
index db94be0a..69e369c2 100644
--- a/modules-available/locations/templates/location-subnets.html
+++ b/modules-available/locations/templates/location-subnets.html
@@ -69,7 +69,14 @@
{{/haveDozmod}}
{{#haveStatistics}}
<div>
- <span class="slx-ga2">{{lang_matchingMachines}}:</span> <a href="?do=Statistics&amp;show=list&amp;filters=location={{locationid}}">{{machines}} / {{machines_online}} / {{machines_used}} ({{used_percent}}%)</a>
+ <span class="slx-ga2">{{lang_matchingMachines}}:</span>
+ {{#statsLink}}
+ <a href="?do=Statistics&amp;show={{statsLink}}&amp;filters=location={{locationid}}">
+ {{/statsLink}}
+ {{machines}} / {{machines_online}} / {{machines_used}} ({{used_percent}}%)
+ {{#statsLink}}
+ </a>
+ {{/statsLink}}
</div>
{{/haveStatistics}}
</div>