[tor-commits] [lego/master] Update to breadcrumbs

hiro at torproject.org hiro at torproject.org
Thu Sep 12 16:00:21 UTC 2019


commit 2a33ca6a5484638161d0326459910e305d5f7432
Author: hiro <hiro at torproject.org>
Date:   Thu Sep 12 18:00:16 2019 +0200

    Update to breadcrumbs
---
 templates/macros/parent.html | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/templates/macros/parent.html b/templates/macros/parent.html
index d72db17..7215499 100644
--- a/templates/macros/parent.html
+++ b/templates/macros/parent.html
@@ -3,17 +3,8 @@
   {% if item.parent %}
     {% for _ in range(1, 5) %}
       {% set parent = item.parent %}
-      {% if parent %}
-        {% if parent.path == "/" %}
-          {# break #}
-        {% else %}
-          <li class="breadcrumb-item active" aria-current="page">
-            <a href="{{ parent.path|url }}">
-              {{ parent.title }}
-            </a>
-          </li>
-        {% endif %}
-      {% endif %}
+      {{ parent }}
+      {{ item }}
       {% set item = item.parent %}
     {% endfor %}
   {% endif %}



More information about the tor-commits mailing list