]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/soundfiles/resume.html
1fb2e3f1c49a27e0ed16693c73a844f18f41f8d8
[panikweb.git] / panikweb_templates / templates / soundfiles / resume.html
1 {% load thumbnails paniktags staticfiles %}
2 <div class="episode soundfile inline cf">
3         <div class="logo">
4                 {% if soundfile.episode.image %}
5                         <img width="60" height="60" src="{{ soundfile.episode.image|thumbnail:'60x60' }}"/>
6                 {% elif soundfile.episode.emission.image %}
7                         <img width="60" height="60" src="{{ soundfile.episode.emission.image|thumbnail:'60x60' }}"/>
8                 {% else %}
9                         <img width="60" height="60" src="{% static "img/sound.png" %}"/>
10                 {% endif %}
11                 <p class="date">
12                 {{date|date:"d/m/y"}}
13                 </p>
14
15         </div>
16         <div class="content">
17                 <div class="sound right">{% audio sound=soundfile %}</div>
18                 <div class="title">
19                         {% if soundfile.fragment %}
20                         <h5 class="title">
21                                 <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.title }}</a>
22                         </h5>
23                         {% endif %}
24                         <h5 class="title {% if model = "inline" %}ellipsis{% endif %}">
25                                 <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.episode.title }}</a>
26                         </h5>
27                         <div class="smooth metas">
28                                 {% if soundfile.format %}
29                                         <span class="categories">
30                                         <span class="category">{{ soundfile.format.title }}</span>
31                                         </span>
32                                 {% endif %}
33                                 <h5 class="title inBlock">
34                                         <a href="{% url 'emission-view' slug=soundfile.episode.emission.slug %}">{{ soundfile.episode.emission.title }}</a>
35                                 </h5>
36                         </div>
37                 </div>
38
39                 {% if soundfile.episode.subtitle %}
40                 <div class="description ellipsis">
41                         {{ soundfile.episode.subtitle|truncatewords:20}}
42                 </div>
43                 {% endif %}
44         </div>
45 </div>