]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/panikombo/audio.html
5b82b9f80b21662bed627a6593219ae26f5a1650
[panikweb.git] / panikweb_templates / templates / panikombo / audio.html
1 {% load paniktags thumbnail staticfiles %}
2 {% if soundfile %}
3 <div class="wrapper extra-soundfiles">
4         <div class="logo">
5                 {% if soundfile.episode.image %}
6                         {% thumbnail soundfile.episode.image "60x60" crop="50% 25%" as im %}
7                         <img width="60" height="60" src="{{im.url}}"/>
8                         {% endthumbnail %}
9                 {% elif soundfile.episode.emission.image %}
10                         {% thumbnail soundfile.episode.emission.image "60x60" crop="50% 25%" as im %}
11                         <img width="60" height="60" src="{{im.url}}"/>
12                         {% endthumbnail %}
13                 {% else %}
14                         <img class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
15                 {% endif %}
16         </div>
17 <ul class="padded custom list">
18 <li>
19   <div class="soundfile-info"><strong>
20     <a href="{% url 'emission-view' slug=soundfile.episode.emission.slug%}">{{ soundfile.episode.emission.title }}</a> -
21     <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.episode.title }}</a></strong>
22           {% if soundfile.fragment %}<span> - {{ soundfile.title }}</span>{% endif %}
23   </div>
24   {% audio sound=soundfile %}</li>
25 </ul>
26 </div>
27 {% endif %}