]> git.0d.be Git - panikweb-esperanzah.git/blobdiff - panikweb_esperanzah/templates/panikombo/audio.html
misc: apply new pre-commit-config
[panikweb-esperanzah.git] / panikweb_esperanzah / templates / panikombo / audio.html
index 5c97459304fe2eca6dc988947404edfe1f0c3027..7f74683f6fe9f107a1f9df955352b636a70d81a2 100644 (file)
@@ -1,27 +1,27 @@
 {% load paniktags thumbnail static %}
 {% if soundfile %}
-<div class="wrapper extra-soundfiles">
-       <div class="logo">
-               {% if soundfile.episode.image %}
-                       {% thumbnail soundfile.episode.image "60x60" crop="50% 25%" as im %}
-                       <img width="60" height="60" src="{{im.url}}"/>
-                       {% endthumbnail %}
-               {% elif soundfile.episode.emission.image %}
-                       {% thumbnail soundfile.episode.emission.image "60x60" crop="50% 25%" as im %}
-                       <img width="60" height="60" src="{{im.url}}"/>
-                       {% endthumbnail %}
-               {% else %}
-                       <img class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
-               {% endif %}
-       </div>
-<ul class="padded custom list">
-<li>
-  <div class="soundfile-info"><strong>
-    <a href="{% url 'emission-view' slug=soundfile.episode.emission.slug%}">{{ soundfile.episode.emission.title }}</a> -
-    <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.episode.title }}</a></strong>
+  <div class="wrapper extra-soundfiles">
+    <div class="logo">
+      {% if soundfile.episode.image %}
+        {% thumbnail soundfile.episode.image "60x60" crop="50% 25%" as im %}
+          <img width="60" height="60" src="{{im.url}}"/>
+        {% endthumbnail %}
+      {% elif soundfile.episode.emission.image %}
+        {% thumbnail soundfile.episode.emission.image "60x60" crop="50% 25%" as im %}
+          <img width="60" height="60" src="{{im.url}}"/>
+        {% endthumbnail %}
+      {% else %}
+        <img class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
+      {% endif %}
+    </div>
+    <ul class="padded custom list">
+      <li>
+        <div class="soundfile-info"><strong>
+          <a href="{% url 'emission-view' slug=soundfile.episode.emission.slug%}">{{ soundfile.episode.emission.title }}</a> -
+          <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.episode.title }}</a></strong>
           {% if soundfile.fragment %}<span> - {{ soundfile.title }}</span>{% endif %}
+        </div>
+        {% audio sound=soundfile %}</li>
+    </ul>
   </div>
-  {% audio sound=soundfile %}</li>
-</ul>
-</div>
 {% endif %}