emission_detail.html 2.01 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
{% extends "emissions.html" %}
2
{% load paniktags %}
3
4
{% load thumbnails %}
{% load staticfiles %}
Simon Daron's avatar
Simon Daron committed
5
{% block bodyID %}Emissions{% endblock %}
fred's avatar
fred committed
6
{% block title %}{{ emission.title }}{% endblock %}
7
{% block nav %}
Simon Daron's avatar
Simon Daron committed
8
	{% emission_nav %}
9
{% endblock %}
10
{% block main %}
11
<div class="wrapper {% if episodes.exists %}sided{% endif %} cf">
12
	<div id="Emission-container" class="emission padded">
Simon Daron's avatar
Simon Daron committed
13
		<div data-tabbed="true" id="Emission-tabs-default">
14
			<div id="Emission-tabs-detail" class="leftPart">
Simon Daron's avatar
Simon Daron committed
15
16
17
18
19
20
				{% if episode %}
					{% episode_detail %} 
				{% else %}
					<h5 class="sectionLabel">À propos</h5>
					{% emission_detail %}
				{% endif %}
Simon Daron's avatar
Simon Daron committed
21
			</div>
22

23
			<div id="Emission-tabs-menu" class="rightPart episodes">
Simon Daron's avatar
Simon Daron committed
24
25
26
27
28
29
				{% if episode %}
					<div class="sub">
						<h5 class="sectionLabel">À propos</h5>
						{% emission_resume %}
					</div>
				{% endif %}
Simon Daron's avatar
Simon Daron committed
30
				{% if news %}
Simon Daron's avatar
Simon Daron committed
31
32
33
34
35
36
37
38
					<div class="sub">
						<h5 class="sectionLabel">Actu</h5>
						<ul class="custom list">
						{% for content in news %}
							<li>{% news_inline %}</li>
						{% endfor %}
						</ul>
					</div>
Simon Daron's avatar
Simon Daron committed
39
40
				{% endif %}
				{% if futurEpisodes %}
Simon Daron's avatar
Simon Daron committed
41
42
43
					<div class="sub">
						<h5 class="sectionLabel">Bientôt</h5>
						{% for episode in futurEpisodes %}
Simon Daron's avatar
Simon Daron committed
44
							<div class="legend">{{ episode.first_diffusion|date:"F Y" }}</div>
Simon Daron's avatar
Simon Daron committed
45
							{% episode_resume date="daytime" %}
Simon Daron's avatar
Simon Daron committed
46
						{% endfor %}
Simon Daron's avatar
Simon Daron committed
47
48
					</div>
				{% endif %}
49
				{% if episodes.exists %}
Simon Daron's avatar
Simon Daron committed
50
51
52
53
54
55
56
57
58
59
60
61
62
					<div class="sub">
						<h5 class="sectionLabel">Dernier épisode</h5>
						{% with episodes|slice:"0:1" as episodes %}
							{% for episode in episodes %}
								<div class="legend">{{ episode.first_diffusion|date:"F Y" }}</div>
								{% if futurEpisodes %}
									{% episode_resume model="inline" date="daytime" %}
								{% else %}
									{% episode_resume date="daytime" %}
								{% endif %}
							{% endfor %}
						{% endwith %}
					</div>
Simon Daron's avatar
Simon Daron committed
63
				{% endif %}
64
			</div>
65
66
		</div>
	</div>
Simon Daron's avatar
Simon Daron committed
67
</div>
fred's avatar
fred committed
68
{% endblock %}
69

70
{% block links %}
fred's avatar
fred committed
71
{% endblock %}
72
73
74
75

{% block related %}
{% related_objects object=emission %}
{% endblock %}