summaryrefslogtreecommitdiff
path: root/templates/program/week_schedule.html
blob: 2d01ebd9a850841bc866d3595b7259d55b112bc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<html>
<head>
    <title>Week schedule</title>
</head>

<body>

<div id="content-main" class="week-schedule">

    <div id="weekday-starts">&nbsp;</div>
    <div id="monday" class="weekday">
        <h2>{{ monday|date:"l d.m.Y" }}</h2>
        {% for timeslot in monday_timeslots %}
            {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        <div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}">
            <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a>
        </div>
            {% if timeslot.end != timeslot.get_next_by_start.start %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        {% endfor %}
    </div>

    <div id="tuesday" class="weekday">
        <h2>{{ tuesday|date:"l d.m.Y" }}</h2>
        {% for timeslot in tuesday_timeslots %}
            {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        <div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}">
          <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a>
        </div>
            {% if timeslot.end != timeslot.get_next_by_start.start %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        {% endfor %}
    </div>

    <div id="wednesday" class="weekday">
        <h2>{{ wednesday|date:"l d.m.Y" }}</h2>
        {% for timeslot in wednesday_timeslots %}
            {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        <div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}">
          <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a>
        </div>
            {% if timeslot.end != timeslot.get_next_by_start.start %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        {% endfor %}
    </div>

    <div id="thursday" class="weekday">
        <h2>{{ thursday|date:"l d.m.Y" }}</h2>
        {% for timeslot in thursday_timeslots %}
            {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        <div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}">
          <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a>
        </div>
            {% if timeslot.end != timeslot.get_next_by_start.start %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        {% endfor %}
    </div>

    <div id="friday" class="weekday">
        <h2>{{ friday|date:"l d.m.Y" }}</h2>
        {% for timeslot in friday_timeslots %}
            {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        <div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}">
          <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a>
        </div>
            {% if timeslot.end != timeslot.get_next_by_start.start %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        {% endfor %}
    </div>

    <div id="saturday" class="weekday">
        <h2>{{ saturday|date:"l d.m.Y" }}</h2>
        {% for timeslot in saturday_timeslots %}
            {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        <div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}">
          <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a>
        </div>
            {% if timeslot.end != timeslot.get_next_by_start.start %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        {% endfor %}
    </div>

    <div id="sunday" class="weekday">
        <h2>{{ sunday|date:"l d.m.Y" }}</h2>
        {% for timeslot in sunday_timeslots %}
            {% if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        <div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}">
          <a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a>
        </div>
            {% if timeslot.end != timeslot.get_next_by_start.start %}
        <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
            {{ default_show.name }}
        </div>
            {% endif %}
        {% endfor %}
    </div>
</div>

</body>
</html>