summaryrefslogtreecommitdiff
path: root/templates/program/week_schedule_timeslot.html
blob: 7b0f8005bdf7a0903d89b767841da7e289a65915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 %}