add pcu_name to pcufailed_notice
[monitor.git] / web / MonitorWeb / monitorweb / templates / actionsummary.kid
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <?python
3 layout_params['page_title'] = "MyOps Action Summary"
4 from monitor.util import diff_time
5 from monitor import config
6 from time import mktime
7 from links import *
8
9 def zabbix_event_ack_link(eventid):
10         return "http://" + config.MONITOR_HOSTNAME + "/zabbix/acknow.php?eventid=" + str(eventid)
11
12 ?>
13 <html py:layout="'sitemenu.kid'"
14       xmlns:py="http://purl.org/kid/ns#"
15           xmlns:mochi="http://www.mochi.org">
16
17   <div py:match="item.tag == 'content'">
18         <table width="100%">
19                 <thead>
20                         <tr>
21                                 <th><a href="actionsummary?since=1">Last Day</a></th>
22                                 <th><a href="actionsummary?since=7">Last Week</a></th>
23                                 <th><a href="actionsummary?since=30">Last Month</a></th>
24                         </tr>
25                 </thead>
26                 <tbody>
27                 <tr>
28                 <td colspan="5">
29                 <table id="actionsummarylist" cellpadding="0" border="0" class="plekit_table sortable-onload-0 colstyle-alt no-arrow paginationcallback-actionsummarylist_paginator max-pages-10 paginate-50" >
30                         <thead>
31                                 <tr>
32                                         <th class="sortable plekit_table">Type</th>
33                                         <th class="sortable plekit_table">Notice Name</th>
34                                         <th class="sortable plekit_table">Count</th>
35                                 </tr>
36                         </thead>
37                         <tbody>
38                                 <tr py:for="key in results.keys()">
39                                         <td nowrap="true" py:content="'bootman' in key and 'bootmanager' or ( 'notice' in key and 'notice' or ( 'penalty' in key and 'penalty' or 'unknown' ) ) "></td>
40                                         <td nowrap="true"><a href="actionlist?action_type=${key}" py:content="key"></a></td>
41                                         <td nowrap='true' py:content="results[key]"></td>
42                                 </tr>
43                         </tbody>
44                 </table>
45                 </td>
46                 </tr>
47                 </tbody>
48         </table>
49   </div>
50
51 </html>