summaryrefslogtreecommitdiffstats
path: root/templates/statistics/machine-usage.html
diff options
context:
space:
mode:
authorSimon Rettberg2015-12-31 00:29:34 +0100
committerSimon Rettberg2015-12-31 00:29:34 +0100
commit259f3df3f0117628ce1455dd1b61a3f9e8f08920 (patch)
treefeac370e6e2601ec59f6039734f4e8c14354bc97 /templates/statistics/machine-usage.html
parent[clientlog] Fix bootup db insert query (diff)
downloadslx-admin-259f3df3f0117628ce1455dd1b61a3f9e8f08920.tar.gz
slx-admin-259f3df3f0117628ce1455dd1b61a3f9e8f08920.tar.xz
slx-admin-259f3df3f0117628ce1455dd1b61a3f9e8f08920.zip
[statistics] Add visualization of usage
Diffstat (limited to 'templates/statistics/machine-usage.html')
-rw-r--r--templates/statistics/machine-usage.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/templates/statistics/machine-usage.html b/templates/statistics/machine-usage.html
new file mode 100644
index 00000000..ffaa747b
--- /dev/null
+++ b/templates/statistics/machine-usage.html
@@ -0,0 +1,51 @@
+<div class="row">
+ <div class="col-md-12">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ {{lang_usageDetails}}
+ </div>
+ <div class="panel-body">
+ <div class="row">
+ <div class="col-sm-6">
+ <table class="table table-condensed">
+ <tr>
+ <th>Type</th>
+ <th>When</th>
+ <th>Length</th>
+ </tr>
+ {{#rows}}
+ <tr>
+ <td><span class="glyphicon glyphicon-{{glyph}}"></span></td>
+ <td>{{from}}</td>
+ <td>{{duration}}</td>
+ </tr>
+ {{/rows}}
+ </table>
+ </div>
+ <div class="col-sm-6">
+ <table class="table table-condensed">
+ {{#hasrows2}}
+ <tr>
+ <th>Type</th>
+ <th>When</th>
+ <th>Length</th>
+ </tr>
+ {{/hasrows2}}
+ {{#rows2}}
+ <tr>
+ <td><span class="glyphicon glyphicon-{{glyph}}"></span></td>
+ <td>{{from}}</td>
+ <td>{{duration}}</td>
+ </tr>
+ {{/rows2}}
+ </table>
+ </div>
+ </div>
+ <div class="timebar">&nbsp;{{{graph}}}</div>
+ <div>
+ {{lang_timebarDesc}}
+ </div>
+ </div>
+ </div>
+ </div>
+</div>