Fix #37 -- Clever displaying of date ranges

This commit is contained in:
Raphael Michel
2016-12-25 22:51:19 +01:00
parent a4218fa1b9
commit f4672564ce
3 changed files with 29 additions and 2 deletions

View File

@@ -29,8 +29,7 @@
</a>
{% else %}
<a href="{% eventurl event "presale:event.index" %}">{{ event.name }}</a>
<small>{{ event.date_from|date:"DATE_FORMAT" }}{% if event.settings.show_date_to %}
{{ event.date_to|date:"DATE_FORMAT" }}{% endif %}</small>
<small>{{ event.get_date_range_display }}</small>
{% endif %}
</h1>
<div class="pull-right loginbox">