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

Frescha frescha at unitedseed.de
Tue Feb 28 22:07:42 UTC 2012


The following commit has been merged in the debian/master branch:
commit 1553e56ddadfdadabeba3e54eadcf968c450f5db
Author: Frescha <frescha at unitedseed.de>
Date:   Sun Nov 27 18:43:56 2011 +0100

    add main navigation without javascript

diff --git a/shinken/webui/htdocs/css/navigation.css b/shinken/webui/htdocs/css/navigation.css
new file mode 100644
index 0000000..73a35c0
--- /dev/null
+++ b/shinken/webui/htdocs/css/navigation.css
@@ -0,0 +1,25 @@
+#mainmenu{
+	margin: 0;
+	padding: 0;
+	float: left;
+	width: 100%;
+	overflow: hidden;
+	background: #222222;
+}
+
+#mainmenu li{
+	display: inline;
+}
+
+#mainmenu li a{
+	float: left;
+	color: #636363;
+	padding: 9px 11px;
+	text-decoration: none;
+	font-size: 14px;
+}
+
+#mainmenu li a:hover, #mainmenu li .current{
+	color: white;
+	background: transparent url(/static/images/pointer.gif) bottom center no-repeat;
+}
\ No newline at end of file
diff --git a/shinken/webui/views/hello_template.tpl b/shinken/webui/views/hello_template.tpl
deleted file mode 100644
index 6e7c72f..0000000
--- a/shinken/webui/views/hello_template.tpl
+++ /dev/null
@@ -1,7 +0,0 @@
-%if name == 'World':
-    <h1>Hello {{name}}!</h1>
-    <p>This is a test.</p>
-%else:
-    <h1>Hello {{name.title()}}!</h1>
-    <p>How are you?</p>
-%end
\ No newline at end of file
diff --git a/shinken/webui/views/navigation_element.tpl b/shinken/webui/views/navigation_element.tpl
new file mode 100644
index 0000000..7d4f2bd
--- /dev/null
+++ b/shinken/webui/views/navigation_element.tpl
@@ -0,0 +1,17 @@
+%if not 'app' in locals() : app = None
+
+<div id="navigation" class="grid_16">
+        <ul id="mainmenu">
+                %menu = [ ('/', 'Dashboard'), ('/impacts','Impacts'), ('/problems','IT problems'), ('/all', 'All'), ('/system', 'System') ]
+                %for (key, value) in menu:
+
+                            %# Check for the selected element, if there is one
+                                %if menu_part == key:
+                                        <li><a href="{{key}}" id="selected">{{value}}</a></li>
+                                        %else:
+                                                <li><a href="{{key}}">{{value}}</a></li>
+                                        %end
+                                %end
+        </ul>
+</div>
+<div class="clear"></div>
\ No newline at end of file

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list