Title: [opsview] [9695] display downtime/ack in viewports views (when grouped by host)
- Revision
- 9695
- Author
- aburzynski
- Date
- 2012-08-03 14:38:07 +0100 (Fri, 03 Aug 2012)
Log Message
display downtime/ack in viewports views (when grouped by host)
Modified Paths
Modified: trunk/opsview-web/root/viewport/style/group_by_host
===================================================================
--- trunk/opsview-web/root/viewport/style/group_by_host 2012-08-03 13:37:51 UTC (rev 9694)
+++ trunk/opsview-web/root/viewport/style/group_by_host 2012-08-03 13:38:07 UTC (rev 9695)
@@ -1,6 +1,8 @@
[%
PROCESS object_info_base;
PROCESS onclick_menu;
+PROCESS functions_base;
+
base_url = c.uri_for("/state").path;
%]
<table class="common[% IF host_summary; " narrow"; END; %]">
@@ -61,6 +63,18 @@
host.name | html;
"</a>";
last_host = host.name;
+ %]
+ </td><td width="20">
+ <a href="" base_url _ "/host/name/" _ host.name _ "/detail" | html %]">
+ [% print_downtime_icon( host.downtime ); %]
+ </a>
+ [% IF host.acknowledged; %]
+ </td><td width="20">
+ <a href="" c.uri_for("/cgi-bin/extinfo.cgi", { type => 1, host => host.name }).path_query _ "#comments" | html %]">
+ [% acknowledged_icon %]
+ </a>
+ [% END;
+
IF show_contextual_menus && c.user_exists -%]
</td><td width=20>
<img _onclick_='ajax2_menu(this, "/state/host/name/[% host.name | html %]/menus")' alt="[% c.loc("ui.status.label.menu") %]" src="" menu_image %]" />
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins