This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite loop and don't show list if no events can be found (dat …
…3am logic).
- Loading branch information
Greg Turner
committed
Dec 7, 2016
1 parent
a867245
commit 90e7eba
Showing
2 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 16 additions & 14 deletions
30
icekit_events/templates/plugins/todays_occurrences/default.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
{% load humanize %} | ||
|
||
<h3 class="primary-divider"> | ||
<span class="content-max-width"> | ||
{% if instance.title %} | ||
{{ instance.title }} {{ instance.get_date|naturalday }} | ||
{% else %} | ||
{{ instance.get_date|naturalday|title }} | ||
{% endif %} | ||
</span> | ||
</h3> | ||
{% with instance.get_occurrences as occs %} | ||
{% if occs %} | ||
<h3 class="primary-divider"> | ||
<span class="content-max-width"> | ||
{% if instance.title %} | ||
{{ instance.title }} {{ instance.get_date|naturalday }} | ||
{% else %} | ||
{{ instance.get_date|naturalday|title }} | ||
{% endif %} | ||
</span> | ||
</h3> | ||
|
||
|
||
|
||
{% for occ in instance.get_occurrences %} | ||
{% include "plugins/link/_whatson_link.html" with event=occ.event %} | ||
{% endfor %} | ||
{% for occ in occs %} | ||
{% include "plugins/link/_whatson_link.html" with event=occ.event %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endwith %} |