move sections relative items into cms/sections.py file

This commit is contained in:
bkfox
2016-07-22 17:46:42 +02:00
parent eae1b9dca0
commit 8906ba0919
4 changed files with 414 additions and 381 deletions

View File

@ -8,10 +8,9 @@
{% block title %}
<h1>
{% if list_selector.search_query %}
{% blocktrans %}Search in publications for <i>{{ search_query }}</i>{% endblocktrans %}
{% elif list_selector.tag_query %}
{% blocktrans %}Search in publications for <i>{{ search_query }}</i>{% endblocktrans %}
{% with terms=list_selector.terms %}
{% if terms %}
{% blocktrans %}Search in publications for <i>{{ terms }}</i>{% endblocktrans %}
{% elif list_selector.filter_related %}
{# should never happen #}
{% with title=list_selector.filter_related.title url=list_selector.filter_related.url %}
@ -21,6 +20,7 @@
{% else %}
{% blocktrans %}All the publications{% endblocktrans %}
{% endif %}
{% endwith %}
</h1>
{% endblock %}

View File

@ -8,6 +8,7 @@
{# list view #}
<div class="body summary">
{{ page.summary }}
<a href="?" class="go_back">{% trans "Go back to the publication" %}</a>
</div>
{% with list_paginator=paginator %}