summaryrefslogtreecommitdiff
path: root/program/templates/v2/boxes/recommendation.html
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2021-02-24 14:42:40 (GMT)
committerChristian Pointner <equinox@helsinki.at>2021-02-24 22:57:42 (GMT)
commit3f935fe643fd8d4f807803c99dbd25d048acb143 (patch)
treea468d91855967488107bfa909306f3f8f292f0ce /program/templates/v2/boxes/recommendation.html
parenta1064414914efd53ef1c44ee12392fef8a0c0b0f (diff)
add V2 views and template tags for new homepage
Diffstat (limited to 'program/templates/v2/boxes/recommendation.html')
-rw-r--r--program/templates/v2/boxes/recommendation.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/program/templates/v2/boxes/recommendation.html b/program/templates/v2/boxes/recommendation.html
new file mode 100644
index 0000000..3f4429e
--- /dev/null
+++ b/program/templates/v2/boxes/recommendation.html
@@ -0,0 +1,39 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8"/>
+ <title>Recomendations box</title>
+</head>
+<body>
+{% if recommendation_list %}
+ <dl id="recommendations" class="portlet program-box">
+ <dt class="portletHeader">Programmhinweise</dt>
+ <dd class="portletItem">
+ <table>
+ {% for recommendation in recommendation_list %}
+ <tr>
+ <td class="start">&nbsp;</td>
+ <td class="format bf-{{ recommendation.show.broadcastformat.slug }}"
+ title="{{ recommendation.show.broadcastformat.format }}">&nbsp;</td>
+ <td class="show">
+ {{ recommendation.start|date:"d.m. H:i" }} - {{ recommendation.end|date:"H:i" }}<br/>
+ <h3>
+ <a href="{% url "timeslot-detail" recommendation.id %}">{{ recommendation.show.name }}</a>
+ </h3>
+ <p class="note-title">
+ {% if recommendation.note %}
+ {{ recommendation.note.title }}<br/>
+ {% else %}
+ {{ recommendation.show.broadcastformat.format }}<br/>
+ {% endif %}
+ <a href="{% url "timeslot-detail" recommendation.id %}">[weiter]</a>
+ </p>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ </dd>
+ </dl>
+{% endif %}
+</body>
+</html>