[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Naparuba naparuba at gmail.com
Tue Feb 28 22:16:20 UTC 2012


The following commit has been merged in the debian/master branch:
commit 5b194738debedd9547a625fd9bac1a2d1a03a559
Author: Naparuba <naparuba at gmail.com>
Date:   Thu Jan 26 15:01:06 2012 +0100

    Add: webui/mobile make page higher and make big icons links

diff --git a/shinken/webui/plugins/mobile/htdocs/css/main.css b/shinken/webui/plugins/mobile/htdocs/css/main.css
index 8befc01..ad5e614 100644
--- a/shinken/webui/plugins/mobile/htdocs/css/main.css
+++ b/shinken/webui/plugins/mobile/htdocs/css/main.css
@@ -5,7 +5,7 @@ position : absolute;
 
 #main_container {
     background: white;
-    /*min-height: 700px;*/
+    min-height: 900px;
     margin-left: 0;
     margin-right: 0;
     width: 100%;
diff --git a/shinken/webui/plugins/mobile/views/mobile_impacts.tpl b/shinken/webui/plugins/mobile/views/mobile_impacts.tpl
index 704a8da..eb7bef7 100644
--- a/shinken/webui/plugins/mobile/views/mobile_impacts.tpl
+++ b/shinken/webui/plugins/mobile/views/mobile_impacts.tpl
@@ -4,11 +4,8 @@
 
 %rebase layout_mobile globals(), title="Tactical view", js=['mobile/js/mobile_main.js', 'mobile/js/mobile_impacts.js'], css=['mobile/css/main.css', 'mobile/css/impacts.css']
 
-<div id="all">
-<div> <h1> Shinken business apps</h1> </div>
-
-<h2>End users apps</h2>
-
+<div>
+<div> <h1> End users apps</h1> </div>
 
 
 <a href="#" onclick="go_left();"><img src="/static/images/previous.png"/></a>
diff --git a/shinken/webui/plugins/mobile/views/mobile_main.tpl b/shinken/webui/plugins/mobile/views/mobile_main.tpl
index 531b799..9f20498 100644
--- a/shinken/webui/plugins/mobile/views/mobile_main.tpl
+++ b/shinken/webui/plugins/mobile/views/mobile_main.tpl
@@ -11,12 +11,18 @@
 
 %# """ All business apps are OK """
 %if len(bad_business) == 0:
-    <img src="/static/images/state_ok.png">
-    <a href="#" onclick="slide_and_go('/mobile/impacts');"><img src="/static/images/next.png"/></a>
+
+    <a href="#" onclick="slide_and_go('/mobile/impacts');">
+      <img src="/static/images/state_ok.png">
+      <img src="/static/images/next.png"/>
+    </a>
 %# """ Are, some business apps are bad!"""
 %else:
-    <img src="/static/images/state_critical.png" >
-    <a href="#" onclick="slide_and_go('/mobile/impacts');"><img src="/static/images/next.png"/></a>
+
+    <a href="#" onclick="slide_and_go('/mobile/impacts');">
+      <img src="/static/images/state_critical.png" >
+      <img src="/static/images/next.png"/>
+    </a>
     <ul>
     %for imp in bad_business:
          <li class="{{imp.state.lower()}}">{{imp.get_full_name()}} is {{imp.state}}</li>
@@ -27,11 +33,15 @@
 
 <h2>Pure IT problems</h2>
 %if len(problems) == 0:
-    <img src="/static/images/state_ok.png" >
-    <a href="#" onclick="slide_and_go('/mobile/problems');"><img src="/static/images/next.png"/></a>
+    <a href="#" onclick="slide_and_go('/mobile/problems');">
+      <img src="/static/images/state_ok.png" >
+      <img src="/static/images/next.png"/>
+    </a>
 %else:
-    <img src="/static/images/state_warning.png" >
-    <a href="#" onclick="slide_and_go('/mobile/problems');"><img src="/static/images/next.png"/></a>
+    <a href="#" onclick="slide_and_go('/mobile/problems');">
+      <img src="/static/images/state_warning.png" >
+      <img src="/static/images/next.png"/>
+    </a>
     %nb_high_critical = len([pb for pb in problems if pb.business_impact > 2 and pb.state in ['DOWN', 'CRITICAL'] ])
     %nb_high_warn = len([pb for pb in problems if pb.business_impact > 2 and pb.state in ['WARNING']])
     %nb_low_critical = len([pb for pb in problems if pb.business_impact <= 2 and pb.state in ['DOWN', 'CRITICAL'] ])

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list