1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 layout_params['page_title'] = "Monitor Site List"
4 from monitor.util import diff_time
5 from time import mktime
8 <html py:layout="'sitemenu.kid'"
9 xmlns:py="http://purl.org/kid/ns#"
10 xmlns:mochi="http://www.mochi.org">
12 <div py:match="item.tag == 'content'">
16 <th><a href="${link('site', filter='good')}">Compliant(${fc['good']})</a></th>
17 <th><a href="${link('site', filter='down')}">Down(${fc['down']})</a></th>
18 <th><a href="${link('site', filter='new')}">New Sites(${fc['new']})</a></th>
19 <th><a href="${link('site', filter='pending')}">Disabled(${fc['pending']})</a></th>
20 <th><a href="${link('site', filter='all')}">All(${fc['all']})</a></th>
26 <table id="sortable_table" class="datagrid" border="1" width="100%">
33 <th mochi:format="int">Slices/Max</th>
34 <th mochi:format="int">Nodes/Total</th>
39 <tr py:for="i,site in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
43 <a class='left' href="${link('pcuview', loginbase=site.loginbase)}">${site.loginbase}</a>
44 <a class='right' href="${plc_site_uri(site.loginbase)}">
45 <img style='display: inline' border='0' src="static/images/extlink.gif" align='right'/></a>
48 <td py:content="site.enabled"></td>
50 <td>${site.slices_used}/${site.slices_total}</td>
51 <td>${site.nodes_up} / ${site.nodes_total}</td>
52 <td id="site-${site.status}" py:content="diff_time(mktime(site.last_changed.timetuple()))"></td>