diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2012-02-17 17:25:41 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2012-02-17 17:25:41 (GMT) |
commit | 428cff5822194f2d934bc1892dc46d63f33c99b1 (patch) | |
tree | 0b7327107475fc9997f777ff55c28b7df6b93290 /templates/program/recommendations.html | |
parent | e9581e89fd0b9c27ff6ad766a6aec3932f3a63e8 (diff) |
fixed unnecesary bug in recommendations template.
Diffstat (limited to 'templates/program/recommendations.html')
-rw-r--r-- | templates/program/recommendations.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/templates/program/recommendations.html b/templates/program/recommendations.html index c08634e..ba9a719 100644 --- a/templates/program/recommendations.html +++ b/templates/program/recommendations.html @@ -23,14 +23,19 @@ <div class="show-detail"> <h4> <a href="{% url show-detail item.show.slug %}">{{ item.show.name }}</a><br /> - vom {{ item.timeslot.start|date:"d.m. H:i" }}-{{ item.timeslot.end|date:"H:i" }} + vom {{ item.start|date:"d.m. H:i" }}-{{ item.end|date:"H:i" }} </h4> + {% if item.note %} <h3 class="show-title"> - <a href="{% url timeslot-detail item.timeslot.id %}">{{ item.title }}</a> + <a href="{% url timeslot-detail item.id %}">{{ item.note.title }}</a> </h3> - <div class="note-content">{{ item.content|safe}}</div> - - </div> + <div class="note-content">{{ item.note.content|safe}}</div> + {% else %} + <h3 class="show-title"> + <a href="{% url timeslot-detail item.id %}">{{ item.show.broadcastformat.format }}</a> + </h3> + {% endif %} + </div> </div> {% endfor %} </div> |