summaryrefslogtreecommitdiffstats
path: root/templates/systemstatus/diskstat.html
blob: 019dda1a8ce770808b9482b9ee45e87718270d81 (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
51
52
53
54
<div class="slx-storechart">
	{{#system}}
	<b>{{lang_systemPartition}}</b>
	<div id="circles-system"></div>
	<div>{{lang_capacity}}: {{size}}</div>
	<div>{{lang_free}}: {{free}}</div>
	{{/system}}
	{{^system}}
	<b>{{lan_availableMemoryError}}</b>
	{{/system}}
</div>
<div class="slx-storechart">
	{{#store}}
	<b>{{lang_vmStore}}</b>
	<div id="circles-store"></div>
	<div>{{lang_capacity}}: {{size}}</div>
	<div>{{lang_free}}: {{free}}</div>
	{{/store}}
	{{^store}}
	<b>{{lang_vmStoreError}}</b>
	{{/store}}
</div>
<div class="clearfix"></div>
<div>{{storeError}}</div>
<script type="text/javascript">
	{{#store}}
	Circles.create({
	id:         'circles-store',
			  radius:     60,
			  value:      {{{percent}}},
			  maxValue:   100,
			  width:      10,
			  text:       function(value){return value + '%'; },
			  colors:     ['#D3B6C6', '#{{color}}'],
			  duration:   400,
			  wrpClass:   'circles-wrp',
			  textClass:  'circles-text'
			  });
	{{/store}}
	{{#system}}
	Circles.create({
	id:         'circles-system',
			  radius:     60,
			  value:      {{{percent}}},
			  maxValue:   100,
			  width:      10,
			  text:       function(value){return value + '%'; },
			  colors:     ['#D3B6C6', '#{{color}}'],
			  duration:   400,
			  wrpClass:   'circles-wrp',
			  textClass:  'circles-text'
			  });
	{{/system}}
</script>