summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/templates/cpumodels.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/templates/cpumodels.html')
-rw-r--r--modules-available/statistics/templates/cpumodels.html35
1 files changed, 7 insertions, 28 deletions
diff --git a/modules-available/statistics/templates/cpumodels.html b/modules-available/statistics/templates/cpumodels.html
index d89a5b2f..e133bec6 100644
--- a/modules-available/statistics/templates/cpumodels.html
+++ b/modules-available/statistics/templates/cpumodels.html
@@ -10,20 +10,20 @@
<thead>
<tr>
<th data-sort="string">{{lang_modelName}}</th>
- <th data-sort="int" class="text-right text-nowrap">{{lang_cpuCores}}</th>
- <th data-sort="int" class="text-right text-nowrap">{{lang_modelCount}}</th>
+ <th data-sort="int" class="slx-smallcol text-right">{{lang_cpuCores}}</th>
+ <th data-sort="int" class="slx-smallcol text-right">{{lang_modelCount}}</th>
</tr>
</thead>
<tbody>
{{#rows}}
- <tr id="{{id}}" class="{{collapse}}">
+ <tr id="sysmdl-{{idx}}" class="{{collapse}}">
<td data-sort-value="{{systemmodel}}" 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=summary&amp;filters={{query}}~,~systemmodel={{urlsystemmodel}}">{{systemmodel}}</a>
+ <table class="slx-ellipsis"><tr><td>
+ <a class="filter-val" data-filter-val="{{systemmodel}}" href="#">{{systemmodel}}</a>
</td></tr></table>
</td>
<td data-sort-value="{{cores}}" class="text-right filter-col" data-filter-col="realcores">
- <a class="filter-val" data-filter-val="{{cores}}" href="?do=Statistics&amp;show=summary&amp;filters={{query}}~,~realcores={{cores}}">{{cores}}</a>
+ <a class="filter-val" data-filter-val="{{cores}}" href="#">{{cores}}</a>
</td>
<td class="text-right">{{count}}</td>
</tr>
@@ -40,28 +40,7 @@
</tbody>
</table>
</div>
- <div class="col-md-4">
- <canvas id="cpumodelchart" style="width:100%;height:380px"></canvas>
- <script type="text/javascript">
- document.addEventListener("DOMContentLoaded", function() {
- var data = {{{json}}};
- var sel = false;
- new Chart(document.getElementById('cpumodelchart').getContext('2d')).Pie(data, {
- animation: false,
- tooltipTemplate: "<%if (label){%><%=label%><%}%>",
- customTooltips: function(tooltip) {
- if (sel !== false) sel.removeClass('slx-bold');
- if (!tooltip) {
- sel = false;
- return;
- }
- sel = $('#' + tooltip.text);
- sel.addClass('slx-bold');
- }
- });
- }, false);
- </script>
- </div>
+ <div class="col-md-4 auto-chart" data-chart="{{json}}" data-chart-dest="#sysmdl-"></div>
</div>
</div>
</div>