From 5fa8994cda52aab7a541f1953c92c345385d0a10 Mon Sep 17 00:00:00 2001 From: sarahframe Date: Mon, 26 Aug 2024 14:03:16 +1200 Subject: [PATCH] make event tiles month-day --- templates/cdhpages/blocks/tile.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/cdhpages/blocks/tile.html b/templates/cdhpages/blocks/tile.html index 292df279..881820bf 100644 --- a/templates/cdhpages/blocks/tile.html +++ b/templates/cdhpages/blocks/tile.html @@ -36,11 +36,11 @@ {% with end_month=internal_page.specific.end_time|date:"M" %}
{% if start_day == end_day and start_month == end_month %} - {{ start_day }} {{ start_month }} {{ internal_page.specific.start_time|time:"g:iA" }}–{{ internal_page.specific.end_time|time:"g:iA" }} + {{ start_month }} {{ start_day }} {{ internal_page.specific.start_time|time:"g:iA" }}–{{ internal_page.specific.end_time|time:"g:iA" }} {% elif start_month == end_month %} - {{ start_day }}–{{ end_day }} {{ start_month }} + {{ start_month }} {{ start_day }}–{{ end_day }} {% else %} - {{ start_day }} {{ start_month }}–{{ end_day }} {{ end_month }} + {{ start_month }} {{ start_day }}–{{ end_month }} {{ end_day }} {% endif %}
{% endwith %}