emission_detail.html 1.33 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
{% extends "emissions.html" %}
2
{% load paniktags %}
Simon Daron's avatar
Simon Daron committed
3
{% block bodyID %}Emissions{% endblock %}
4
{% block nav %}
Simon Daron's avatar
Simon Daron committed
5
	{% emission_nav %}
6
{% endblock %}
7
{% block main %}
8
9
<div class="wrapper {% if episodes %}sided{% else %}classic{% endif %}">
	<div id="Emission-container" class="emission padded">
Simon Daron's avatar
Simon Daron committed
10
11
12
13
14
		{% if episode %}
		<div data-tabbed="true" id="Emission-tabs-current" class="episodes">
			{% episode_resume date="daytime" %} 
		</div>
		{% endif %}
Simon Daron's avatar
Simon Daron committed
15
		<div data-tabbed="true" id="Emission-tabs-detail">
16
			{% emission_detail %}
17
		</div>
Simon Daron's avatar
Simon Daron committed
18
		{% if episodes %}
Simon Daron's avatar
Simon Daron committed
19
20
21
22
23
24
25
26
		<div data-tabbed="true" id="Emission-tabs-last" class="episodes">
			{% with episodes|first as episode %}
				<div class="legend">{{ episode.first_diffusion|date:"F Y" }}</div>
				{% episode_resume date="daytime" %}
			{% endwith %}
		</div>
		<div data-tabbed="true" id="Emission-tabs-episodes" class="episodes">
			{% with episodes|slice:"1:11" as episodes %}
27
28
29
30
31
				{% regroup episodes by first_diffusion|date:"F Y"|capfirst as month_list %}
				{% for month in month_list %}
				<div class="legend">{{ month.grouper }}</div>
					<ul class="custom list">
					{% for episode in month.list %}
32
						<li>{% episode_resume model="inline" date="daytime" %}</li>
33
34
35
					{% endfor %}
					</ul>
				{% endfor %}
Simon Daron's avatar
Simon Daron committed
36
			{% endwith %}
37
		</div>
38
		{% endif %}
39
	</div>
Simon Daron's avatar
Simon Daron committed
40
</div>
fred's avatar
fred committed
41
42
43
{% endblock %}
{% block pageend %}
{% endblock %}