allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [1/2] allura git commit: Fix & clean up breadcrumbs link logic (loop scoping changed in jinja 2.9.x)
Date Thu, 16 Nov 2017 15:52:46 GMT
Repository: allura
Updated Branches:
  refs/heads/master 320cd8184 -> b9a9b387e


Fix & clean up breadcrumbs link logic (loop scoping changed in jinja 2.9.x)


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

Branch: refs/heads/master
Commit: 828e331f09b74fedc07854be706e319220283926
Parents: 320cd81
Author: Dave Brondsema <dave@brondsema.net>
Authored: Wed Nov 15 13:49:26 2017 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Wed Nov 15 13:49:26 2017 -0500

----------------------------------------------------------------------
 Allura/allura/templates/jinja_master/lib.html | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/828e331f/Allura/allura/templates/jinja_master/lib.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/lib.html b/Allura/allura/templates/jinja_master/lib.html
index da91c7a..57bc433 100644
--- a/Allura/allura/templates/jinja_master/lib.html
+++ b/Allura/allura/templates/jinja_master/lib.html
@@ -173,10 +173,8 @@
 {% endmacro %}
 
 {% macro path_links(parts) %}
-  {% set i=0 %}
   {% for part in parts %}
-    <a href="{{'./' + '../' * (parts.__len__()-i-1)}}">{{part}}</a> /
-    {% set i=i+1 %}
+    <a href="{{'./' + '../' * loop.revindex0 }}">{{part}}</a> /
   {% endfor %}
 {% endmacro %}
 


Mime
View raw message