inline.html 1.35 KB
Newer Older
fred's avatar
fred committed
1
{% load thumbnails %}
2
{% load paniktags %}
Simon Daron's avatar
Simon Daron committed
3
<div class="episode episode-inline inline cf">
4
	<div class="date dateBloc left small">
Simon Daron's avatar
Simon Daron committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
		<span class="day">
		    {{ episode.first_diffusion|date:"D"|slice:":2"}}
		</span>
		<span class="number">
		    {{ episode.first_diffusion|date:"d" }}
		</span>
		{% if date != "daytime" %}
		<div class="month">
		    {{ episode.first_diffusion|date:"M Y" }}
		</div>
		{% endif %}
		<span class="time">
		    {{ episode.first_diffusion|date:"H:i" }}
		</span>
	</div>
20
	{% if episode.image %}
Simon Daron's avatar
Simon Daron committed
21
	<div class="logo right">
fred's avatar
fred committed
22
		<img width="50" height="50" src="{{ episode.image|thumbnail:'50x50' }}"/>
Simon Daron's avatar
Simon Daron committed
23
	</div>
24
	{% endif %}
Simon Daron's avatar
Simon Daron committed
25
	<div class="content">
Simon Daron's avatar
Simon Daron committed
26
		<a class="block" href="{{ episode.slug }}">
Simon Daron's avatar
Simon Daron committed
27
28
29
30
31
32
33
34
35
36
37
			<h5 class="title ellipsis">{{ episode.title }}</h5>
				{% if episode.description %}
					<div class="description ellipsis">
						{{ episode.description|safe|striptags }}
					</div>
				{% elif episode.text %}
					<div class="description ellipsis">
						{{ episode.text|safe|striptags|truncatewords:20}}
					</div>
				{% endif %}
		</a>
Simon Daron's avatar
Simon Daron committed
38
39
40
41
42
43
44
			{% if episode.tagList %}
			<ul class="custom inline">
				{% for tag in episode.tagList %}
					<li><button class="tag">{{ tag }}</button></li>
				{% endfor %}
			</ul>
			{% endif %}
Simon Daron's avatar
Simon Daron committed
45
46
		{% if episode.main_sound %}
		<div class="sound">
47
			{% audio sound=episode.main_sound %}
Simon Daron's avatar
Simon Daron committed
48
49
		</div>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
50
51
	</div>
</div>