Skip to content

Commit

Permalink
Merge pull request #174 from springload/fix/fix-date-on-event-tiles
Browse files Browse the repository at this point in the history
make event tiles month-day
  • Loading branch information
sarahframe authored Aug 26, 2024
2 parents daec733 + 5fa8994 commit 62cf444
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/cdhpages/blocks/tile.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
{% with end_month=internal_page.specific.end_time|date:"M" %}
<div class="tile__event-date">
{% 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 %}
</div>
{% endwith %}
Expand Down

0 comments on commit 62cf444

Please sign in to comment.