small fixes in templates

This commit is contained in:
bkfox
2017-03-31 18:27:30 +02:00
parent 98af7a4693
commit c3573867d0
5 changed files with 27 additions and 28 deletions

View File

@ -16,7 +16,7 @@
{% with frequency=schedule.get_frequency_display day=schedule.date|date:'l' %}
{% with start=schedule.date|date:"H:i" end=schedule.end|date:"H:i" %}
{% blocktrans trimmed %}
{{ day }} {{ start }} until {{ end }}, {{ frequency }}
{{ day }} at {{ start }} until {{ end }}, <span class="info">{{ frequency }}</span>
{% endblocktrans %}
{% endwith %}
{% endwith %}

View File

@ -41,11 +41,13 @@
{% else %}
{# detail view #}
<div class="content">
{% if page.body %}
<section class="body">
{{ page.body|richtext}}
</section>
{% endif %}
{% if page.links %}
{% if page.links.count %}
{% include "aircox_cms/sections/section_link_list.html" %}
{% endif %}

View File

@ -7,6 +7,8 @@
{% block content %}
{% spaceless %}
<div class="meta">
{% with ancestors=page.get_ancestors %}
{% if ancestors|length != 1 %}
<div class="link_list">
<img src="{% static "aircox/images/home.png" %}"
alt="{% trans "Parent pages" %}"
@ -19,6 +21,8 @@
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endwith %}
{% with list_page=settings.cms.WebsiteSettings.list_page %}
{% if list_page and page.tags.count %}