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 PCU 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>PCU History for pcu_id : <a href="${plc_pcu_uri_id(pcu_id)}">${pcu_id}</a></h3>
18 <table id="sortable_table" class="datagrid" border="1" width="100%">
28 <tr py:for="i,pcu in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
29 <td py:content="pcu.last_checked"></td>
30 <td py:content="diff_time(mktime(pcu.last_changed.timetuple()))"></td>
32 <a target="_top" href="${link('pcuview', pcuid=pcu.plc_pcuid)}" py:content="pcu.plc_pcuid">your.host.org</a></td>
33 <td id="pcu-${pcu.status}" py:content="pcu.status"></td>