Skip to content
Snippets Groups Projects
Commit d9719a5b authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

cleaned-up template.

parent ebe0e7f7
No related branches found
No related tags found
No related merge requests found
<html> <html>
<head> <head>
<title>Day schedule</title> <title>Day schedule: {{ day|date:"l, d.m.Y" }}</title>
<link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
</head> </head>
<body> <body>
...@@ -8,45 +9,52 @@ ...@@ -8,45 +9,52 @@
<div id="calendar"></div> <div id="calendar"></div>
<div id="recommendations"> <div id="recommendations">
<div id="recommendations-title">Programmhinweise</div>
{% for recommendation in recommendations %} {% for recommendation in recommendations %}
<div>{{ recommendation.timeslot.start|date:"H:i" }}</div> <div class="recommendation {{ recommendation.show.broadcastformat.slug }}">
<div>{{ recommendation.timeslot.programslot.show.name }}</div> <div class="timeslot-start-end">{{ recommendation.timeslot.start|date:"d.m. H:i" }} - {{ recommendation.timeslot.end|date:"H:i" }}</div>
<div><a href="{% url timeslot-detail recommendation.timeslot.id %}">{{ recommendation.title }}</a></div> <div class="show-name"><a href="{% url show-detail recommendation.show.slug %}">{{ recommendation.show.name }}</a></div>
<div class="note-title"><a href="{% url timeslot-detail recommendation.timeslot.id %}">{{ recommendation.title }}</a></div>
</div>
{% endfor %} {% endfor %}
</div> </div>
<div> <div id="day-schedule">
<div id="title">Tagesansicht</div>
<div id="date">{{ day|date:"l, d.m.Y" }}</div>
<div id="timeslots">
{% for timeslot in timeslots %} {% for timeslot in timeslots %}
<div> <div class="timeslot {{ timeslot.show.broadcastformat }}">
<span class="time">{{ timeslot.start|date:"H:i" }}</span> <div class="start">{{ timeslot.start|date:"H:i" }}</div>
<span class="abbrev"> <div class="show-abbrevs">&nbsp;
{% for showinformation in timeslot.programslot.show.showinformation.all %} {% for showinformation in timeslot.show.showinformation.all %}
{{ showinformation.abbrev }} {{ showinformation.abbrev }}
{% endfor %} {% endfor %}
</span> {% for showtopic in timeslot.show.showtopic.all %}
<span class="abbrev"> {{ showtopic.abbrev }}
{% for showtopic in timeslot.programslot.show.showtopic.all %} {% endfor %}
{{ showtopic.abbrev }} {% for musicfocus in timeslot.show.musicfocus.all %}
{% endfor %} {{ musicfocus.abbrev }}
</span> {% endfor %}
<span class="abbrev"> </div>
{% for musicfocus in timeslot.programslot.show.musicfocus.all %} <div class="show">
{{ musicfocus.abbrev }} <div class="name"><a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show.name }}</a></div>
{% endfor %}
</span>
<span class="timeslot">
<a href="{% url timeslot-detail timeslot.id %}">{{ timeslot.show }}</a>
{% if timeslot.note %} {% if timeslot.note %}
<span>Heute: {{ timeslot.note.title }}</span> <div class="note-title">Heute: {{ timeslot.note.title }}</div>
{% endif %} {% else %}
</span> <div class="short-description">{{ timeslot.show.short_description }}</div>
{% endif %}
</div>
</div>
{% endfor %} {% endfor %}
</div>
</div> </div>
<div> <div id="broadcastformats">
<div id="broadcastformats-title">Legende</div>
{% for broadcastformat in broadcastformats %} {% for broadcastformat in broadcastformats %}
<div> <div class="{{ broadcastformat.slug }}">
{{ broadcastformat }} <a href="?broadcastformat={{ broadcastformat.slug }}">{{ broadcastformat.format }}</a>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment