forked from HappyFaceMonitoring/HappyFaceModules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhedexStats.html
42 lines (39 loc) · 1.04 KB
/
PhedexStats.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
## -*- coding: utf-8 -*-
<%inherit file="/module_base.html" />
<%def name="content()">
<table class="TableData">
<tr>
<td class="PhedexStatsTableFirstCol">Start Time</td>
<td>${module.dataset["startlocaltime"]}</td>
</tr>
<tr>
<td class="PhedexStatsTableFirstCol">End Time</td>
<td>${module.dataset["endlocaltime"]}</td>
</tr>
</table>
<table class="TableData">
<tr>
<td class="PhedexStatsTableFirstCol">Failed Transfers</td>
<td>${module.dataset["failed_transfers"]}</td>
</tr>
</table>
<input type="button" value="show/hide details" onfocus="this.blur()" onclick="$('#${module.instance_name}_details').slideToggle()" />
<div class="DetailedInfo" id="${module.instance_name}_details" style="display:none;">
<table class="TableDetails">
<tr class="TableHeader">
<td>Site Name</td>
<td>Failed Transfers</td>
<td>Origin</td>
<td>Error Message</td>
</tr>
% for info in info_list:
<tr class="report">
<td>${info['site_name'] | h}</td>
<td>${info['number']}</td>
<td>${info['origin'] | h}</td>
<td>${info['error_message'] | h}</td>
</tr>
% endfor
</table>
</div>
</%def>