From 8964ab724f3816a9ba9ccdaf6aca1fe139261934 Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Thu, 7 Mar 2019 16:04:02 +0100 Subject: [PATCH] potentail back url --- src/project/templates/project/breadcrumb.html | 11 +++++++++++ .../templates/project/includes/content_intro.html | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/project/templates/project/breadcrumb.html diff --git a/src/project/templates/project/breadcrumb.html b/src/project/templates/project/breadcrumb.html new file mode 100644 index 0000000..e77052e --- /dev/null +++ b/src/project/templates/project/breadcrumb.html @@ -0,0 +1,11 @@ +{% load i18n %} + +{% with ancestors|last as last %} + {% if ancestors|length > 3 or request.current_page.parent.reverse_id == 'calendar' or request.current_page.parent.reverse_id == 'news' %} + + {% include 'project/assets/arrow-left-long.svg' %} + {% trans 'Zurück' %} + +


+ {% endif %} +{% endwith %} diff --git a/src/project/templates/project/includes/content_intro.html b/src/project/templates/project/includes/content_intro.html index 2cfad1a..e4f46bd 100644 --- a/src/project/templates/project/includes/content_intro.html +++ b/src/project/templates/project/includes/content_intro.html @@ -1,7 +1,8 @@ -{% load i18n cms_tags thumbnail %} +{% load i18n cms_tags menu_tags thumbnail %}
+{# {% show_breadcrumb 'project/breadcrumb.html' %}#}

{% if content_title %} {{ content_title }}