summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2019-10-16 17:10:45 (GMT)
committerChristian Pointner <equinox@helsinki.at>2019-10-16 17:10:45 (GMT)
commit2ed95517797f937204859058873c53d92bd61d82 (patch)
tree56fe2271c49c8081e737475fc75e8e8add6c1797
parent823b163ef65c8180bfddc9dbaa2fa87c21edebf6 (diff)
fix rendering of week schedule
-rw-r--r--program/templates/week_schedule_timeslot.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/templates/week_schedule_timeslot.html b/program/templates/week_schedule_timeslot.html
index 8942327..a96f2bb 100644
--- a/program/templates/week_schedule_timeslot.html
+++ b/program/templates/week_schedule_timeslot.html
@@ -24,6 +24,13 @@
</div>
{% endif %}
+{% if forloop.first and timeslot.end != timeslot.get_next_by_start.start %}
+ <div class="timeslot bf-{{ default_show.broadcastformat.slug }}" {% duration timeslot.end timeslot.get_next_by_start.start %}>
+ <div>{{ default_show.name }}</div>
+ </div>
+{% endif %}
+
+
{% if not forloop.first and not forloop.last %}
<div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}" {% duration timeslot.start timeslot.end %}>
<div><a href="{% url "timeslot-detail" timeslot.id %}">{{ timeslot.show.name }}</a></div>