diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-02-15 21:35:57 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-02-15 21:35:57 (GMT) |
commit | 55b2560b6180addea5d8b16e4dd4f80314fd7e09 (patch) | |
tree | 232cf374e4dc8c2e0ffc2bb2dac95ae445cfb010 /templates/program/boxes/recommendations.html | |
parent | a7e37419316c72ad89253123cc4577f1f4648673 (diff) |
show specials as recommendations even if there is no note attached
Diffstat (limited to 'templates/program/boxes/recommendations.html')
-rw-r--r-- | templates/program/boxes/recommendations.html | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/templates/program/boxes/recommendations.html b/templates/program/boxes/recommendations.html index 2b92a70..a0dd4b2 100644 --- a/templates/program/boxes/recommendations.html +++ b/templates/program/boxes/recommendations.html @@ -16,16 +16,26 @@ <td class="format bf-{{ item.show.broadcastformat.slug }}" title="{{ item.show.broadcastformat.format }}"> </td> <td class="show"> - {{ item.timeslot.start|date:"d.m. H:i" }} - - {{ item.timeslot.end|date:"H:i" }}<br /> + {{ item.start|date:"d.m. H:i" }} - + {{ item.end|date:"H:i" }}<br /> - <h3> - <a href="{% url timeslot-detail item.timeslot.id %}">{{ item.show.name }}</a> - </h3> - <p class="note-title"> - {{ item.title }}<br /> - <a href="{% url timeslot-detail item.timeslot.id %}">[weiter]</a> - </p> + {% if item.note %} + <h3> + <a href="{% url timeslot-detail item.id %}">{{ item.show.name }}</a> + </h3> + <p class="note-title"> + {{ item.note.title }}<br /> + <a href="{% url timeslot-detail item.id %}">[weiter]</a> + </p> + {% else %} + <h3> + <a href="{% url show-detail item.show.slug %}">{{ item.show.name }}</a> + </h3> + <p class="note-title"> + {{ item.show.broadcastformat.format }}<br /> + <a href="{% url show-detail item.show.slug %}">[weiter]</a> + </p> + {% endif %} </td> </tr> {% endfor %} |