]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/soundfiles/resume.html
fill /listen/ page with soundfile objects, not episodes
[panikweb.git] / panikweb_templates / templates / soundfiles / resume.html
1 {% load thumbnails %}
2 {% load paniktags %}
3 {% load staticfiles %}
4 <div class="episode inline cf">
5         <div class="dateBloc">
6                 <div class="date">
7                         <div class="day">{{ soundfile.first_diffusion|date:"D"|slice:":2"}}</div>
8                         <div class="number">{{ soundfile.first_diffusion|date:"d" }}</div>
9                         <div class="month">{{ soundfile.first_diffusion|date:"M y" }}</div>
10                 </div>
11         </div>
12         <div class="logo">
13                 {% if soundfile.episode.image %}
14                         <img src="{{ soundfile.episode.image|thumbnail:'60x60' }}"/>
15                 {% elif episode.emission.image %}
16                         <img src="{{ soundfile.episode.emission.image|thumbnail:'60x60' }}"/>
17                 {% else %}
18                         <img class="smooth"  style="width:60px;" src="{% static "img/defaultLogo.png" %}"/>
19                 {% endif %}
20         </div>
21         <div class="content">
22                 <div class="sound right">{% audio sound=soundfile %}</div>
23                 <div class="title ellipsis">
24                         <h5 class=" inBlock 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                                 <h5 class="title inBlock">
29                                         <a href="{% url 'emission-view' slug=soundfile.episode.emission.slug %}">{{ soundfile.episode.emission.title }}</a>
30                                 </h5>
31                                 {% if soundfile.episode.emission.categories %}
32                                         <span class="categories">
33                                         {% for category in soundfile.episode.emission.categories.all %}
34                                                 {% if forloop.counter > 1 %} - {% endif %}<span class="category"><span class="inBlock icon-{{category|slugify}}">&nbsp;</span>{{category}}</span>
35                                         {% endfor%}
36                                         </span>
37                                 {% endif %}
38                         </div>
39                 </div>
40
41                 {% if soundfile.episode.subtitle %}
42                 <div class="description ellipsis">
43                         {{ soundfile.episode.subtitle|truncatewords:20}}
44                 </div>
45                 {% elif soundfile.episode.text %}
46                 <div class="description ellipsis">
47                         {{ soundfile.episode.text|safe|striptags|truncatewords:20}}
48                 </div>
49                 {% endif %}
50         </div>
51 </div>