[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Naparuba
naparuba at gmail.com
Tue Feb 28 22:08:48 UTC 2012
The following commit has been merged in the debian/master branch:
commit c62bb7c84451ac92b671504c3e01099e93b23ee6
Author: Naparuba <naparuba at gmail.com>
Date: Thu Dec 15 14:15:56 2011 +0100
Add : admins photos and links in the impact page for root problems.
diff --git a/shinken/webui/plugins/mobile/htdocs/css/impacts.css b/shinken/webui/plugins/mobile/htdocs/css/impacts.css
index c3094e6..6b94a19 100644
--- a/shinken/webui/plugins/mobile/htdocs/css/impacts.css
+++ b/shinken/webui/plugins/mobile/htdocs/css/impacts.css
@@ -54,3 +54,19 @@
top : 10px;
}
+
+
+.admin-photo{
+ width : 20px;
+ height : 20px;
+}
+
+.root_problem_img{
+ width : 20px;
+ height : 20px;
+}
+
+.ack{
+ width : 16px;
+ height : 16px;
+}
\ No newline at end of file
diff --git a/shinken/webui/plugins/mobile/views/mobile_impacts.tpl b/shinken/webui/plugins/mobile/views/mobile_impacts.tpl
index 393dc66..dcb6aa5 100644
--- a/shinken/webui/plugins/mobile/views/mobile_impacts.tpl
+++ b/shinken/webui/plugins/mobile/views/mobile_impacts.tpl
@@ -26,6 +26,32 @@
%end
<h2 class="state_{{impact.state.lower()}}"><img style="width : 64px; height:64px" src="{{helper.get_icon_state(impact)}}" />{{impact.state}}: {{impact.get_full_name()}}</h2>
+
+ %if len(impact.source_problems) > 0:
+ <h3>Root problems</h3>
+ <div class="root_problems">
+ %for pb in impact.source_problems:
+ <div class="root_problem">
+ <p><img class="root_problem_img" src="{{helper.get_icon_state(pb)}}" /> {{pb.get_full_name()}} is {{pb.state}} since {{helper.print_duration(pb.last_state_change, just_duration=True, x_elts=2)}}
+ %if pb.problem_has_been_acknowledged:
+ ACK : <img class="ack" src="/static/images/big_ack.png">
+ %else:
+ ACK : <img class="ack" src="/static/images/critical_medium.png">
+ %end
+ </p>
+ <p>It's managed by:</p>
+ <ul>
+ %for c in pb.contacts:
+ <li><img src="/static/photos/{{c.get_name()}}" class="admin-photo" /> {{c.get_name()}} : <a href="tel:{{c.pager}}">{{c.pager}}</a> <a href="mailto:{{c.email}}">{{c.email}}</a>
+ </li>
+ %end
+ </ul>
+ </div>
+ %end
+ </div>
+ %end
+
+ <h3>Root problem analysis</h3>
%if len(impact.parent_dependencies) > 0:
<a id="togglelink-{{impact.get_dbg_name()}}" href="javascript:toggleBusinessElt('{{impact.get_dbg_name()}}')"> {{!helper.get_button('Show dependency tree', img='/static/images/expand.png')}}</a>
<div class="clear"></div>
@@ -33,8 +59,6 @@
%end
-
-
</div>
%i += 1
%end
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list