diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2014-02-28 19:00:45 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2014-02-28 19:00:45 (GMT) |
commit | 0c00f412dc5d8ccba552f3633993a4696e0d6b55 (patch) | |
tree | d299cb6bcb60dfc99ad70f1d8cfb100f8aea71a6 /program/templates/week_schedule_timeslot.html | |
parent | abc439740a24c503b8756aa30c57281a4cf6ad31 (diff) | |
parent | d4c75b4893bfcb28e300ff5e10dc9cd0993f8537 (diff) |
Merge branch 'master' of https://github.com/nnrcschmdt/helsinki
Diffstat (limited to 'program/templates/week_schedule_timeslot.html')
-rw-r--r-- | program/templates/week_schedule_timeslot.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/program/templates/week_schedule_timeslot.html b/program/templates/week_schedule_timeslot.html new file mode 100644 index 0000000..852466b --- /dev/null +++ b/program/templates/week_schedule_timeslot.html @@ -0,0 +1,54 @@ +{% 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 %}> + <div>{{ default_show.name }}</div> +</div> +{% endif %} + +{% if forloop.first and timeslot.start == timeslot.get_next_by_start.end and timeslot.start != "06:00" %} +<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> +</div> +{% endif %} + +{% if forloop.first and timeslot.start != "06:00" and timeslot.show == default_show %} +<div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}" {% duration_until timeslot.end %}> + <div><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a> </div> +</div> +{% endif %} + +{% if forloop.first and timeslot.start != "06:00" and timeslot.show != default_show %} +<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> +</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> +</div> + {% if 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 %} +{% endif %} + +{% if forloop.last and timeslot.end != "06:00" and timeslot.show == default_show %} +<div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}" {% duration_since timeslot.start %}> + <div><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a> </div> +</div> +{% endif %} + +{% if forloop.last and timeslot.end != "06:00" and timeslot.show != default_show %} +<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> +</div> +{% endif %} + +{% if forloop.last and timeslot.end != timeslot.get_next_by_start.start %} +<div class="timeslot bf-{{ default_show.broadcastformat.slug }}" {% duration_since timeslot.end %}> + <div>{{ default_show.name }}</div> +</div> +{% endif %} |