resume.html 1.64 KB
Newer Older
1
{% load soundfiles %}
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
	-->
Simon Daron's avatar
Simon Daron committed
27
28
29
30
31
	<div class="logo">
		<img src="http://placehold.it/100X100" />
	</div>
	<div class="content">
		<h5 class="title"><a href="{{ episode.slug }}">{{ episode.title }}</a></h5>
32

Simon Daron's avatar
Simon Daron committed
33
34
35
36
37
38
39
40
41
42
		{% 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">
Simon Daron's avatar
Simon Daron committed
43
	<!--
Simon Daron's avatar
Simon Daron committed
44
45
46
47
48
			<dl class="credits cf">
			    <dt>Serie</dt><dd>La musique</dd>
			    <dt>Auteur</dt><dd>Jean Dupont</dd>
			    <dt>Rediffusion</dt><dd>Émission de JetFM</dd>
			</dl>
Simon Daron's avatar
Simon Daron committed
49
50
	-->
			{% if episode.tagList %}
Simon Daron's avatar
Simon Daron committed
51
			<ul class="custom inline">
Simon Daron's avatar
Simon Daron committed
52
53
54
				{% for tag in episode.tagList %}
					<li><button class="tag">{{ tag }}</button></li>
				{% endfor %}
Simon Daron's avatar
Simon Daron committed
55
			</ul>
Simon Daron's avatar
Simon Daron committed
56
			{% endif %}
Simon Daron's avatar
Simon Daron committed
57
		</div>
Simon Daron's avatar
Simon Daron committed
58
59
		{% if episode.main_sound %}
			<div class="sound">
60
				{% audio sound=episode.main_sound %}
Simon Daron's avatar
Simon Daron committed
61
62
			</div>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
63
64
	</div>
</div>