From efb32d7a40cf3f8a18ab01570dfe0e0722ef4d5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Mon, 14 Jan 2013 21:37:45 +0000 Subject: [PATCH] don't show device icon on podcast page when device is unknown --- mygpo/web/templates/podcast.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mygpo/web/templates/podcast.html b/mygpo/web/templates/podcast.html index c3e8fa19..8fd4dd99 100755 --- a/mygpo/web/templates/podcast.html +++ b/mygpo/web/templates/podcast.html @@ -158,8 +158,10 @@ {% for device in devices %} - {{ device|device_icon }} - {{ device.name|striptags }} + {% if device %} + {{ device|device_icon }} + {{ device.name|striptags }} + {% endif %}
-- 2.11.4.GIT