]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/soundfiles/resume.html
adjust size of title in soundfile mini view
[panikweb.git] / panikweb_templates / templates / soundfiles / resume.html
1 {% load thumbnails %}
2 {% load paniktags %}
3 {% load staticfiles %}
4 <div class="episode soundfile inline cf">
5         <div class="logo">
6                 {% if soundfile.episode.image %}
7                         <img src="{{ soundfile.episode.image|thumbnail:'50x50' }}"/>
8                 {% elif episode.emission.image %}
9                         <img src="{{ soundfile.episode.emission.image|thumbnail:'50x50' }}"/>
10                 {% else %}
11                         <img class="smooth"  style="width:50px;" src="{% static "img/defaultLogo.png" %}"/>
12                 {% endif %}
13                 <p class="date">
14                 {{date|date:"d M"}}<br/>
15                 {{date|date:"y"}}
16                 </p>
17
18         </div>
19         <div class="content">
20                 <div class="sound right">{% audio sound=soundfile %}</div>
21                 <div class="title ellipsis">
22                         {% if soundfile.fragment %}
23                         <h5 class="title ellipsis">
24                                 {{ soundfile.title }}
25                         </h5>
26                         {% endif %}
27                         <h5 class=" inBlock title {% if model = "inline" %}ellipsis{% endif %}">
28                                 <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.episode.title }}</a>
29                         </h5>
30                         <div class="smooth metas">
31                                 <h5 class="title inBlock">
32                                         <a href="{% url 'emission-view' slug=soundfile.episode.emission.slug %}">{{ soundfile.episode.emission.title }}</a>
33                                 </h5>
34                                 {% if soundfile.episode.emission.categories %}
35                                         <span class="categories">
36                                         {% for category in soundfile.episode.emission.categories.all %}
37                                                 {% if forloop.counter > 1 %} - {% endif %}<span class="category"><span class="inBlock icon-{{category|slugify}}">&nbsp;</span>{{category}}</span>
38                                         {% endfor%}
39                                         </span>
40                                 {% endif %}
41                         </div>
42                 </div>
43
44                 {% if soundfile.episode.subtitle %}
45                 <div class="description ellipsis">
46                         {{ soundfile.episode.subtitle|truncatewords:20}}
47                 </div>
48                 {% elif soundfile.episode.text %}
49                 <div class="description ellipsis">
50                         {{ soundfile.episode.text|safe|striptags|truncatewords:20}}
51                 </div>
52                 {% endif %}
53         </div>
54 </div>