added a variety of updates to templates, to reference each other.
[monitor.git] / web / MonitorWeb / monitorweb / templates / nodeview.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 from monitor.util import diff_time
5 from links import *
6 ?>
7 <html   py:layout="'sitemenu.kid'"
8         xmlns:py="http://purl.org/kid/ns#"
9         xmlns:mochi="http://www.mochi.org">
10
11   <div py:match="item.tag == 'content'">
12     <h3>Node Status</h3>
13                 <table id="sortable_table" class="datagrid" border="1" width="100%">
14                         <thead>
15                                 <tr>
16                                         <th mochi:format="int"></th>
17                                         <th mochi:format="str">Site</th>
18                                         <th>Hostname</th>
19                                         <th>ping</th>
20                                         <!--th>ssh</th-->
21                                         <th>pcu</th>
22                                         <th>kernel</th>
23                                         <th>last_contact</th>
24                                 </tr>
25                         </thead>
26                         <tbody>
27                                 <tr py:for="i,node in enumerate(nodequery)" class="${i%2 and 'odd' or 'even'}" >
28                                         <td></td>
29                                         <td><a class="ext-link" href="${plc_site_link_id(node.plc_node_stats['site_id'])}">
30                                                         <span class="icon">${node.loginbase}</span></a>
31                                         </td>
32                                         <td id="node-${node.observed_status}" nowrap="true" >
33                                                 <a class="ext-link" href="${plc_node_link(node.hostname)}">
34                                                         <span class="icon">${node.hostname}</span></a>
35                                         </td>
36                                         <td py:content="node.ping_status"></td>
37                                         <td py:if="node.pcu_short_status != 'none'" id="status-${node.pcu_short_status}">
38                                                 <a href="pcuview?pcuid=${node.plc_node_stats['pcu_ids']}">${node.pcu_short_status}</a></td>
39                                         <td py:if="node.pcu_short_status == 'none'" id="status-${node.pcu_short_status}">
40                                                 ${node.pcu_short_status}</td>
41                                         <td nowrap="true" py:content="node.kernel"></td>
42                                         <td py:content="diff_time(node.plc_node_stats['last_contact'])"></td>
43                                 </tr>
44                         </tbody>
45                 </table>
46     <h3 py:if="node.pcu_short_status != 'none'">PCU Status</h3>
47     <h3>Actions Taken</h3>
48   </div>
49
50 </html>