forked from HappyFaceMonitoring/HappyFaceModules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCacheDistribution.html
37 lines (36 loc) · 1.13 KB
/
CacheDistribution.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
## -*- coding: utf-8 -*-
<%inherit file="/module_base.html" />
<%def name="content()">
% if module.dataset['error_msg'] != "" and module.dataset['status']==0:
<table>
<tr>
<td class="critical"> ${module.dataset['error_msg']}</td>
</tr>
</table>
% else:
<img src=${module.dataset["filename_plot"].getArchiveUrl()} />
<div>
<input type="button" value="show details" onfocus="this.blur()" onclick="$('#${module.instance_name}_details').toggle()" />
</div>
<div class="DetailedInfo" id="${module.instance_name}_details" style="display:none;">
<table class="TableData">
<tr>
<td> datasets total </td>
<td> ${module.dataset['datasets']} </td>
</tr>
<tr>
<td> dataset acquire failed</td>
<td> ${module.dataset['failed_datasets']} </td>
</tr>
<tr>
<td> machines data acquire failed </td>
<td> ${module.dataset['failed_machines']} </td>
</tr>
<tr>
<td> warning </td>
<td> ${module.dataset['error_msg']} </td>
</tr>
</table>
</div>
% endif
</%def>