resume.html 1.9 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% load thumbnails %}
{% load paniktags %}
{% load staticfiles %}
<div class="episode inline cf">
	<div class="dateBloc">
		<div class="date">
			<div class="day">{{ soundfile.first_diffusion|date:"D"|slice:":2"}}</div>
			<div class="number">{{ soundfile.first_diffusion|date:"d" }}</div>
			<div class="month">{{ soundfile.first_diffusion|date:"M y" }}</div>
		</div>
	</div>
	<div class="logo">
		{% if soundfile.episode.image %}
			<img src="{{ soundfile.episode.image|thumbnail:'60x60' }}"/>
		{% elif episode.emission.image %}
			<img src="{{ soundfile.episode.emission.image|thumbnail:'60x60' }}"/>
		{% else %}
			<img class="smooth"  style="width:60px;" src="{% static "img/defaultLogo.png" %}"/>
		{% endif %}
	</div>
	<div class="content">
		<div class="sound right">{% audio sound=soundfile %}</div>
		<div class="title ellipsis">
			<h5 class=" inBlock title {% if model = "inline" %}ellipsis{% endif %}">
				<a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.episode.title }}</a>
			</h5>
			<div class="smooth metas">
				<h5 class="title inBlock">
					<a href="{% url 'emission-view' slug=soundfile.episode.emission.slug %}">{{ soundfile.episode.emission.title }}</a>
				</h5>
				{% if soundfile.episode.emission.categories %}
					<span class="categories">
					{% for category in soundfile.episode.emission.categories.all %}
						{% if forloop.counter > 1 %} - {% endif %}<span class="category"><span class="inBlock icon-{{category|slugify}}">&nbsp;</span>{{category}}</span>
					{% endfor%}
					</span>
				{% endif %}
			</div>
		</div>

		{% if soundfile.episode.subtitle %}
		<div class="description ellipsis">
			{{ soundfile.episode.subtitle|truncatewords:20}}
		</div>
		{% elif soundfile.episode.text %}
		<div class="description ellipsis">
			{{ soundfile.episode.text|safe|striptags|truncatewords:20}}
		</div>
		{% endif %}
	</div>
</div>