forked from TagesschuleElementa/www.tagesschule-elementa.ch
potentail back url
This commit is contained in:
11
src/project/templates/project/breadcrumb.html
Normal file
11
src/project/templates/project/breadcrumb.html
Normal 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 %}
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user