]> git.0d.be Git - panikweb.git/blobdiff - panikweb/templates/panikombo/episode.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / templates / panikombo / episode.html
diff --git a/panikweb/templates/panikombo/episode.html b/panikweb/templates/panikombo/episode.html
new file mode 100644 (file)
index 0000000..b38ce48
--- /dev/null
@@ -0,0 +1,31 @@
+{% load paniktags thumbnail staticfiles %}
+{% if episode %}
+<div class="wrapper extra-soundfiles">
+       <div class="logo">
+               {% if episode.image %}
+                       {% thumbnail episode.image "60x60" crop="50% 25%" as im %}
+                       <img alt="" width="60" height="60" src="{{im.url}}"/>
+                       {% endthumbnail %}
+               {% elif episode.emission.image %}
+                       {% thumbnail episode.emission.image "60x60" crop="50% 25%" as im %}
+                       <img alt="" width="60" height="60" src="{{im.url}}"/>
+                       {% endthumbnail %}
+               {% else %}
+                       <img alt="" 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=episode.emission.slug%}">{{ episode.emission.title }}</a> -
+    <a href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">{{ episode.title }}</a></strong>
+          {% if soundfile.fragment %}<span> - {{ soundfile.title }}</span>{% endif %}
+  </div>
+  {% for diffusion in episode.diffusions %}
+  <span class="date">→ {{ diffusion.datetime|date:"l d M Y à H:i" }}</span>
+  {% endfor %}
+  {% if soundfile %}{% audio sound=soundfile %}{% endif %}
+</li>
+</ul>
+</div>
+{% endif %}