]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/soundfiles/embed.html
templates: add empty alt attributes to icon images
[panikweb.git] / panikweb_templates / templates / soundfiles / embed.html
1 {% extends "base.html" %}
2 {% load thumbnail paniktags static %}
3
4 {% block bodyattr %}id="embed"{% endblock %}
5 {% block title %}{{ episode.emission.title }}{% endblock %}
6
7 {% block main %}
8
9 <div class="wrapper extra-soundfiles soundcell">
10         <div class="logo">
11                 {% if episode.image %}
12                         {% thumbnail episode.image "60x60" crop="50% 25%" as im %}
13                         <img alt="" width="60" height="60" src="{{im.url}}"/>
14                         {% endthumbnail %}
15                 {% elif episode.emission.image %}
16                         {% thumbnail episode.emission.image "60x60" crop="50% 25%" as im %}
17                         <img alt="" width="60" height="60" src="{{im.url}}"/>
18                         {% endthumbnail %}
19                 {% else %}
20                         <img alt="" class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
21                 {% endif %}
22         </div>
23 <ul class="custom">
24 <li>
25   <div class="soundfile-info"><strong>
26     <a target="_parent" href="{% url 'emission-view' slug=episode.emission.slug%}">{{ episode.emission.title }}</a> -
27     <a target="_parent" href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">{{ episode.title }}</a>
28     {% if object.fragment and object.title %}<span class="fragment-title">- {{ object.title }}</span>{% endif %}
29           </strong>
30   </div>
31   {% audio sound=object embed=True %}
32 </li>
33 </ul>
34 </div>
35 {% endblock %}
36