summaryrefslogtreecommitdiff
path: root/program/templates/boxes/current.html
blob: 0ac51799da9a46766259041c4493add6c85d4aa6 (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
<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>Current program box</title>
</head>
<body>
{% if previous_timeslot or current_timeslot or next_timeslot or after_next_timeslot %}
    <dl id="program-current-box" class="portlet program-box">
        <dt class="portletHeader">Programm derzeit</dt>
        <dd class="portletItem">
            <table>
                <tr class="previous">
                    <td class="start">{{ previous_timeslot.start|date:"H:i" }}</td>
                    <td class="format bf-{{ previous_timeslot.show.broadcastformat.slug }}"
                        title="{{ previous_timeslot.show.broadcastformat.format }}">&nbsp;</td>
                    <td class="show">
                        <h3>
                            <a href="{% url "timeslot-detail" previous_timeslot.id %}">{{ previous_timeslot.show.name }}</a>
                        </h3>
                    </td>
                    <td class="show"></td>
                </tr>
                <tr class="current">
                    <td class="start">{{ current_timeslot.start|date:"H:i" }}</td>
                    <td class="format bf-{{ current_timeslot.show.broadcastformat.slug }}"
                        title="{{ current_timeslot.show.broadcastformat.format }}">&#x25B6;</td>
                    <td class="show">
                        <h3>
                            <a href="{% url "timeslot-detail" current_timeslot.id %}">{{ current_timeslot.show.name }}</a>
                        </h3>
                        {% if current_timeslot.note %}
                            <p>{{ current_timeslot.note.title }}</p>
                        {% else %}
                            <p>{{ current_timeslot.show.short_description }}</p>
                        {% endif %}
                    </td>
                </tr>
                <tr class="next">
                    <td class="start">{{ next_timeslot.start|date:"H:i" }}</td>
                    <td class="format bf-{{ next_timeslot.show.broadcastformat.slug }}"
                        title="{{ next_timeslot.show.broadcastformat.format }}">&nbsp;</td>
                    <td class="show">
                        <h3><a href="{% url "timeslot-detail" next_timeslot.id %}">{{ next_timeslot.show.name }}</a>
                        </h3>
                    </td>
                    <td class="show"></td>
                </tr>
                <tr class="after_next">
                    <td class="start">{{ after_next_timeslot.start|date:"H:i" }}</td>
                    <td class="format bf-{{ after_next_timeslot.show.broadcastformat.slug }}"
                        title="{{ after_next_timeslot.show.broadcastformat.format }}">&nbsp;</td>
                    <td class="show">
                        <h3>
                            <a href="{% url "timeslot-detail" after_next_timeslot.id %}">{{ after_next_timeslot.show.name }}</a>
                        </h3>
                    </td>
                    <td class="show"></td>
                </tr>
            </table>
        </dd>
    </dl>
{% endif %}
</body>
</html>