diff options
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 %} |