From 2ed95517797f937204859058873c53d92bd61d82 Mon Sep 17 00:00:00 2001 From: Christian Pointner <equinox@helsinki.at> Date: Wed, 16 Oct 2019 19:10:45 +0200 Subject: fix rendering of week schedule 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> -- cgit v0.10.2