]> git.0d.be Git - panikweb.git/blob - panikweb/templates/panikombo/episode.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / templates / panikombo / episode.html
1 {% load paniktags thumbnail staticfiles %}
2 {% if episode %}
3 <div class="wrapper extra-soundfiles">
4         <div class="logo">
5                 {% if episode.image %}
6                         {% thumbnail episode.image "60x60" crop="50% 25%" as im %}
7                         <img alt="" width="60" height="60" src="{{im.url}}"/>
8                         {% endthumbnail %}
9                 {% elif episode.emission.image %}
10                         {% thumbnail episode.emission.image "60x60" crop="50% 25%" as im %}
11                         <img alt="" width="60" height="60" src="{{im.url}}"/>
12                         {% endthumbnail %}
13                 {% else %}
14                         <img alt="" 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=episode.emission.slug%}">{{ episode.emission.title }}</a> -
21     <a href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">{{ episode.title }}</a></strong>
22           {% if soundfile.fragment %}<span> - {{ soundfile.title }}</span>{% endif %}
23   </div>
24   {% for diffusion in episode.diffusions %}
25   <span class="date">→ {{ diffusion.datetime|date:"l d M Y à H:i" }}</span>
26   {% endfor %}
27   {% if soundfile %}{% audio sound=soundfile %}{% endif %}
28 </li>
29 </ul>
30 </div>
31 {% endif %}