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/boxes/recommendation.html | |
parent | 1471381dfe74411934ec51f88bb5c4e7e47f2c36 (diff) |
formated templates and updated templatetags
Diffstat (limited to 'program/templates/boxes/recommendation.html')
-rw-r--r-- | program/templates/boxes/recommendation.html | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/program/templates/boxes/recommendation.html b/program/templates/boxes/recommendation.html index d2bb7d2..3f4429e 100644 --- a/program/templates/boxes/recommendation.html +++ b/program/templates/boxes/recommendation.html @@ -1,40 +1,39 @@ <!doctype html> <html> <head> - <meta charset="utf-8"/> - <title>Recomendations box</title> + <meta charset="utf-8"/> + <title>Recomendations box</title> </head> <body> - {% if recommendation_list %} - <dl id="recommendations" class="portlet program-box"> - <dt class="portletHeader">Programmhinweise</dt> - <dd class="portletItem"> - <table> - {% for item in recommendation_list %} - <tr> - <td class="start"> </td> - <td class="format bf-{{ item.show.broadcastformat.slug }}" - title="{{ item.show.broadcastformat.format }}"> </td> - <td class="show"> - {{ item.start|date:"d.m. H:i" }} - - {{ item.end|date:"H:i" }}<br /> - <h3> - <a href="{% url "timeslot-detail" item.id %}">{{ item.show.name }}</a> - </h3> - <p class="note-title"> - {% if item.note %} - {{ item.note.title }}<br /> - {% else %} - {{ item.show.broadcastformat.format }}<br /> - {% endif %} - <a href="{% url "timeslot-detail" item.id %}">[weiter]</a> - </p> - </td> - </tr> - {% endfor %} - </table> - </dd> - </dl> - {% endif %} +{% if recommendation_list %} + <dl id="recommendations" class="portlet program-box"> + <dt class="portletHeader">Programmhinweise</dt> + <dd class="portletItem"> + <table> + {% for recommendation in recommendation_list %} + <tr> + <td class="start"> </td> + <td class="format bf-{{ recommendation.show.broadcastformat.slug }}" + title="{{ recommendation.show.broadcastformat.format }}"> </td> + <td class="show"> + {{ recommendation.start|date:"d.m. H:i" }} - {{ recommendation.end|date:"H:i" }}<br/> + <h3> + <a href="{% url "timeslot-detail" recommendation.id %}">{{ recommendation.show.name }}</a> + </h3> + <p class="note-title"> + {% if recommendation.note %} + {{ recommendation.note.title }}<br/> + {% else %} + {{ recommendation.show.broadcastformat.format }}<br/> + {% endif %} + <a href="{% url "timeslot-detail" recommendation.id %}">[weiter]</a> + </p> + </td> + </tr> + {% endfor %} + </table> + </dd> + </dl> +{% endif %} </body> </html> |