From 9ab0c5c4f92f6f2d41cb1e159413a53a4a3f27bc Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Mon, 4 Apr 2011 22:23:52 +0200 Subject: plone style portlets diff --git a/helsinki/program/templates/program/current_box.html b/helsinki/program/templates/program/current_box.html index d778518..8220ba4 100644 --- a/helsinki/program/templates/program/current_box.html +++ b/helsinki/program/templates/program/current_box.html @@ -1,14 +1,16 @@ + - Current program box - + + Current program box + -
-
Programm derzeit
- -
+ {% if current or next or after_next %} +
+
Programm derzeit
+
{{ current.start|date:"H:i" }}
@@ -18,22 +20,21 @@
{{ current.show.short_description }}
{% endif %}
-
- -
+ +
{{ next.start|date:"H:i" }}
-
- -
+ +
{{ after_next.start|date:"H:i" }}
-
-
+ + + {% endif %} - \ No newline at end of file + diff --git a/helsinki/program/templates/program/recommendations_box.html b/helsinki/program/templates/program/recommendations_box.html index 17a0af8..5a0f40d 100644 --- a/helsinki/program/templates/program/recommendations_box.html +++ b/helsinki/program/templates/program/recommendations_box.html @@ -6,15 +6,17 @@ -
-
Programmhinweise
+ {% if recommendations %} +
+
Programmhinweise
{% for recommendation in recommendations %} -
+

{{ recommendation.show.name }}

{{ recommendation.timeslot.start|date:"d.m. H:i" }}-{{ recommendation.timeslot.end|date:"H:i" }}

{{ recommendation.title }}

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