summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/templates/machine-usage.html
blob: ba6ae5b1a0797686cff54d3c79fd7d043e67207f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<div class="row">
	<div class="col-md-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				{{lang_usageDetails}}
			</div>
			<div class="panel-body">
				{{#isclient}}
					<div class="row">
						<div class="col-md-6 sticky-table" style="max-height:400px" id="usage-list">
							<table class="table table-condensed">
								<thead>
								<tr>
									<th>{{lang_eventType}}</th>
									<th>{{lang_when}}</th>
									<th>{{lang_duration}}</th>
								</tr>
								</thead>
								{{#rows}}
									<tr>
										<td><span class="glyphicon glyphicon-{{glyph}}"></span></td>
										<td>{{from}}</td>
										<td>{{duration}}</td>
									</tr>
								{{/rows}}
							</table>
						</div>
						<div class="col-md-6 hidden-sm">
							<div class="pull-right" style="max-width: 290px" id="usage-pie" data-chart="{{chart}}"></div>
							<div class="clearfix"></div>
						</div>
						<script>
							document.addEventListener('DOMContentLoaded', function () {
								var element = document.getElementById("usage-list");
								element.scrollTop = element.scrollHeight;
								makeUsagePie($('#usage-pie'));
							});
						</script>
					</div>
				{{/isclient}}
				<div class="timebar">&nbsp;{{{graph}}}</div>
				{{#isclient}}
					<div>
						{{lang_timebarDesc}}
					</div>
				{{/isclient}}
			</div>
		</div>
	</div>
</div>