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 PCU List"
4 from pcucontrol.reboot import pcu_name, model_to_object
5 from monitor import config
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 <table id="sub-table" width="100%">
16 <th><a href="${tg.url('pcu', filter='ok')}">Ok(${fc['ok']})</a></th>
17 <th><a href="${tg.url('pcu', filter='Not_Run')}">Misconfigured(${fc['Not_Run']})</a></th>
18 <th><a href="${tg.url('pcu', filter='NetDown')}">Offline(${fc['NetDown']})</a></th>
19 <th><a href="${tg.url('pcu', filter='pending')}">Runtime Error(${fc['pending']})</a></th>
20 <th><a href="${tg.url('pcu', filter='all')}">All</a></th>
26 <table id="sortable_table" class="datagrid" border="1" width="100%">
29 <th mochi:format="int"></th>
30 <th mochi:format="str">Site</th>
32 <th>Missing Fields</th>
35 <th width="80%">Test Results</th>
41 <tr py:for="i,node in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
43 <td><a href="${plc_site_link_id(node.plc_pcu_stats['site_id'])}">${node.loginbase}</a></td>
45 <a href="${plc_pcu_link_id(node.plc_pcu_stats['pcu_id'])}">${pcu_name(node.plc_pcu_stats)}</a></td>
46 <td py:content="node.entry_complete"></td>
47 <td id="dns-${node.dns_status}" py:content="node.dns_status"></td>
49 <span py:for="port,state in node.ports"
50 id="port${state}" py:content="'%s, ' % port">80</span>
52 <td width="40" id="status-${node.status}" py:content="node.reboot_trial_status"></td>
53 <td py:content="node.plc_pcu_stats['model']"></td>
54 <td py:content="len(node.plc_pcu_stats['node_ids'])"></td>