From 5288ea2ed358828635c7a9bbfc691a7b007cf5f6 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt <ernesto.rico-schmidt@evolaris.net> Date: Sat, 20 Aug 2016 21:26:06 +0200 Subject: [PATCH] display only active shows of a host. --- program/templates/host_detail.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/templates/host_detail.html b/program/templates/host_detail.html index 87a4c12d..e7aad16a 100644 --- a/program/templates/host_detail.html +++ b/program/templates/host_detail.html @@ -9,8 +9,8 @@ <div id="shows"> <div id="shows-title">Sendungen</div> - {% for show in host.shows.all %} - <div class="show {{ show.broadcastformat.slug }}">{{ show }}</div> + {% for show in host.active_shows %} + <div class="show {{ show.broadcastformat.slug }}"><a href="{% url "show-detail" show.slug %}"> {{ show.name }}</a></div> {% endfor %} </div> -- GitLab