diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2016-01-06 19:03:56 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2016-01-06 19:03:56 (GMT) |
commit | c547dce30366b3a6097008086cbc0b917c6a2f85 (patch) | |
tree | 95ab3a86af602f6574180d1c74479c5a2c0c3b40 /program/templates/week_schedule_timeslot.html | |
parent | 1471381dfe74411934ec51f88bb5c4e7e47f2c36 (diff) |
formated templates and updated templatetags
Diffstat (limited to 'program/templates/week_schedule_timeslot.html')
-rw-r--r-- | program/templates/week_schedule_timeslot.html | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/program/templates/week_schedule_timeslot.html b/program/templates/week_schedule_timeslot.html index 852466b..8942327 100644 --- a/program/templates/week_schedule_timeslot.html +++ b/program/templates/week_schedule_timeslot.html @@ -1,54 +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> + <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> + <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> + <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> + <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 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> + <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> + <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 %} + <div class="timeslot bf-{{ default_show.broadcastformat.slug }}" {% duration_since timeslot.end %}> + <div>{{ default_show.name }}</div> + </div> +{% endif %} |