From cdf4a43a5410b7e1c8198d600c2c759f1094f6cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Sat, 22 Dec 2012 16:36:16 +0100 Subject: [PATCH] fix template error on missing trending podcast --- mygpo/directory/templates/directory.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mygpo/directory/templates/directory.html b/mygpo/directory/templates/directory.html index f4c35c1c..bd9236fa 100644 --- a/mygpo/directory/templates/directory.html +++ b/mygpo/directory/templates/directory.html @@ -122,6 +122,7 @@ {% cache 3600 directory_trending %} {% if trending_podcasts %} {% with trending_podcasts|slice:":1"|first as trending_podcast %} + {% if trending_podcast %}

{% trans "Trending" %} {% subscriber_change trending_podcast.subscriber_change %}

@@ -141,6 +142,7 @@

+ {% endif %} {% endwith %} {% endif %} {% endcache %} -- 2.11.4.GIT