50b296e1659aecfea91f7955a3170d3edbed980f
[monitor.git] / web / MonitorWeb / monitorweb / templates / sitelist.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 List"
4 from links import *
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         <table width="100%">
12                 <thead>
13                         <tr>
14                                 <th><a href="${link('site', filter='good')}">Compliant(${fc['good']})</a></th>
15                                 <th><a href="${link('site', filter='down')}">Down(${fc['down']})</a></th>
16                                 <th><a href="${link('site', filter='new')}">New Sites(${fc['new']})</a></th>
17                                 <th><a href="${link('site', filter='pending')}">Disabled(${fc['pending']})</a></th>
18                                 <th><a href="${link('site', filter='all')}">All(${fc['all']})</a></th>
19                         </tr>
20                 </thead>
21                 <tbody>
22                 <tr>
23                 <td colspan="5">
24                 <table id="sortable_table" class="datagrid" border="1" width="100%">
25                         <thead>
26                                 <tr>
27                                         <th></th>
28                                         <th>Site name</th>
29                                         <th>Status</th>
30                                         <th mochi:format="int">Slices (created / max)</th>
31                                         <th mochi:format="int">Nodes (online / registered)</th>
32                                 </tr>
33                         </thead>
34                         <tbody>
35                                 <tr py:for="i,site in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
36                                         <td></td>
37                                         <td nowrap="true"><a href="${link('siteview', loginbase=site.loginbase)}">${site.loginbase}</a></td>
38                                         <td id="site-${site.status}" py:content="site.last_changed"></td>
39                                         <td>${site.slices_used}/${site.slices_total}</td>
40                                         <td>${site.nodes_up} / ${site.nodes_total}</td>
41                                 </tr>
42                         </tbody>
43                 </table>
44                 </td>
45                 </tr>
46                 </tbody>
47         </table>
48   </div>
49
50 </html>