added a variety of updates to templates, to reference each other.
[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 ?>
5 <html py:layout="'sitemenu.kid'"
6       xmlns:py="http://purl.org/kid/ns#"
7           xmlns:mochi="http://www.mochi.org">
8
9   <div py:match="item.tag == 'content'">
10         <table width="100%">
11                 <thead>
12                         <tr>
13                                 <th><a href="${tg.url('site', filter='good')}">Compliant(${fc['good']})</a></th>
14                                 <th><a href="${tg.url('site', filter='down')}">Down(${fc['down']})</a></th>
15                                 <th><a href="${tg.url('site', filter='new')}">New Sites(${fc['new']})</a></th>
16                                 <th><a href="${tg.url('site', filter='pending')}">Disabled(${fc['pending']})</a></th>
17                                 <th><a href="${tg.url('site', filter='all')}">All(${fc['all']})</a></th>
18                         </tr>
19                 </thead>
20                 <tbody>
21                 <tr>
22                 <td colspan="5">
23                 <table id="sortable_table" class="datagrid" border="1" width="100%">
24                         <thead>
25                                 <tr>
26                                         <th></th>
27                                         <th>Site name</th>
28                                         <th>Status</th>
29                                         <th mochi:format="int">Slices (created / max)</th>
30                                         <th mochi:format="int">Nodes (online / registered)</th>
31                                 </tr>
32                         </thead>
33                         <tbody>
34                                 <tr py:for="i,site in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
35                                         <td></td>
36                                         <td nowrap="true"><a href="siteview?loginbase=${site.loginbase}">${site.loginbase}</a></td>
37                                         <td id="site-${site.status}" py:content="site.last_changed"></td>
38                                         <td>${site.slices_used}/${site.slices_total}</td>
39                                         <td>${site.nodes_up} / ${site.nodes_total}</td>
40                                 </tr>
41                         </tbody>
42                 </table>
43                 </td>
44                 </tr>
45                 </tbody>
46         </table>
47   </div>
48
49 </html>