From 0fdf7c054d37e1d8ef94e731a5f1c8f4af849bfe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Wed, 19 Nov 2014 21:07:46 +0100 Subject: [PATCH] [Directory] don't fail on missing random podcast --- mygpo/directory/templates/directory.html | 2 ++ mygpo/web/templates/dashboard.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mygpo/directory/templates/directory.html b/mygpo/directory/templates/directory.html index 0c7a26d5..966b3dfb 100644 --- a/mygpo/directory/templates/directory.html +++ b/mygpo/directory/templates/directory.html @@ -110,6 +110,7 @@ {% endif %} {% endfor %} + {% if random_podcast %}

{% trans "Random" %}

@@ -130,6 +131,7 @@

+ {% endif %} {% endblock %} diff --git a/mygpo/web/templates/dashboard.html b/mygpo/web/templates/dashboard.html index 26528b56..66a4fc9d 100644 --- a/mygpo/web/templates/dashboard.html +++ b/mygpo/web/templates/dashboard.html @@ -59,7 +59,7 @@ {% endif %} - + {% if random_podcast %} {% cache 3600 random_podcast_box %}
@@ -82,6 +82,7 @@
{% endcache %} + {% endif %}

{% blocktrans %}Explore {{ site }}{% endblocktrans %}

-- 2.11.4.GIT