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