emission_detail.html 2.6 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 navigation 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
		{% if episodes.exists or futurEpisodes.exists or news %}
35
			<div id="Emission-tabs-menu" class="rightPart episodes">
fred's avatar
fred committed
36

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


49
			{% if episodes.exists or futurEpisodes.exists %}
fred's avatar
fred committed
50 51 52 53 54 55 56
                        <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
57
				{% if futurEpisodes %}
fred's avatar
fred committed
58 59 60 61
					<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
62
						{% endfor %}
Simon Daron's avatar
Simon Daron committed
63 64
					</div>
				{% endif %}
65

66
				{% if episodes %}
fred's avatar
fred committed
67
					<div class="sub recent-episodes">
fred's avatar
fred committed
68
						<h5 class="sectionLabel">Précédemment</h5>
69

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

85
{% block links %}
fred's avatar
fred committed
86
{% endblock %}
87 88 89 90

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