changeset 2375:036bb682b6d3

adds moin-sidebar class, fixes #10 by using the shorten_item_name filter
author sharky93 <rishabhr123@gmail.com>
date Sat, 10 Aug 2013 03:44:02 +0530
parents 39cf5ec23aea
children 6485ee98ab0e
files MoinMoin/themes/basic/static/css/basic.css MoinMoin/themes/basic/static/custom-less/basic.less MoinMoin/themes/basic/templates/layout.html
diffstat 3 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/static/css/basic.css	Sat Aug 10 02:00:19 2013 +0530
+++ b/MoinMoin/themes/basic/static/css/basic.css	Sat Aug 10 03:44:02 2013 +0530
@@ -4320,3 +4320,8 @@
 .moin-nonexistent:hover {
   color: #d9534f;
 }
+.moin-sidebar {
+  margin-bottom: 20px;
+  padding-left: 0;
+  overflow: hidden;
+}
--- a/MoinMoin/themes/basic/static/custom-less/basic.less	Sat Aug 10 02:00:19 2013 +0530
+++ b/MoinMoin/themes/basic/static/custom-less/basic.less	Sat Aug 10 03:44:02 2013 +0530
@@ -32,3 +32,8 @@
     color: @link-nonexistent-hover-color;
   }
 }
+
+.moin-sidebar {
+  .list-group;
+  overflow: hidden;
+}
--- a/MoinMoin/themes/basic/templates/layout.html	Sat Aug 10 02:00:19 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Sat Aug 10 03:44:02 2013 +0530
@@ -72,14 +72,14 @@
 
         <div class="row">
             <div class="col-lg-2">
-                <div class="list-group">
+                <div class="moin-sidebar">
                     {% set navibar_items = theme_supp.navibar(item_name) %}
                     {% set quicklinks = 'false' %}
                     {% if navibar_items %}
 
                     <div class="list-group-item"> Site Navigation </div>
                     {% for cls, url, text, title in navibar_items if cls != 'userlink' %}
-                        <a class="list-group-item {{ cls }}{% if url == current_url %} active{% endif %}" href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text }}</a>
+                        <a class="list-group-item {{ cls }}{% if url == current_url %} active{% endif %}" href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text|shorten_item_name }}</a>
                     {% endfor %}
 
                     {% endif %}
@@ -88,7 +88,7 @@
                         {% if loop.first %}
                             <div class="list-group-item">Quick Links</div>
                         {% endif %}
-                            <a class="list-group-item {{ cls }}" href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text }}
+                            <a class="list-group-item {{ cls }}" href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text|shorten_item_name }}
                             </a>
                     {% endfor %}
                 </div>