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 View"
4 from monitor.util import diff_time
6 <html py:layout="'sitemenu.kid'"
7 xmlns:py="http://purl.org/kid/ns#"
8 xmlns:mochi="http://www.mochi.org">
10 <div py:match="item.tag == 'content'">
12 <table id="sortable_table" class="datagrid" border="1" width="100%">
15 <th mochi:format="int"></th>
16 <th mochi:format="str">Site</th>
26 <tr py:for="i,node in enumerate(nodequery)" class="${i%2 and 'odd' or 'even'}" >
28 <td><a href="">${node.loginbase}</a></td>
29 <td id="node-${node.observed_status}" nowrap="true" py:content="node.hostname"></td>
30 <td py:content="node.ping_status"></td>
31 <td id="status-${node.pcu_short_status}"><a href="pcuview?pcuid=${node.plc_node_stats['pcu_ids']}" py:content="node.pcu_short_status"></a></td>
32 <td nowrap="true" py:content="node.kernel"></td>
33 <td py:content="diff_time(node.plc_node_stats['last_contact'])"></td>
37 <h3 py:if="node.pcu_short_status != 'none'">PCU Status</h3>
38 <h3>Actions Taken</h3>