summaryrefslogtreecommitdiff
path: root/templates/program/week_schedule_timeslot.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/program/week_schedule_timeslot.html')
-rw-r--r--templates/program/week_schedule_timeslot.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/program/week_schedule_timeslot.html b/templates/program/week_schedule_timeslot.html
new file mode 100644
index 0000000..7b0f800
--- /dev/null
+++ b/templates/program/week_schedule_timeslot.html
@@ -0,0 +1,21 @@
+{% load timeslots %}
+
+{% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
+<div class="timeslot bf-{{ default_show.broadcastformat.slug }}" {% duration_until timeslot.start %}>
+{{ default_show.name }}
+</div>
+{% endif %}
+<div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}" {% duration timeslot.start timeslot.end %}>
+ <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a>
+</div>
+{% if timeslot.end != timeslot.get_next_by_start.start %}
+ {% if not forloop.last %}
+<div class="timeslot bf-{{ default_show.broadcastformat.slug }}" {% duration timeslot.end timeslot.get_next_by_start.start %}>
+{{ default_show.name }}
+</div>
+ {% else %}
+<div class="timeslot bf-{{ default_show.broadcastformat.slug }}" {% duration_since timeslot.end %}>
+{{ default_show.name }}
+</div>
+ {% endif %}
+{% endif %}