summaryrefslogtreecommitdiff
path: root/program/templates/v2/day_schedule.html
blob: ec1a375ec2ea47d6347470b45f0fe8e7c32bca60 (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
<html>
<head>
    <title>Tagesansicht {{ day|date:"l, d.m.Y" }} &mdash; Radio Helsinki - Freies Radio Graz</title>
</head>
<body>

<div id="content-main" class="day-schedule">
    <h1>{{ day|date:"l, d.m.Y" }}</h1>

    <div id="timeslots">
{% for timeslot in timeslots %}
{%   if forloop.first and timeslot.start != timeslot.get_previous_by_start.end %}
            <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
                <div class="show-start">{{ timeslot.get_previous_by_start.end|date:"H:i" }}</div>
                <div class="show-categories">
{%     for si in default_show.showinformation.all %}
                    <span title="{{ si.information }}" class="category category-si si-{{ si.abbrev }}"><span>{{ si.abbrev }}</span></span>
{%     endfor %}
{%     for st in default_show.showtopic.all %}
                    <span title="{{ st.topic }}" class="category category-st st-{{ st.abbrev }}"><span>{{ st.abbrev }}</span></span>
{%     endfor %}
{%     for mf in default_show.musicfocus.all %}
                    <span title="{{ mf.focus }}" class="category category-mf mf-{{ mf.abbrev }}"><span>{{ mf.abbrev }}</span></span>
{%     endfor %}
{%     for lang in default_show.language.all %}
                    <span title="{{ lang.name }}/{{ lang.native_name }}" class="catetory category-lang lang-{{ lang.slug }}"><span>{{ lang.slug }}</span></span>
{%     endfor %}
                </div>
                <div class="show-detail">
                    <h3 class="show-title">{{ default_show.name }}</h3>
                    <p class="show-description">{{ default_show.short_description }}</p>
                </div>
            </div>
{%   endif %}
            <div class="timeslot bf-{{ timeslot.show.broadcastformat.slug }}">
                <div class="show-start">{{ timeslot.start|date:"H:i" }}</div>
                <div class="show-categories">
{%   for si in timeslot.show.showinformation.all %}
                    <span title="{{ si.information }}" class="category category-si si-{{ si.abbrev }}"><span>{{ si.abbrev }}</span></span>
{%   endfor %}
{%   for st in timeslot.show.showtopic.all %}
                    <span title="{{ st.topic }}" class="category category-st st-{{ st.abbrev }}"><span>{{ st.abbrev }}</span></span>
{%   endfor %}
{%   for mf in timeslot.show.musicfocus.all %}
                    <span title="{{ mf.focus }}" class="category category-mf mf-{{ mf.abbrev }}"><span>{{ mf.abbrev }}</span></span>
{%   endfor %}
{%   for lang in timeslot.show.language.all %}
                    <span title="{{ lang.name }}/{{ lang.native_name }}" class="catetory category-lang lang-{{ lang.slug }}"><span>{{ lang.slug }}</span></span>
{%   endfor %}
                </div>
                <div class="show-detail">
                    <h3 class="show-title"><a href="/program/{{ timeslot.id }}">{{ timeslot.show.name }}</a></h3>
{%   if timeslot.note %}
                    <p class="note-title"><strong>Heute:</strong> {{ timeslot.note.title }}</p>
{%   else %}
                    <p class="show-description">{{ timeslot.show.short_description }}</p>
{%   endif %}
                </div>
            </div>
{%   if timeslot.end != timeslot.get_next_by_start.start %}
            <div class="timeslot bf-{{ default_show.broadcastformat.slug }}">
                <div class="show-start">{{ timeslot.end|date:"H:i" }}</div>
                <div class="show-categories">
{%     for si in default_show.showinformation.all %}
                    <span title="{{ si.information }}" class="category category-si si-{{ si.abbrev }}"><span>{{ si.abbrev }}</span></span>
{%     endfor %}
{%     for st in default_show.showtopic.all %}
                    <span title="{{ st.topic }}" class="category category-st st-{{ st.abbrev }}"><span>{{ st.abbrev }}</span></span>
{%     endfor %}
{%     for mf in default_show.musicfocus.all %}
                    <span title="{{ mf.focus }}" class="category category-mf mf-{{ mf.abbrev }}"><span>{{ mf.abbrev }}</span></span>
{%     endfor %}
{%     for lang in default_show.language.all %}
                    <span title="{{ lang.name }}/{{ lang.native_name }}" class="catetory category-lang lang-{{ lang.slug }}"><span>{{ lang.slug }}</span></span>
{%     endfor %}
                </div>
                <div class="show-detail">
                    <h3 class="show-title">{{ default_show.name }}</h3>
                    <p class="show-description">{{ default_show.short_description }}</p>
                </div>
            </div>
{%   endif %}
{% endfor %}
    </div>
</div>

</body>
</html>