summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/templates
diff options
context:
space:
mode:
authorSimon Rettberg2016-12-02 16:12:36 +0100
committerSimon Rettberg2016-12-02 16:12:36 +0100
commit2fab92b81927328f9175d2acbb653254cd2e6d2d (patch)
tree4bd593ddd038960daa1f384ba45e2254e95c23f5 /modules-available/statistics/templates
parentAdd simple decollapse mechanism for tables: (diff)
downloadslx-admin-2fab92b81927328f9175d2acbb653254cd2e6d2d.tar.gz
slx-admin-2fab92b81927328f9175d2acbb653254cd2e6d2d.tar.xz
slx-admin-2fab92b81927328f9175d2acbb653254cd2e6d2d.zip
[statistics] Use new decollapser on front page
Diffstat (limited to 'modules-available/statistics/templates')
-rw-r--r--modules-available/statistics/templates/cpumodels.html11
-rw-r--r--modules-available/statistics/templates/id44.html11
-rw-r--r--modules-available/statistics/templates/memory.html11
-rw-r--r--modules-available/statistics/templates/newclients.html18
4 files changed, 35 insertions, 16 deletions
diff --git a/modules-available/statistics/templates/cpumodels.html b/modules-available/statistics/templates/cpumodels.html
index 20da4697..d9b0298b 100644
--- a/modules-available/statistics/templates/cpumodels.html
+++ b/modules-available/statistics/templates/cpumodels.html
@@ -13,7 +13,7 @@
<th class="text-right text-nowrap">{{lang_modelCount}}</th>
</tr>
{{#rows}}
- <tr id="{{id}}">
+ <tr id="{{id}}" class="{{collapse}}">
<td class="text-left text-nowrap filter-col" data-filter-col="systemmodel">
<table style="width:100%; table-layout: fixed;"><tr><td style="overflow:hidden;text-overflow: ellipsis;">
<a class="filter-val" data-filter-val="{{systemmodel}}" href="?do=Statistics&amp;show=stat&amp;filters={{query}}~,~systemmodel={{urlsystemmodel}}">{{systemmodel}}</a>
@@ -25,6 +25,15 @@
<td class="text-right">{{count}}</td>
</tr>
{{/rows}}
+ <tr class="slx-decollapse">
+ <td colspan="3">
+ <span class="btn-group btn-group-justified">
+ <span class="btn btn-default btn-sm">
+ <span class="glyphicon glyphicon-menu-down"></span>
+ </span>
+ </span>
+ </td>
+ </tr>
</table>
</div>
<div class="col-md-4">
diff --git a/modules-available/statistics/templates/id44.html b/modules-available/statistics/templates/id44.html
index 84b515d1..38cf028f 100644
--- a/modules-available/statistics/templates/id44.html
+++ b/modules-available/statistics/templates/id44.html
@@ -12,13 +12,22 @@
<th class="text-right">{{lang_machineCount}}</th>
</tr>
{{#rows}}
- <tr id="tmpid{{gb}}" class="{{class}}">
+ <tr id="tmpid{{gb}}" class="{{class}} {{collapse}}">
<td class="text-left text-nowrap">
<a class="filter-val" data-filter-val="{{gb}}" href="?do=Statistics&amp;show=stat&amp;filters={{query}}~,~hddgb={{gb}}">{{gb}}&thinsp;GiB</a>
</td>
<td class="text-right">{{count}}</td>
</tr>
{{/rows}}
+ <tr class="slx-decollapse">
+ <td colspan="2">
+ <span class="btn-group btn-group-justified">
+ <span class="btn btn-default btn-sm">
+ <span class="glyphicon glyphicon-menu-down"></span>
+ </span>
+ </span>
+ </td>
+ </tr>
</table>
</div>
<div class="col-sm-6">
diff --git a/modules-available/statistics/templates/memory.html b/modules-available/statistics/templates/memory.html
index ae040674..f17f55ca 100644
--- a/modules-available/statistics/templates/memory.html
+++ b/modules-available/statistics/templates/memory.html
@@ -12,13 +12,22 @@
<th class="text-right">{{lang_machineCount}}</th>
</tr>
{{#rows}}
- <tr id="ramid{{gb}}" class="{{class}}">
+ <tr id="ramid{{gb}}" class="{{class}} {{collapse}}">
<td class="text-left text-nowrap">
<a class="filter-val" data-filter-val="{{gb}}" href="?do=Statistics&amp;show=stat&amp;filters={{query}}~,~gbram={{gb}}">{{gb}}&thinsp;GiB</a>
</td>
<td class="text-right">{{count}}</td>
</tr>
{{/rows}}
+ <tr class="slx-decollapse">
+ <td colspan="2">
+ <span class="btn-group btn-group-justified">
+ <span class="btn btn-default btn-sm">
+ <span class="glyphicon glyphicon-menu-down"></span>
+ </span>
+ </span>
+ </td>
+ </tr>
</table>
</div>
<div class="col-sm-6">
diff --git a/modules-available/statistics/templates/newclients.html b/modules-available/statistics/templates/newclients.html
index e7d79818..c5c704d1 100644
--- a/modules-available/statistics/templates/newclients.html
+++ b/modules-available/statistics/templates/newclients.html
@@ -4,7 +4,7 @@
{{lang_newMachines}}
</div>
<div class="panel-body">
- <table class="table table-condensed table-striped" id="newclienttable">
+ <table class="table table-condensed table-striped">
<tr>
<th>{{lang_machine}}</th>
<th class="text-right"></th>
@@ -13,7 +13,7 @@
<th class="text-right">HDD</th>
</tr>
{{#rows}}
- <tr style="{{style}}">
+ <tr class="{{collapse}}">
<td class="text-nowrap"><a href="?do=Statistics&amp;uuid={{machineuuid}}">{{hostname}}</a></td>
<td class="text-right">{{firstseen}}</td>
<td class="{{kvmclass}}">{{kvmicon}}</td>
@@ -21,23 +21,15 @@
<td class="text-right {{hddclass}}">{{gbtmp}}&thinsp;GiB</td>
</tr>
{{/rows}}
- {{#openbutton}}
- <tr>
- <td colspan="5" onclick="slxExpandNew(this)">
+ <tr class="slx-decollapse">
+ <td colspan="5">
<span class="btn-group btn-group-justified">
- <span class="btn btn-default">
+ <span class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-menu-down"></span>
</span>
</span>
- <script type="text/javascript">
- function slxExpandNew(b) {
- $('#newclienttable').find('tr').show();
- $(b).hide();
- }
- </script>
</td>
</tr>
- {{/openbutton}}
</table>
</div>
</div>