diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2016-01-06 19:03:56 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2016-01-06 19:03:56 (GMT) |
commit | c547dce30366b3a6097008086cbc0b917c6a2f85 (patch) | |
tree | 95ab3a86af602f6574180d1c74479c5a2c0c3b40 /program/templates/recommendation_list.html | |
parent | 1471381dfe74411934ec51f88bb5c4e7e47f2c36 (diff) |
formated templates and updated templatetags
Diffstat (limited to 'program/templates/recommendation_list.html')
-rw-r--r-- | program/templates/recommendation_list.html | 65 |
1 files changed, 33 insertions, 32 deletions
diff --git a/program/templates/recommendation_list.html b/program/templates/recommendation_list.html index 3836a35..8070b29 100644 --- a/program/templates/recommendation_list.html +++ b/program/templates/recommendation_list.html @@ -5,40 +5,41 @@ <body> <div id="content-main" class="recommendations"> - <h1>Programmhinweise</h1> - <div id="shows"> -{% for recommendation in recommendation_list %} - <div class="show recommendation bf-{{ recommendation.show.broadcastformat.slug }}"> - <div class="show-abbrevs"> - {% for si in recommendation.show.showinformation.all %} - <span title="{{ si.information }}" class="abbrev si-{{ si.abbrev }}"><span>{{ si.abbrev }}</span></span> + <h1>Programmhinweise</h1> + <div id="shows"> + {% for recommendation in recommendation_list %} + <div class="show recommendation bf-{{ recommendation.show.broadcastformat.slug }}"> + <div class="show-abbrevs"> + {% for si in recommendation.show.showinformation.all %} + <span title="{{ si.information }}" + class="abbrev si-{{ si.abbrev }}"><span>{{ si.abbrev }}</span></span> + {% endfor %} + {% for st in recommendation.show.showtopic.all %} + <span title="{{ st.topic }}" + class="abbrev st-{{ st.abbrev }}"><span>{{ st.abbrev }}</span></span> + {% endfor %} + {% for mf in recommendation.show.musicfocus.all %} + <span title="{{ mf.focus }}" + class="abbrev mf-{{ mf.abbrev }}"><span>{{ mf.abbrev }}</span></span> + {% endfor %} + </div> + <div class="show-detail"> + <h4> + <a href="{% url "show-detail" recommendation.show.slug %}">{{ recommendation.show.name }}</a><br/> + vom {{ recommendation.start|date:"d.m. H:i" }}-{{ recommendation.end|date:"H:i" }}</h4> + {% if recommendation.note %} + <h3 class="show-title"></h3> + <a href="{% url "timeslot-detail" recommendation.id %}">{{ recommendation.note.title }}</a></h3> + <div class="note-content">{{ recommendation.note.content|safe }}</div> + {% else %} + <h3 class="show-title"><a + href="{% url "timeslot-detail" recommendation.id %}">{{ recommendation.show.broadcastformat.format }}</a> + </h3> + {% endif %} + </div> + </div> {% endfor %} - {% for st in recommendation.show.showtopic.all %} - <span title="{{ st.topic }}" class="abbrev st-{{ st.abbrev }}"><span>{{ st.abbrev }}</span></span> - {% endfor %} - {% for mf in recommendation.show.musicfocus.all %} - <span title="{{ mf.focus }}" class="abbrev mf-{{ mf.abbrev }}"><span>{{ mf.abbrev }}</span></span> - {% endfor %} - </div> - <div class="show-detail"> - <h4> - <a href="{% url "show-detail" recommendation.show.slug %}">{{ recommendation.show.name }}</a><br /> - vom {{ recommendation.start|date:"d.m. H:i" }}-{{ recommendation.end|date:"H:i" }} - </h4> - {% if recommendation.note %} - <h3 class="show-title"> - <a href="{% url "timeslot-detail" recommendation.id %}">{{ recommendation.note.title }}</a> - </h3> - <div class="note-content">{{ recommendation.note.content|safe}}</div> - {% else %} - <h3 class="show-title"> - <a href="{% url "timeslot-detail" recommendation.id %}">{{ recommendation.show.broadcastformat.format }}</a> - </h3> - {% endif %} - </div> </div> -{% endfor %} - </div> </div> </body> |