Skip to content
Snippets Groups Projects
Commit 9ab0c5c4 authored by Johannes Raggam's avatar Johannes Raggam
Browse files

plone style portlets

parent a3f9af7e
No related branches found
No related tags found
No related merge requests found
<!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>
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment