vigiboard / dashboard / templates / dashboard_history_table.html @ 805cc54a
History | View | Annotate | Download (917 Bytes)
1 | 805cc54a | Thomas ANDREJAK | <html xmlns:py="http://genshi.edgewall.org/" |
---|---|---|---|
2 | xmlns:xi="http://www.w3.org/2001/XInclude" |
||
3 | py:strip=""> |
||
4 | |||
5 | <py:def function="history_table(history,error)"> |
||
6 | |||
7 | <p py:if="(not history or len(history) == 0) and error == True"> |
||
8 | There is no history. |
||
9 | </p>
|
||
10 | |||
11 | <py:if test="history and len(history) > 0"> |
||
12 | <table style="width: 100%"> |
||
13 | <thead>
|
||
14 | <tr style="background-color:#F8F8F8"> |
||
15 | <td>ID</td> |
||
16 | <td>Host</td> |
||
17 | <td>Service</td> |
||
18 | <td>Time</td> |
||
19 | <td>User</td> |
||
20 | <td>Type</td> |
||
21 | <td>Value</td> |
||
22 | <td>Text</td> |
||
23 | </tr>
|
||
24 | </thead>
|
||
25 | <tbody>
|
||
26 | <py:for each="(id,host,service,time,user,type,value,text,class_tr,class_value) in history"> |
||
27 | <tr py:attrs="class_tr"> |
||
28 | <td>${id}</td> |
||
29 | <td>${host}</td> |
||
30 | <td>${service}</td> |
||
31 | <td>${time}</td> |
||
32 | <td>${user}</td> |
||
33 | <td>${type}</td> |
||
34 | <td py:attrs="class_value">${value}</td> |
||
35 | <td>${text}</td> |
||
36 | </tr>
|
||
37 | </py:for>
|
||
38 | </tbody>
|
||
39 | </table>
|
||
40 | </py:if>
|
||
41 | |||
42 | </py:def>
|
||
43 | |||
44 | </html> |