resume.html 1.87 KB
Newer Older
1
{% load thumbnails %}
2
{% load paniktags %}
Simon Daron's avatar
Simon Daron committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div class="episode resume episode-resume cf">
	<div class="date dateBloc">
		<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>
Simon Daron's avatar
Simon Daron committed
20
	<!--
Simon Daron's avatar
Simon Daron committed
21
22
23
24
25
	<div class="controls todo">
		<button class="big symbol play">A</button><button class="big symbol add">B</button>
		<br /><button  class="big symbol download">I</button>
		<br /><button class="big symbol buy">C</button>
	</div>
Simon Daron's avatar
Simon Daron committed
26
	-->
27
	{% if episode.image %}
Simon Daron's avatar
Simon Daron committed
28
	<div class="logo">
29
		<img width="100" height="100" src="{{ episode.image|thumbnail:'100x100' }}"/>
Simon Daron's avatar
Simon Daron committed
30
	</div>
31
	{% endif %}
Simon Daron's avatar
Simon Daron committed
32
33
	<div class="content">
		<h5 class="title"><a href="{{ episode.slug }}">{{ episode.title }}</a></h5>
34

Simon Daron's avatar
Simon Daron committed
35
36
37
38
39
40
41
42
43
44
		{% if episode.description %}
		<article class="text">
			{{ episode.description|safe }}
		</article>
		{% elif episode.text %}
		<article class="text">
			{{ episode.text|safe|striptags|truncatewords:20}}
		</article>
		{% endif %}
		<div class="metas">
45
			{% if episode.serie  or episode.auteur or episode.redif %}
Simon Daron's avatar
Simon Daron committed
46
			<dl class="credits cf">
47
48
49
			    {% if episode.serie %}<dt>Serie</dt><dd>{{ serie }}</dd>{% endif %}
			    {% if episode.auteur %}<dt>Auteur</dt><dd>{{ auteur }}</dd>{% endif %}
			    {% if episode.redif %}<dt>Redifusion</dt><dd>{{ redif }}</dd>{% endif %}
Simon Daron's avatar
Simon Daron committed
50
			</dl>
51
			{% endif %}
Simon Daron's avatar
Simon Daron committed
52
			{% if episode.tagList %}
Simon Daron's avatar
Simon Daron committed
53
			<ul class="custom inline">
Simon Daron's avatar
Simon Daron committed
54
55
56
				{% for tag in episode.tagList %}
					<li><button class="tag">{{ tag }}</button></li>
				{% endfor %}
Simon Daron's avatar
Simon Daron committed
57
			</ul>
Simon Daron's avatar
Simon Daron committed
58
			{% endif %}
Simon Daron's avatar
Simon Daron committed
59
		</div>
Simon Daron's avatar
Simon Daron committed
60
61
		{% if episode.main_sound %}
			<div class="sound">
62
				{% audio sound=episode.main_sound %}
Simon Daron's avatar
Simon Daron committed
63
64
			</div>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
65
66
	</div>
</div>