@@ -0,0 +1,491 @@
+from django import template%0Afrom django.utils.safestring import mark_safe%0Afrom django.utils.translation import ugettext as _%0Aimport hashlib%0A%0Aregister = template.Library()%0A%0A@register.filter%0Adef podcast_logo(podcast):%0A    if podcast.logo_url:%0A        sha = hashlib.sha1(podcast.logo_url).hexdigest()%0A        s = '%3Cimg src=%22/media/logo/%25s%22 alt=%22%25s%22 /%3E' %25 (sha, _('Logo'))%0A    else:%0A        s = '%3Cimg src=%22/media/logo/default.png%22 alt=%22%25s%22 /%3E' %25 _('No Logo available')%0A%0A    return mark_safe(s)%0A%0A

add template filter podcasts.podcast_logo (bug 711)