give noop myops xmlrpc call a extra parameter to allow it to work with the
[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'] = "MyOps Node List"
4 from monitor.util import diff_time
5 from time import mktime
6 from links import *
7
8 ?>
9 <html py:layout="'sitemenu.kid'"
10       xmlns:py="http://purl.org/kid/ns#"
11           xmlns:mochi="http://www.mochi.org">
12
13 <div py:match="item.tag == 'content'">
14
15   <script type="text/javascript">
16     function nodelist_paginator(opts) { plekit_table_paginator(opts, "nodelist"); }
17   </script>
18
19   <center>
20   <b py:content="'BOOT: %d' % len([agg for agg in query if agg.node.observed_status == 'BOOT'])"></b> | 
21   <b py:content="'DOWN: %d' % len([agg for agg in query if agg.node.observed_status == 'DOWN'])"></b><br/>
22   </center>
23
24 <table id="nodelist" cellpadding="0" border="0" class="plekit_table sortable-onload-2 colstyle-alt no-arrow paginationcallback-nodelist_paginator max-pages-10 paginate-25">
25   <thead>
26
27     <tr class='pagesize_area'><td class='pagesize_area' colspan='10'>
28         <form class='pagesize' action='satisfy_xhtml_validator'><fieldset>
29             <input class='pagesize_input' type='text' id="nodelist_pagesize" value='25'
30                    onkeyup='plekit_pagesize_set("nodelist","nodelist_pagesize", 25);' 
31                    size='3' maxlength='3' />                                                          
32             <label class='pagesize_label'> items/page </label>                                     
33             <img class='reset' src="/planetlab/icons/clear.png" alt="reset visible size"           
34                  onmousedown='plekit_pagesize_reset("nodelist","nodelist_pagesize", 999);' />
35     </fieldset></form></td></tr>                                                                        
36     
37     <tr class='search_area'><td class='search_area' colspan='10'>
38         <div class='search'><fieldset>
39             <label class='search_label'> Search </label>                 
40             <input class='search_input' type='text' id='nodelist_search' 
41                    onkeyup='plekit_table_filter("nodelist","nodelist_search","nodelist_search_and");'
42                    size='self.search_width' maxlength='256' />                                            
43             <label>and</label>                                                                        
44             <input id='nodelist_search_and' class='search_and'                                        
45                    type='checkbox' checked='checked'                                                      
46                    onchange='plekit_table_filter("nodelist","nodelist_search","nodelist_search_and");' />
47             <img class='reset' src="/planetlab/icons/clear.png" alt="reset search"
48                  onmousedown='plekit_table_filter_reset("nodelist","nodelist_search","nodelist_search_and");' />
49     </fieldset></div></td></tr>
50     
51     <tr>
52       <th class="sortable plekit_table">ID</th>
53       <th class="sortable plekit_table">Hostname</th>
54       <th class="sortable plekit_table">Site</th>
55       <th class="sortable plekit_table">Ping</th>
56       <th class="sortable plekit_table">SSH</th>
57       <th class="sortable plekit_table">Stat</th>
58       <th class="sortable plekit_table">pcu</th>
59       <th class="sortable plekit_table">kernel</th>
60       <th class="sortable plekit_table">BootCD</th>
61       <th class="sortable plekit_table">Last_contact</th>
62   </tr>
63   </thead>
64   <tbody>
65     <tr py:for="i,node in enumerate(query)">
66       ${nodewidget.display(node=node, header=None)}
67     </tr>
68
69   </tbody>  
70 </table>
71
72 </div>
73
74 </html>