From f0f55176df751e1255224c7b2d182c1cfe6e7934 Mon Sep 17 00:00:00 2001 From: bkfox Date: Wed, 16 Nov 2016 02:28:48 +0100 Subject: [PATCH] fix errors in dynamic_list_page template --- .../aircox_cms/dynamic_list_page.html | 26 +++++++++---------- .../sections/section_search_field.html | 2 +- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/aircox_cms/templates/aircox_cms/dynamic_list_page.html b/aircox_cms/templates/aircox_cms/dynamic_list_page.html index 17c28dd..0e0aed2 100755 --- a/aircox_cms/templates/aircox_cms/dynamic_list_page.html +++ b/aircox_cms/templates/aircox_cms/dynamic_list_page.html @@ -12,18 +12,18 @@ {# Translators: terms are search terms, or tag tarms. url: url to the page #} {% with terms=list_selector.terms %} {% if terms %} -{% blocktrans %}Search in publications for {{ terms }}{% endblocktrans %} + {% blocktrans %}Search in publications for {{ terms }}{% endblocktrans %} {% elif list_selector.filter_related %} {# should never happen #} -{% with title=list_selector.filter_related.title url=list_selector.filter_related.url %} -{% blocktrans %} - Related to {{ title }}{% endblocktrans %} -{% endwith %} + {% with title=list_selector.filter_related.title url=list_selector.filter_related.url %} + {% blocktrans %} + Related to {{ title }} + {% endblocktrans %} + {% endwith %} {% else %} -{% blocktrans %}All the publications{% endblocktrans %} + {% blocktrans %}All the publications{% endblocktrans %} {% endif %} {% endwith %} -{% endif %} {% endblock %} @@ -36,18 +36,16 @@ {{ related.summary }} {% trans "More about it" %} - {% elif page.body %} + {% elif page.body %}
{{ page.body|richtext }}
- {% endif %} - {% endwith %} - - {% with list_paginator=paginator %} - {% include "aircox_cms/snippets/list.html" %} - {% endwith %} {% endif %} {% endwith %} + +{% with list_paginator=paginator %} +{% include "aircox_cms/snippets/list.html" %} +{% endwith %} {% endblock %} diff --git a/aircox_cms/templates/aircox_cms/sections/section_search_field.html b/aircox_cms/templates/aircox_cms/sections/section_search_field.html index ea04380..159cd0b 100755 --- a/aircox_cms/templates/aircox_cms/sections/section_search_field.html +++ b/aircox_cms/templates/aircox_cms/sections/section_search_field.html @@ -5,7 +5,7 @@ {% load wagtailsettings_tags %} {% block content %} -{% with list_page=settings.cms.WebsiteSettings.list_page %} +{% with list_page=settings.aircox_cms.WebsiteSettings.list_page %}