incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [33/39] git commit: [#6545] ignore query string when checking for active sidebar item
Date Tue, 10 Sep 2013 15:55:29 GMT
[#6545] ignore query string when checking for active sidebar item


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/dc319918
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/dc319918
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/dc319918

Branch: refs/heads/db/6545
Commit: dc3199182f24158b75a9ecc26a54c4812a65e63a
Parents: 73bb7ca
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Fri Sep 6 20:33:41 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Sep 10 14:35:48 2013 +0000

----------------------------------------------------------------------
 Allura/allura/templates/jinja_master/sidebar_menu.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/dc319918/Allura/allura/templates/jinja_master/sidebar_menu.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/sidebar_menu.html b/Allura/allura/templates/jinja_master/sidebar_menu.html
index f8b9c8e..08beed2 100644
--- a/Allura/allura/templates/jinja_master/sidebar_menu.html
+++ b/Allura/allura/templates/jinja_master/sidebar_menu.html
@@ -23,7 +23,7 @@
       <ul class="sidebarmenu">
       {% do ul_active.append(True) %}
     {% endif %}
-    <li{% if request.url.find(s.url,-s.url.__len__()) != -1 %} class="active"{% endif
%}>
+    <li{% if request.path.find(s.url,-s.url.__len__()) != -1 %} class="active"{% endif
%}>
       <a href="{{s.url}}"{% if s.className %} class="{{s.className or ''}}"{% endif %}>{%
if s.ui_icon %}<b data-icon="{{s.ui_icon.char}}" class="ico {{s.ui_icon.css}}"></b>
{% endif %}<span{% if s.small != None %} class="has_small"{% endif %}>{{h.really_unicode(s.label)}}</span>{%
if s.small != None %}<small>{{s.small}}</small>{% endif %}</a>
     </li>
   {% else %}


Mime
View raw message