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'] = "MyOps Site History"
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'">
13 <h3>Site History : ${loginbase}</h3>
18 <table id="sortable_table" class="datagrid" border="1" width="100%">
21 <th mochi:format="int"></th>
25 <th mochi:format="int">Slices/Max</th>
26 <th mochi:format="int">Nodes/Total</th>
31 <tr py:for="i,site in enumerate(query)">
35 <a class='left' href="${link('pcuview', loginbase=site.loginbase)}">${site.loginbase}</a>
36 <a class='right' href="${plc_site_uri_id(site.plc_siteid)}">
37 <img style='display: inline' border='0' src="static/images/extlink.gif" align='right'/></a>
40 <td py:content="site.enabled"></td>
41 <td id="site-${site.penalty_level}">${site.penalty_level}</td>
42 <td>${site.slices_used}/${site.slices_total}</td>
43 <td>${site.nodes_up} / ${site.nodes_total}</td>
44 <td id="site-${site.status}" py:content="diff_time(mktime(site.last_changed.timetuple()))"></td>
45 <td py:content="site.timestamp"></td>