From 428cff5822194f2d934bc1892dc46d63f33c99b1 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Fri, 17 Feb 2012 18:25:41 +0100 Subject: fixed unnecesary bug in recommendations template. diff --git a/templates/program/boxes/recommendations.html b/templates/program/boxes/recommendations.html index a0dd4b2..2174654 100644 --- a/templates/program/boxes/recommendations.html +++ b/templates/program/boxes/recommendations.html @@ -18,24 +18,17 @@ {{ item.start|date:"d.m. H:i" }} - {{ item.end|date:"H:i" }}
- - {% if item.note %}

{{ item.show.name }}

+ {% if item.note %} {{ item.note.title }}
- [weiter] -

- {% else %} -

- {{ item.show.name }} -

-

+ {% else %} {{ item.show.broadcastformat.format }}
- [weiter] + {% endif %} + [weiter]

- {% endif %} {% endfor %} 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 @@

{{ item.show.name }}
- 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" }}

+ {% if item.note %}

- {{ item.title }} + {{ item.note.title }}

-
{{ item.content|safe}}
- -
+
{{ item.note.content|safe}}
+ {% else %} +

+ {{ item.show.broadcastformat.format }} +

+ {% endif %} + {% endfor %} -- cgit v0.10.2