diff options
Diffstat (limited to 'modules-available/statistics/templates/summary.html')
-rw-r--r-- | modules-available/statistics/templates/summary.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/modules-available/statistics/templates/summary.html b/modules-available/statistics/templates/summary.html new file mode 100644 index 00000000..5f16fd89 --- /dev/null +++ b/modules-available/statistics/templates/summary.html @@ -0,0 +1,33 @@ +<div class="col-md-12"> + <div class="panel panel-default"> + <div class="panel-body"> + <div> + {{lang_knownMachines}}: <b>{{known}}</b>  + <a href="?do=Statistics&filter=state&argument=on">{{lang_onlineMachines}}</a>: <b>{{online}}</b>  + <a href="?do=Statistics&filter=state&argument=occupied">{{lang_inUseMachines}}</a>: <b>{{used}}</b> (<b>{{usedpercent}}%</b>) + </div> + {{#badhdd}} + <div> + <span class="glyphicon glyphicon-exclamation-sign red"></span> + <a href="?do=Statistics&filter=badsectors&argument=10"> + {{lang_withBadSectors}}: <b>{{badhdd}}</b> + </a> + </div> + {{/badhdd}} + </div> + </div> + <div> + <canvas id="usagehist" style="width:100%;height:150px"></canvas> + <script type="text/javascript"> + document.addEventListener("DOMContentLoaded", function() { + var data = {{{json}}}; + var sel = false; + new Chart(document.getElementById('usagehist').getContext('2d')).Line(data, { + animation: false, + pointHitDetectionRadius: 5 + }); + }, false); + </script> + </div> +</div> + |