]> git.0d.be Git - panikweb.git/blobdiff - panikweb/templates/soundfiles/embed.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / templates / soundfiles / embed.html
diff --git a/panikweb/templates/soundfiles/embed.html b/panikweb/templates/soundfiles/embed.html
new file mode 100644 (file)
index 0000000..449a9d9
--- /dev/null
@@ -0,0 +1,36 @@
+{% extends "base.html" %}
+{% load thumbnail paniktags static %}
+
+{% block bodyattr %}id="embed"{% endblock %}
+{% block title %}{{ episode.emission.title }}{% endblock %}
+
+{% block main %}
+
+<div class="wrapper extra-soundfiles soundcell">
+       <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="custom">
+<li>
+  <div class="soundfile-info"><strong>
+    <a target="_parent" href="{% url 'emission-view' slug=episode.emission.slug%}">{{ episode.emission.title }}</a> -
+    <a target="_parent" href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">{{ episode.title }}</a>
+    {% if object.fragment and object.title %}<span class="fragment-title">- {{ object.title }}</span>{% endif %}
+          </strong>
+  </div>
+  {% audio sound=object embed=True %}
+</li>
+</ul>
+</div>
+{% endblock %}
+