added references to google gadgets
[monitor.git] / web / MonitorWeb / monitorweb / templates / nodehistory.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 Node History"
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         <h3>Node History : ${hostname}</h3>
14         <table width="100%">
15                 <tbody>
16                 <tr>
17                 <td>
18                 <table id="sortable_table" class="datagrid" border="1" width="100%">
19                         <thead>
20                                 <tr>
21                                         <th>Last Check</th>
22                                         <th>Last Change</th>
23                                         <th>hostname</th>
24                                         <th>Status</th>
25                                 </tr>
26                         </thead>
27                         <tbody>
28                                 <tr py:for="i,node in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
29                                         <td py:content="node.last_checked"></td>
30                                         <td py:content="diff_time(mktime(node.last_changed.timetuple()))"></td>
31                                         <td nowrap="true">
32                                                 <a target="_top" href="${link('pcuview', hostname=node.hostname)}" py:content="node.hostname">your.host.org</a></td>
33                                         <td id="node-${node.status}" py:content="node.status"></td>
34                                 </tr>
35                         </tbody>
36                 </table>
37                 </td>
38                 </tr>
39                 </tbody>
40         </table>
41   </div>
42
43 </html>