]> git.0d.be Git - panikweb-esperanzah.git/blobdiff - panikweb_templates/templates/listen.html
switch thumbnail system from homegrown to sorl-thumbnail
[panikweb-esperanzah.git] / panikweb_templates / templates / listen.html
index 986cd0ac120a136e86191ceca03971b017c280ad..a368cbb056b26f4a0cfeb7c717de3663c28bdb3e 100644 (file)
@@ -1,5 +1,5 @@
 {% extends "base.html" %}
-{% load paniktags staticfiles thumbnails i18n %}
+{% load paniktags staticfiles thumbnail i18n %}
 {% block title %}{% trans 'Sounds' %}{% endblock %}
 {% block toptitle %}
 <h1 class="top"><a href="{% url 'listen' %}">{% trans 'Sounds' %}</a></h1>
                 </div>
                 <div class="logo">
                   {% if soundfile.episode.image %}
-                  <img class="normal" src="{{ soundfile.episode.image|thumbnail:'480x320' }}"/>
+                  {% thumbnail soundfile.episode.image "480x320" crop="50% 25%" as im %}
+                  <img class="normal" src="{{im.url}}"/>
+                  {% endthumbnail %}
                   {% elif soundfile.episode.emission.image %}
-                  <img class="normal" src="{{ soundfile.episode.emission.image|thumbnail:'480x320' }}"/>
+                  {% thumbnail soundfile.episode.emission.image "480x320" crop="50% 25%" as im %}
+                  <img class="normal" src="{{im.url}}"/>
+                  {% endthumbnail %}
                   {% else %}
                   <img class="normal" src="{% static "img/sound.png" %}"/>
                   {% endif %}