emission_detail.html 2.5 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
{% extends "emissions.html" %}
fred's avatar
fred committed
2
{% load paniktags thumbnails staticfiles %}
Simon Daron's avatar
Simon Daron committed
3
{% block bodyID %}Emissions{% endblock %}
fred's avatar
fred committed
4
{% block title %}{{ emission.title }}{% endblock %}
fred's avatar
fred committed
5
6
7
8
9
10

{% block head %}
<meta property="og:title" content="{{ emission.title }}" />
{% if emission.image %}
<meta property="og:image" content="{{ emission.image.url }}" />
{% endif %}
11
12
13
{% if emission.subtitle %}
<meta property="og:description" content="{{ emission.subtitle }}" />
{% endif %}
fred's avatar
fred committed
14
15
{% endblock %}

16
{% block toptitle %}
17
<h1 class="top"><a href="{% url 'grid' %}">Programme</a></h1>
18
{% endblock %}
19
{% block nav %}
Simon Daron's avatar
Simon Daron committed
20
	{% emission_nav %}
21
{% endblock %}
22
{% block main %}
23
<div class="wrapper {% if episodes.exists %}navigation{% endif %} cf">
24
	<div id="Emission-container" class="emission">
Simon Daron's avatar
Simon Daron committed
25
		<div data-tabbed="true" id="Emission-tabs-default">
26
			<div id="Emission-tabs-detail" class="leftPart">
Simon Daron's avatar
Simon Daron committed
27
28
29
30
31
				{% if episode %}
					{% episode_detail %} 
				{% else %}
					{% emission_detail %}
				{% endif %}
Simon Daron's avatar
Simon Daron committed
32
			</div>
33

34
			<div id="Emission-tabs-menu" class="rightPart episodes">
fred's avatar
fred committed
35

Simon Daron's avatar
Simon Daron committed
36
				{% if news %}
37
					<div class="sub emissions-newsitems">
Simon Daron's avatar
Simon Daron committed
38
39
40
41
42
43
44
						<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
45
				{% endif %}
fred's avatar
fred committed
46
47
48
49
50
51
52
53
54


                        <h5 class="sectionLabel right"><a class="" href="{% url 'emissionEpisodes' slug=emission.slug %}">Tous ({{ episodes.count }})</a></h5>
						<h5 class="sectionLabel">Épisodes</h5>
                    <form method="get" action="{% url 'emissionEpisodes' slug=emission.slug %}" class="" id="search-form">
                                <input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
                                <button class="icon-search"></button>
                        </form>

Simon Daron's avatar
Simon Daron committed
55
				{% if futurEpisodes %}
fred's avatar
fred committed
56
57
58
59
					<div class="sub futur-episodes">
						<h5 class="sectionLabel">À venir</h5>
						{% for episode in futurEpisodes|slice:":3" %}
							{% episode_inline %}
Simon Daron's avatar
Simon Daron committed
60
						{% endfor %}
Simon Daron's avatar
Simon Daron committed
61
62
					</div>
				{% endif %}
63

64
				{% if episodes.exists %}
fred's avatar
fred committed
65
66
					<div class="sub recent-episodes">
						<h5 class="sectionLabel">Récemment</h5>
67

68
						{% with episodes|slice:"0:5" as episodes %}
Simon Daron's avatar
Simon Daron committed
69
							{% for episode in episodes %}
70
								{% episode_inline %}
Simon Daron's avatar
Simon Daron committed
71
72
73
							{% endfor %}
						{% endwith %}
					</div>
Simon Daron's avatar
Simon Daron committed
74
				{% endif %}
75
			</div>
76
77
		</div>
	</div>
Simon Daron's avatar
Simon Daron committed
78
</div>
fred's avatar
fred committed
79
{% endblock %}
80

81
{% block links %}
fred's avatar
fred committed
82
{% endblock %}
83
84
85
86

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