diff options
Diffstat (limited to 'modules-available/statistics/templates')
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&show=stat&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&show=stat&filters={{query}}~,~hddgb={{gb}}">{{gb}} 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&show=stat&filters={{query}}~,~gbram={{gb}}">{{gb}} 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&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}} 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> |