changeset 2494:6a52b3d4ddc8

Fixes reoccurence of #69, with new cleaner method for generating the current url
author sharky93 <rishabhr123@gmail.com>
date Sun, 15 Sep 2013 23:57:57 +0530
parents d05386e32cf0
children b0e5881e515e
files MoinMoin/themes/basic/templates/layout.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/layout.html	Sun Sep 15 23:42:44 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Sun Sep 15 23:57:57 2013 +0530
@@ -211,7 +211,7 @@
                             <div class="list-group-item moin-list-heading"> {{ _("Site Navigation") }} </div>
                             {% for cls, url, text, title in navibar_items if cls != 'userlink' %}
                                 <a class="list-group-item {{ cls }}
-                                    {% if url in [current_url, current_path] %} active{% endif %}" href="{{ url }}" 
+                                    {% if url in [current_url, current_path, current_url_showview] %} active{% endif %}" href="{{ url }}" 
                                     {% if title %}title="{{ title }}"{% endif %}>
                                     {{ text|shorten_item_name }}
                                 </a>