summaryrefslogtreecommitdiff
path: root/helsinki
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-04-04 20:23:52 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-04-04 20:23:52 (GMT)
commit9ab0c5c4f92f6f2d41cb1e159413a53a4a3f27bc (patch)
treebd0883e2bf26bf2dfcfe7fe8685e50491e2fe4e0 /helsinki
parenta3f9af7e8b5972c549918b1c01118e9d78ec52c8 (diff)
plone style portlets
Diffstat (limited to 'helsinki')
-rw-r--r--helsinki/program/templates/program/current_box.html31
-rw-r--r--helsinki/program/templates/program/recommendations_box.html8
2 files changed, 21 insertions, 18 deletions
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 @@
+<!doctype html>
<html>
<head>
- <title>Current program box</title>
- <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
+ <meta charset="utf-8"/>
+ <title>Current program box</title>
+ <link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
-<div id="current">
- <div id="current-title">Programm derzeit</div>
-
- <div id="current-timeslot">
+ {% if current or next or after_next %}
+ <dl class="portlet program-current">
+ <dt class="portletHeader">Programm derzeit</dt>
+ <dd class="portletItem current-timeslot">
<div class="start">{{ current.start|date:"H:i" }}</div>
<div class="show {{ current.show.broadcastformat.slug }}">
<div class="name"><a href="{% url timeslot-detail current.id %}">{{ current.show.name }}</a></div>
@@ -18,22 +20,21 @@
<div class="short-description">{{ current.show.short_description }}</div>
{% endif %}
</div>
- </div>
-
- <div id="next-timeslot">
+ </dd>
+ <dd class="portletItem next-timeslot">
<div class="start">{{ next.start|date:"H:i" }}</div>
<div class="show {{ next.show.broadcastformat.slug }}">
<div class="name"><a href="{% url timeslot-detail next.id %}">{{ next.show.name }}</a></div>
</div>
- </div>
-
- <div id="after-next-timeslot">
+ </dd>
+ <dd class="portletItem next-timeslot">
<div class="start">{{ after_next.start|date:"H:i" }}</div>
<div class="show {{ after_next.show.broadcastformat.slug }}">
<div class="name"><a href="{% url timeslot-detail after_next.id %}">{{ after_next.show.name }}</div></a>
</div>
- </div>
-</div>
+ </dd>
+ </dl>
+ {% endif %}
</body>
-</html> \ No newline at end of file
+</html>
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 @@
<link href="/site_media/styles/base.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
- <dl id="recommendations" class="portlet">
- <dt id="recommendations-title" class="portletHeader">Programmhinweise</dt>
+ {% if recommendations %}
+ <dl id="recommendations" class="portlet program-recommendations">
+ <dt class="portletHeader">Programmhinweise</dt>
{% for recommendation in recommendations %}
- <dd class="portletItem recommendation {{ recommendation.show.broadcastformat.slug }}">
+ <dd class="portletItem program-recommendation {{ recommendation.show.broadcastformat.slug }}">
<h3 class="show-name"><a href="{% url show-detail recommendation.show.slug %}">{{ recommendation.show.name }}</a></h3>
<p class="timeslot-start-end">{{ recommendation.timeslot.start|date:"d.m. H:i" }}-{{ recommendation.timeslot.end|date:"H:i" }}</p>
<p class="note-title"><a href="{% url timeslot-detail recommendation.timeslot.id %}">{{ recommendation.title }}</a></p>
</dd>
{% endfor %}
</dl>
+ {% endif %}
</body>
</html>