added references to google gadgets
[monitor.git] / web / MonitorWeb / monitorweb / templates / sitesummary.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'] = "MyOps Detail View"
4 from monitor.util import diff_time
5 from monitor import config
6 from time import mktime
7 from pcucontrol.reboot import pcu_name, model_to_object
8 from links import *
9 ?>
10 <html xmlns:py="http://purl.org/kid/ns#"
11           xmlns:mochi="http://www.mochi.org">
12   <head>
13     <link href="http://monitor.planet-lab.org/monitor/static/css/style.css" type="text/css" rel="stylesheet" />
14   </head>
15
16         <h3>Nodes for site ${loginbase}</h3> 
17                 <p>Working on the color...</p>
18                 <p py:if="len(nodequery) == 0">
19                         There are no registered nodes for this site.
20                 </p>
21                 <table py:if="len(nodequery) > 0" id="sortable_table" class="datagrid" border="1" width="100%">
22                         <thead>
23                                 <tr>
24                                         <th>History</th>
25                                         <th>Hostname</th>
26                                         <th>Status</th>
27                                 </tr>
28                         </thead>
29                         <tbody>
30                                 <tr py:for="i,agg in enumerate(nodequery)" class="${i%2 and 'odd' or 'even'}" >
31                                         <td><a target="_blank" href="nodehistory?hostname=${agg.node.hostname}">history</a></td>
32                                         <td id="node-${agg.node.observed_status}" nowrap="true" >
33                                                 <a class="ext-link" target="_blank" href="${plc_node_uri_id(agg.node.plc_node_stats['node_id'])}">
34                                                         <span class="icon">${agg.node.hostname}</span></a>
35                                         </td>
36                                         <td py:content="agg.node.observed_status" nowrap="true" ></td>
37                                 </tr>
38                         </tbody>
39                 </table>
40
41 </html>