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