[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 86681dcc81b77be8e3c03f589920b1fa49f3bd82
Author: hiro <hiro@xxxxxxxxxxxxxx>
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 %}

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits