diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-06-18 18:43:30 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-06-18 18:43:30 (GMT) |
commit | ed2890927d79792e9222f61c19969352b614da8f (patch) | |
tree | 0ff7d05900a180d917ff414640d05ff056a87fda /templates/program/week_schedule_timeslot.html | |
parent | 2c8661d1e17cdd26d5f347d8a5fb332b5d267fe6 (diff) |
fixed week view.
Diffstat (limited to 'templates/program/week_schedule_timeslot.html')
-rw-r--r-- | templates/program/week_schedule_timeslot.html | 21 |
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 %} |