fix errors in dynamic_list_page template

This commit is contained in:
bkfox 2016-11-16 02:28:48 +01:00
parent e5f47be608
commit f0f55176df
2 changed files with 13 additions and 15 deletions

View File

@ -17,13 +17,13 @@
{# should never happen #}
{% with title=list_selector.filter_related.title url=list_selector.filter_related.url %}
{% blocktrans %}
Related to <a href="{{ url }}">{{ title }}</a>{% endblocktrans %}
Related to <a href="{{ url }}">{{ title }}</a>
{% endblocktrans %}
{% endwith %}
{% else %}
{% blocktrans %}All the publications{% endblocktrans %}
{% endif %}
{% endwith %}
{% endif %}
</h1>
{% endblock %}
@ -46,8 +46,6 @@
{% with list_paginator=paginator %}
{% include "aircox_cms/snippets/list.html" %}
{% endwith %}
{% endif %}
{% endwith %}
{% endblock %}

View File

@ -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 %}
<form action="{{ list_page.url }}" method="GET">
<img src="{% static "aircox_cms/images/search.png" %}" class="icon"/>
<input type="text" name="search" placeholder="{{ self.default_text }}">