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

hiro at torproject.org hiro at torproject.org
Tue Apr 7 16:13:24 UTC 2020


commit 86681dcc81b77be8e3c03f589920b1fa49f3bd82
Author: hiro <hiro at torproject.org>
Date:   Thu Sep 12 17:54:22 2019 +0200

    Update to breadcrumbs
---
 templates/macros/parent.html | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/templates/macros/parent.html b/templates/macros/parent.html
index a6333dd..278d470 100644
--- a/templates/macros/parent.html
+++ b/templates/macros/parent.html
@@ -1,9 +1,7 @@
 {% macro render_parents(item) %}
-  {% if item.parent %}
-    <li class="breadcrumb-item active" aria-current="page">
-      <a href="{{ parent.path|url }}">
-        {{ parent.title }}
-      </a>
-    </li>
-  {% endif %}
+  <li class="breadcrumb-item active" aria-current="page">
+    <a href="{{ item.parent.path|url }}">
+      {{ item.parent.title }}
+    </a>
+  </li>
 {% endmacro %}





More information about the tor-commits mailing list