forked from HappyFaceMonitoring/HappyFaceModules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CacheSummary.html
30 lines (29 loc) · 976 Bytes
/
CacheSummary.html
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
## -*- coding: utf-8 -*-
<%inherit file="/module_base.html" />
<%def name="content()">
% if module.dataset['error'] == 4:
<table>
<tr>
<td class="critical"> ${module.dataset['error_msg']}</td>
</tr>
</table>
% else:
<table class="TableData">
<tr class="TableHeader">
<th width="15%"> Number of Files</th>
<th width="15%"> Total Size </th>
<th width="15%"> Available </th>
<th width="15%"> Used </th>
<th width="15%"> Average Score </th>
<th width="15%"> Caches unavailable </th>
</tr>
<tr>
<td width="15%">${module.dataset['total_files']}</td>
<td width="15%">${module.dataset['size']} GiB</td>
<td width="15%">${module.dataset['avail']} GiB</td>
<td width="15%">${module.dataset['used']} GiB</td>
<td width="15%">${module.dataset['score']}</td>
<td width="15%">${module.dataset['error']}</td>
</table>
% endif
</%def>