Add date-on-frontpage check to secondary template

This commit is contained in:
Martin Gross
2020-03-12 12:06:26 +01:00
parent 29d52d4fe5
commit 58717850c2

View File

@@ -70,7 +70,7 @@
{% else %}
<h1>
<a href="{% eventurl event "presale:event.index" cart_namespace=cart_namespace|default_if_none:"" %}">{{ event.name }}</a>
{% if not event.has_subevents %}
{% if request.event.settings.show_dates_on_frontpage and not event.has_subevents %}
<small>{{ event.get_date_range_display }}</small>
{% endif %}
</h1>