added action list, for any current acknowledged problems, as well as un-acknowledged...
[monitor.git] / web / MonitorWeb / monitorweb / templates / siteview.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 Site View"
4 from monitor.util import diff_time
5 ?>
6 <html py:layout="'sitemenu.kid'"
7       xmlns:py="http://purl.org/kid/ns#"
8           xmlns:mochi="http://www.mochi.org">
9
10   <div py:match="item.tag == 'content'">
11     <h3>Site Status</h3>
12                 <table id="sub-table" border="1" width="100%">
13                         <thead>
14                                 <tr>
15                                         <th>Site name</th>
16                                         <th>Status</th>
17                                         <th>Enabled</th>
18                                         <th>Slices (created / max)</th>
19                                         <th>Nodes (online / registered)</th>
20                                 </tr>
21                         </thead>
22                         <tbody>
23                                 <tr py:for="i,site in enumerate(sitequery)" class="${i%2 and 'odd' or 'even'}" >
24                                   <td nowrap="true"><a href="">${site.loginbase}</a></td>
25                                   <td id="site-${site.status}" py:content="site.last_changed"></td>
26                                   <td py:content="site.enabled"></td>
27                                   <td>${site.slices_used}/${site.slices_total}</td>
28                                   <td>${site.nodes_up} / ${site.nodes_total}</td>
29                                 </tr>
30                         </tbody>
31                 </table>
32     <h3>Node List</h3>
33                 <table id="sortable_table" class="datagrid" border="1" width="100%">
34                         <thead>
35                                 <tr>
36                                         <th mochi:format="int"></th>
37                                         <th>Hostname</th>
38                                         <th>ping</th>
39                                         <!--th>ssh</th-->
40                                         <th>pcu</th>
41                                         <th>kernel</th>
42                                         <th>last_contact</th>
43                                 </tr>
44                         </thead>
45                         <tbody>
46                                 <tr py:for="i,node in enumerate(nodequery)" class="${i%2 and 'odd' or 'even'}" >
47                                         <td></td>
48                                         <td id="node-${node.observed_status}" nowrap="true"><a href="nodeview?hostname=${node.hostname}" py:content="node.hostname">your.host.org</a></td>
49                                         <td py:content="node.ping_status"></td>
50                                         <td id="status-${node.pcu_short_status}" py:content="node.pcu_short_status"></td>
51                                         <td nowrap="true" py:content="node.kernel"></td>
52                                         <td py:content="diff_time(node.plc_node_stats['last_contact'])"></td>
53                                 </tr>
54                         </tbody>
55                 </table>
56   </div>
57
58 </html>