changeset 2318:48e56f1ebd91

adds global nav, quick links, common css
author sharky93 <rishabhr123@gmail.com>
date Fri, 12 Jul 2013 21:16:11 +0530
parents e657c7ca7ef5
children 61c9d0f302ea
files MoinMoin/themes/basic/static/css/common.css MoinMoin/themes/basic/templates/layout.html
diffstat 2 files changed, 45 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/static/css/common.css	Fri Jul 12 21:16:11 2013 +0530
@@ -0,0 +1,6 @@
+.sidebar-nav {
+  padding: 9px 0;
+}
+.left-sidebar {
+    overflow:hidden;
+}
--- a/MoinMoin/themes/basic/templates/layout.html	Fri Jul 12 19:06:22 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Fri Jul 12 21:16:11 2013 +0530
@@ -64,5 +64,44 @@
             </div> <!-- navbar-container-->
     	</div> <!-- navbar-inverse-->
 
+        <div class="row-fluid">
+            <div class="span2">
+                <div class="well sidebar-nav left-sidebar">
+                    <ul class="nav nav-list">
+                        {% set navibar_items = theme_supp.navibar(item_name) %}
+                        {% set quicklinks = 'false' %}
+                        {% if navibar_items %}
+
+                        <li class="nav-header">Site Navigation</li>
+                        {% for cls, url, text, title in navibar_items %}
+                            {% if class == 'userlink' %}
+                                {% set quicklinks = 'true' %}
+                            {% endif %}
+                            <li class="{{ cls }}">
+                                <a href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text }}</a>
+                            </li>
+                        {% endfor %}
+
+                        {% endif %}
+                        
+                        <li class="nav-header">Quick Links</li>
+                            {% if quicklinks == 'true' %}
+                                {% for cls, url, text, title in navibar_items %}
+                                {% if cls == 'userlink' %}
+                                    <li class="{{ cls }}">
+                                        <a href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text }}</a>
+                                    </li>
+                                {% endif %}
+                                {% endfor %}
+
+                            {% else %}
+                                <li> Empty </li>
+                            {% endif %}
+
+                    </ul>
+                </div><!--/.well -->
+            </div><!--/span-->
+        </div>
+
 	</div>
 {% endblock %}
\ No newline at end of file