- <tr py:for="i,node in enumerate(query)">
- <td></td>
- <td><a href="${link('pcuview', loginbase=node[0])}">${node[0]}</a></td>
- <td nowrap="true" py:content="node[1]"></td>
- <td nowrap='true' id="severity-${node[3]}" py:content="node[2]"></td>
- <td nowrap='true' py:content="diff_time(int(node[4]))"></td>
- <?python
- try:
- int(node[5])
- val = True
- except:
- val = False
- ?>
- <!-- NOTE: only one of the next two columns will be displayed. -->
- <td py:if="val"><a href="${zabbix_event_ack_link(node[5])}">Provide Ack</a></td>
- <td py:if="not val" py:content="node[5]">Message from user</td>
- <td py:if="not val"><a href="${zabbix_event_ack_link(node[6])}">Add</a></td>
+ <tr py:for="i,act in enumerate(actions)" class="${i%2 and 'odd' or 'even'}" >
+ <td py:content="act.date_created"></td>
+ <td py:if="act.hostname is not None" nowrap="true" >
+ <a class="ext-link" href="${plc_node_uri(act.hostname)}">
+ <span class="icon">${act.hostname}</span></a>
+ </td>
+ <td py:if="act.hostname is None" nowrap="true">
+ <a class="ext-link" href="${plc_site_uri(act.loginbase)}">
+ <span class="icon">${act.loginbase}</span></a>
+ </td>
+ <!--td py : content="diff_time(mktime(node.date_checked.timetuple()))"></td-->
+ <td py:content="act.action_type"></td>
+ <td><a class="ext-link" href="${plc_mail_uri(act.message_id)}">
+ <span py:if="act.message_id != 0" class="icon">${act.message_id}</span></a></td>
+ <td py:if="'bootmanager' in act.action_type or 'unknown' in act.action_type">
+ <a href="/monitorlog/bm.${act.hostname}.log">bm log before action</a>
+ </td>
+ <td py:if="'bootmanager' not in act.action_type">
+ <pre py:content="act.error_string"></pre></td>