53bbe5b07ae420b05b40ffd38fb2be14b211f3dd
[monitor.git] / web / MonitorWeb / monitorweb / templates / nodelist.kid
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <?python
3 layout_params['page_title'] = "Monitor Node List"
4 from monitor.util import diff_time
5 from time import mktime
6 from links import *
7 ?>
8 <html py:layout="'sitemenu.kid'"
9       xmlns:py="http://purl.org/kid/ns#"
10           xmlns:mochi="http://www.mochi.org">
11
12   <div py:match="item.tag == 'content'">
13         <table width="100%">
14                 <thead>
15                         <tr>
16                                 <th><a href="${link('node', filter='boot')}">Prod(${fc['boot']})</a></th>
17                                 <th><a href="${link('node', filter='down')}">Down(${fc['down']})</a></th>
18                                 <th><a href="${link('node', filter='monitordebug')}">Errors(${fc['debug']})</a></th>
19                                 <th><a href="${link('node', filter='diagnose')}">Diagnose (${fc['diagnose']})</a></th>
20                                 <th><a href="${link('node', filter='disabled')}">Disabled (${fc['disabled']})</a></th>
21                                 <th><a href="${link('node', filter='neverboot')}">Never Booted(${fc['neverboot']})</a></th>
22                                 <!--th><a href="${link('node', filter='pending')}">Pending Reply(${fc['pending']})</a></th-->
23                                 <th><a href="${link('node', filter='all')}">All</a></th>
24                         </tr>
25                 </thead>
26                 <tbody>
27                 <tr>
28                 <td colspan="7">
29                 <table id="sortable_table" class="datagrid" border="1" width="100%">
30                         <thead>
31                                 <tr>
32                                         <th mochi:format="int"></th>
33                                         ${nodewidget.display(node=None, header=True)}
34                                 </tr>
35                         </thead>
36                         <tbody>
37                                 <tr py:for="i,node in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
38                                         <td></td>
39                                         ${nodewidget.display(node=node, header=None)}
40                                 </tr>
41                         </tbody>
42                 </table>
43                 </td>
44                 </tr>
45                 </tbody>
46         </table>
47   </div>
48
49 </html>