From ea327d67761cbbc4fb6b7d7660871a4b4d2c3af2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Thu, 29 Sep 2016 11:21:06 +0200 Subject: [PATCH] Breadcrumb small fix --- app/templates/pages/menus/breadcrumb.html | 42 +++++++++++++---------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/app/templates/pages/menus/breadcrumb.html b/app/templates/pages/menus/breadcrumb.html index f7c3c2fb..bf40eaf8 100644 --- a/app/templates/pages/menus/breadcrumb.html +++ b/app/templates/pages/menus/breadcrumb.html @@ -1,27 +1,31 @@ {% load i18n pages_tags %} {% if on_home %} -
  • {% trans "Home" %}
  • +
  • {% trans "Home" %}
  • {% else %} -{% for page in page_branch %} + {% for page in page_branch %} - {% if not has_home and page.is_primary and forloop.first %} - - {% endif %} + {% if not has_home and page.is_primary and forloop.first %} + + {% endif %} - {% if page.is_current_or_ascendant %} - {% if page.is_current %} - - {% else %} - - {% endif %} - {% if page.has_children %}{% page_menu page %}{% endif %} - {% endif %} + {% if page.is_current_or_ascendant %} + {% if page.is_current %} + + {% else %} + + {% endif %} + {% if page.has_children %} + {% page_menu page %} + {% else %} + + {% endif %} + {% endif %} -{% endfor %} + {% endfor %} {% endif %} -- 2.39.5