forked from HappyFaceMonitoring/HappyFaceModules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCacheDetails.html
58 lines (57 loc) · 1.63 KB
/
CacheDetails.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
## -*- coding: utf-8 -*-
<%inherit file="/module_base.html" />
<%def name="content()">
<div>
<table class="TableData">
<tr class="TableHeader">
<th > Machine Name</th>
<th > Total Files </th>
<th> Failed files </th>
<th > Status </th>
</tr>
% for entry in statistics:
<tr>
<td >${entry['machine']}</td>
<td >${entry['files']}</td>
<td>${entry['error_count']}</td>
% if "failed" in entry['status']:
<td class="critical">
% else:
<td class='ok'>
% endif
${entry['status']}</td>
</tr>
% endfor
</table>
</div>
<div>
<input type="button" value="show files over score" onfocus="this.blur()" onclick="$('#${module.instance_name}_overscore').toggle()" />
</div>
<div class="DetailedInfo" id="${module.instance_name}_overscore" style="display:none;">
<table class="TableData">
<tr class="TableHeader">
<th width="15%"> Filename </th>
<th width="10%"> Score </th>
<th width="10%"> Size </th>
<th width="10%"> Machine </th>
</tr>
%for entry in overscore:
<tr>
<td width="70%">${entry['filename']}</td>
<td width="10%">${entry['score']}</td>
<td width ="10%">${entry['size']} MiB</td>
<td width ="10%">${entry['machine']}</td>
</tr>
%endfor
</table>
</div>
% if module.dataset['error_msg'] != "":
<table>
<tr>
<td class="critical"> ${module.dataset['error_msg']}</td>
</tr>
</table>
% else:
<img src=${module.dataset["filename_plot"].getArchiveUrl()} />
% endif
</%def>