detail.html 2.35 KB
Newer Older
fred's avatar
fred committed
1
{% load thumbnails paniktags %}
Simon Daron's avatar
Simon Daron committed
2
<div class="episode detail episode-detail cf">
fred's avatar
fred committed
3
	{% if episode.first_diffusion %}
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
	<div class="dateBloc">
		<div class="date">
			<div class="day">
			    {{ episode.first_diffusion|date:"D"|slice:":2"}}
			</div>
			<div class="number">
			    {{ episode.first_diffusion|date:"d" }}
			</div>
			{% if date != "daytime" %}
			<div class="month">
			    {{ episode.first_diffusion|date:"M y" }}
			</div>
			{% endif %}
			<div class="time">
			    {{ episode.first_diffusion|date:"H:i" }}
			</div>
		</div>
	</div>
fred's avatar
fred committed
22
	{% endif %}
23
	{% if diffusions %}
24
	<header class="">
25
		<h3 class="">{{ episode.title }}</h3>
fred's avatar
fred committed
26 27 28
		{% if episode.subtitle %}
		<h3 class="episode-subtitle">{{ episode.subtitle }}</h3>
		{% endif %}
29
		{% if diffusions|length > 1 %}
30
		<div class="label">Diffusions</div>
31 32 33
		{% else %}
		<div class="label">Diffusion</div>
		{% endif %}
34 35 36 37 38 39 40 41
		<ul class="diffusions custom">
			{% for schedule in diffusions %}
				<li><span class="date">{{ schedule.datetime|date:"l d M Y à H:i" }}</span></li>
			{% endfor %}
		</ul>
	</header>
	{% endif %}
	{% if episode.main_sound %}
42
		<div class="sound">
43 44
			{% audio sound=episode.main_sound %}
		</div>
45
	{% endif %}
Simon Daron's avatar
Simon Daron committed
46 47
	<div class="content userContent marged">
		{% if episode.image %}
fred's avatar
fred committed
48
		<img class="logo right button" data-toggle-img="/media/{{episode.image}}" src="{{ episode.image|thumbnail:'640x480' }}"/>
Simon Daron's avatar
Simon Daron committed
49
		{% endif %}
Simon Daron's avatar
Simon Daron committed
50 51
		{% if episode.text %}
		<article class="text">
52
			{{ episode.text|safe}}
Simon Daron's avatar
Simon Daron committed
53 54 55
		</article>
		{% endif %}
		<div class="metas">
Simon Daron's avatar
Simon Daron committed
56
			{% if episode.serie  or episode.auteur or episode.redif %}
Simon Daron's avatar
Simon Daron committed
57
			<dl class="credits cf">
Simon Daron's avatar
Simon Daron committed
58 59 60
			    {% 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
61
			</dl>
Simon Daron's avatar
Simon Daron committed
62
			{% endif %}
fred's avatar
fred committed
63
			{% if episode.tags.all %}
Simon Daron's avatar
Simon Daron committed
64
			<ul class="custom inline">
fred's avatar
fred committed
65
				{% for tag in episode.tags.all %}
fred's avatar
fred committed
66
				<li><a class="tag" href="{% url 'search' %}?&selected_facets=tags_exact:{{tag|facet_tag}}">{{ tag }}</a></li>
Simon Daron's avatar
Simon Daron committed
67
				{% endfor %}
Simon Daron's avatar
Simon Daron committed
68
			</ul>
Simon Daron's avatar
Simon Daron committed
69
			{% endif %}
Simon Daron's avatar
Simon Daron committed
70
		</div>
71
	</div>
fred's avatar
fred committed
72 73 74 75 76 77 78 79 80 81 82 83

	{% if soundfiles.count %}
	<div class="wrapper">
		<ul class="padded custom list extra-soundfiles">
	{% for soundfile in soundfiles %}
	<li><strong>{{ soundfile.title }}</strong> {% audio sound=soundfile %}
	</li>
	{% endfor %}
		</ul>
	</div>
	{% endif %}

84
</div>