potentail back url

This commit is contained in:
Simon Caminada
2019-03-07 16:04:02 +01:00
parent 92a53b6de5
commit 8964ab724f
2 changed files with 13 additions and 1 deletions

View File

@@ -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' %}
<a href="{{ last.parent.get_absolute_url }}" class="button button--small">
<span class="button__icon">{% include 'project/assets/arrow-left-long.svg' %}</span>
<span class="button__text">{% trans 'Zurück' %}</span>
</a>
<br><br><br>
{% endif %}
{% endwith %}

View File

@@ -1,7 +1,8 @@
{% load i18n cms_tags thumbnail %}
{% load i18n cms_tags menu_tags thumbnail %}
<div class="content__intro reveal_container reveal_self reveal reveal_animation{% if image %} image{% endif %}">
<div class="content__intro__content reveal reveal_animation">
{# {% show_breadcrumb 'project/breadcrumb.html' %}#}
<h1>
{% if content_title %}
{{ content_title }}