modified *list templates with abreviated information
[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')}">Production(${fc['BOOT']})</a></th>
17                                 <th><a href="${link('node', filter='DEBUG')}">Debug(${fc['DEBUG']})</a></th>
18                                 <th><a href="${link('node', filter='DOWN')}">Down(${fc['DOWN']})</a></th>
19                                 <th><a href="${link('node', filter='neverboot')}">Never Booted(${fc['neverboot']})</a></th>
20                                 <th><a href="${link('node', filter='pending')}">Pending Reply(${fc['pending']})</a></th>
21                                 <th><a href="${link('node', filter='all')}">All</a></th>
22                         </tr>
23                 </thead>
24                 <tbody>
25                 <tr>
26                 <td colspan="5">
27                 <table id="sortable_table" class="datagrid" border="1" width="100%">
28                         <thead>
29                                 <tr>
30                                         <th mochi:format="int"></th>
31                                         ${nodewidget.display(node=None, header=True)}
32                                 </tr>
33                         </thead>
34                         <tbody>
35                                 <tr py:for="i,node in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
36                                         <td></td>
37                                         ${nodewidget.display(node=node, header=None)}
38                                 </tr>
39                         </tbody>
40                 </table>
41                 </td>
42                 </tr>
43                 </tbody>
44         </table>
45   </div>
46
47 </html>