d54e918db1dabb99dbb87278582fa77e94bc041b
[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="sortable_table" class="datagrid" border="1" width="100%">
30                         <thead>
31                                 <tr>
32                                         <th mochi:format="int"></th>
33                                         <th>Notice Name</th>
34                                         <th>Count</th>
35                                 </tr>
36                         </thead>
37                         <tbody>
38                                 <tr py:for="key in results.keys()">
39                                         <td></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>