summaryrefslogtreecommitdiffstats
path: root/modules/statistics/templates/cpumodels.html
diff options
context:
space:
mode:
authorJonathan Bauer2016-04-01 16:50:13 +0200
committerJonathan Bauer2016-04-01 16:50:13 +0200
commitdbc0d9614421e064cc62aacf116ebb783c83f2f3 (patch)
tree091844b8578ff1d9ac18edfd3cee3e63210133d7 /modules/statistics/templates/cpumodels.html
parent[ldapauth] Add homedir conf to ldap wizard (diff)
downloadslx-admin-dbc0d9614421e064cc62aacf116ebb783c83f2f3.tar.gz
slx-admin-dbc0d9614421e064cc62aacf116ebb783c83f2f3.tar.xz
slx-admin-dbc0d9614421e064cc62aacf116ebb783c83f2f3.zip
[merge] merging c3sl / fr - initial commit
Diffstat (limited to 'modules/statistics/templates/cpumodels.html')
-rw-r--r--modules/statistics/templates/cpumodels.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/modules/statistics/templates/cpumodels.html b/modules/statistics/templates/cpumodels.html
new file mode 100644
index 00000000..2f24cd92
--- /dev/null
+++ b/modules/statistics/templates/cpumodels.html
@@ -0,0 +1,51 @@
+<div class="col-md-12">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {{lang_modelStats}}
+ </div>
+ <div class="panel-body">
+ <div class="row">
+ <div class="col-md-8">
+ <table class="table table-condensed table-striped">
+ <tr>
+ <th>{{lang_modelName}}</th>
+ <th class="text-right">{{lang_cpuCores}}</th>
+ <th class="text-right">{{lang_modelCount}}</th>
+ </tr>
+ {{#rows}}
+ <tr id="{{id}}">
+ <td class="text-left slx-nowrap">
+ <a href="?do=Statistics&amp;filter=systemmodel&amp;argument={{urlsystemmodel}}">{{systemmodel}}</a>
+ </td>
+ <td class="text-right"><a href="?do=Statistics&amp;filter=realcores&amp;argument={{cores}}">{{cores}}</a></td>
+ <td class="text-right">{{count}}</td>
+ </tr>
+ {{/rows}}
+ </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('info');
+ if (!tooltip) {
+ sel = false;
+ return;
+ }
+ sel = $('#' + tooltip.text);
+ sel.addClass('info');
+ }
+ });
+ }, false);
+ </script>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>