From bc7ef81c4afbcc7f1591da9615c9f4443cfb59c6 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Sun, 24 Jul 2011 18:43:30 +0200 Subject: fixed week view. diff --git a/templates/program/week_schedule_timeslot.html b/templates/program/week_schedule_timeslot.html index a2c452e..852466b 100644 --- a/templates/program/week_schedule_timeslot.html +++ b/templates/program/week_schedule_timeslot.html @@ -2,28 +2,53 @@ {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
-
- {{ default_show.name }} -
+
{{ default_show.name }}
{% endif %} + +{% if forloop.first and timeslot.start == timeslot.get_next_by_start.end and timeslot.start != "06:00" %}
-
- {{ timeslot.show.name }} -
-
-{% if timeslot.end != timeslot.get_next_by_start.start %} - {% if not forloop.last %} -
-
- {{ default_show.name }} -
-
- {% else %} -
-
- {{ default_show.name }} -
+
{{ timeslot.show.name }}
+
+{% endif %} + +{% if forloop.first and timeslot.start != "06:00" and timeslot.show == default_show %} +
+
{{ timeslot.show.name }}
+
+{% endif %} + +{% if forloop.first and timeslot.start != "06:00" and timeslot.show != default_show %} +
+
{{ timeslot.show.name }}
+{% endif %} + +{% if not forloop.first and not forloop.last %} +
+
{{ timeslot.show.name }}
+
+ {% if timeslot.end != timeslot.get_next_by_start.start %} +
+
{{ default_show.name }}
+
{% endif %} {% endif %} + +{% if forloop.last and timeslot.end != "06:00" and timeslot.show == default_show %} +
+
{{ timeslot.show.name }}
+
+{% endif %} + +{% if forloop.last and timeslot.end != "06:00" and timeslot.show != default_show %} +
+
{{ timeslot.show.name }}
+
+{% endif %} + +{% if forloop.last and timeslot.end != timeslot.get_next_by_start.start %} +
+
{{ default_show.name }}
+
+{% endif %} -- cgit v0.10.2