changeset 2511:e2cbfdfd85e7

Fixes active states for the navbar links
author sharky93 <rishabhr123@gmail.com>
date Mon, 23 Sep 2013 11:31:17 +0530
parents ac8ede199744
children 71572696773e
files MoinMoin/themes/basic/templates/layout.html
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/layout.html	Mon Sep 23 11:25:10 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Mon Sep 23 11:31:17 2013 +0530
@@ -28,6 +28,8 @@
             class="{{ mainclass }}{% if current_url == href %} active{% endif %}" 
         {% elif current_url == href %}
             class="active"
+        {% elif current_path == href %}
+            class="active"
         {% endif %}
         {% endif %}
         rel="nofollow"