summaryrefslogtreecommitdiff
path: root/program/templates/v2/current_show.html
blob: ab5f84368746f06154c7f86435aba2f6f121d4c8 (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
<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>Current program box</title>
</head>
<body>
    <ul>
{%   if previous_timeslot %}
        <li id="previous" class="bf-{{ previous_timeslot.show.broadcastformat.slug }}">
            <div class="time">{{ previous_timeslot.start|date:"H:i" }}</div>
            <div class="show-name">
                <a href="{% url "timeslot-detail-v2" previous_timeslot.id %}">{{ previous_timeslot.show.name }}</a>
            </div>
            <div class="show-content">
            </div>
        </li>
{%   endif %}
{%   if current_timeslot %}
        <li id="current" class="bf-{{ current_timeslot.show.broadcastformat.slug }}">
            <div class="time">{{ current_timeslot.start|date:"H:i" }}</div>
            <div class="show-name">
                <a href="{% url "timeslot-detail-v2" current_timeslot.id %}">{{ current_timeslot.show.name }}</a>
            </div>
            <div class="show-content">
{%     if current_timeslot.note %}
                    {{ current_timeslot.note.title }}
{%     else %}
                    {{ current_timeslot.show.short_description }}
{%     endif %}
            </div>
        </li>
{%   endif %}
{%   if next_timeslot %}
        <li id="next" class="bf-{{ next_timeslot.show.broadcastformat.slug }}">
            <div class="time">{{ next_timeslot.start|date:"H:i" }}</div>
            <div class="show-name">
                <a href="{% url "timeslot-detail-v2" next_timeslot.id %}">{{ next_timeslot.show.name }}</a>
            </div>
            <div class="show-content">
            </div>
        </li>
{%   endif %}
{%   if after_next_timeslot %}
        <li id="after_next" class="bf-{{ after_next_timeslot.show.broadcastformat.slug }}">
            <div class="timer">{{ after_next_timeslot.start|date:"H:i" }}</div>
            <div class="show-name">
                <a href="{% url "timeslot-detail-v2" after_next_timeslot.id %}">{{ after_next_timeslot.show.name }}</a>
            </div>
            <div class="show-content">
            </div>
        </li>
{%   endif %}
    </ul>
</body>
</html>