dc3bf922b5d5e973bf711d9200e547ba0756390f
[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 View"
4 ?>
5 <html py:layout="'sitemenu.kid'"
6       xmlns:py="http://purl.org/kid/ns#">
7
8   <div py:match="item.tag == 'content'">
9         <table width="100%">
10                 <thead>
11                         <tr>
12                                 <th><a href="${tg.url('node', filter='BOOT')}">Production(${fc['BOOT']})</a></th>
13                                 <th><a href="${tg.url('node', filter='DEBUG')}">Debug(${fc['DEBUG']})</a></th>
14                                 <th><a href="${tg.url('node', filter='DOWN')}">Down(${fc['DOWN']})</a></th>
15                                 <th><a href="${tg.url('node', filter='neverboot')}">Never Booted(${fc['neverboot']})</a></th>
16                                 <th><a href="${tg.url('node', filter='pending')}">Pending Reply(${fc['pending']})</a></th>
17                                 <th><a href="${tg.url('node', filter='all')}">All</a></th>
18                         </tr>
19                 </thead>
20                 <tbody>
21                 <tr>
22                 <td colspan="5">
23                 <table border="1">
24                         <thead>
25                                 <tr>
26                                         <th>Hostname</th>
27                                         <th>ping</th>
28                                         <th>ssh</th>
29                                         <th>pcu</th>
30                                         <th>status</th>
31                                         <th>kernel</th>
32                                         <th>last_contact</th>
33                                 </tr>
34                         </thead>
35                         <tbody>
36                                 <tr py:for="i,node in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
37                                   <td nowrap="true" py:content="node.hostname"></td>
38                                   <td py:content="node.ping_status"></td>
39                                   <td py:content="node.ssh_status"></td>
40                                   <td py:content="node.pcu_status"></td>
41                                   <td py:content="node.observed_status"></td>
42                                   <td nowrap="true" py:content="node.kernel"></td>
43                                   <td py:content="node.plc_node_stats['last_contact']"></td>
44                                 </tr>
45                         </tbody>
46                 </table>
47                 </td>
48                 </tr>
49                 </tbody>
50         </table>
51   </div>
52
53 </html>