]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/emissions/emission_detail.html
switch thumbnail system from homegrown to sorl-thumbnail
[panikweb.git] / panikweb_templates / templates / emissions / emission_detail.html
1 {% extends "emissions.html" %}
2 {% load paniktags staticfiles i18n %}
3 {% block bodyID %}Emissions{% endblock %}
4 {% block title %}{{ emission.title }}{% endblock %}
5
6 {% block head %}
7 <meta property="og:title" content="{{ emission.title }}" />
8 {% if emission.image %}
9 <meta property="og:image" content="{{ emission.image.url }}" />
10 {% endif %}
11 {% if emission.subtitle %}
12 <meta property="og:description" content="{{ emission.subtitle }}" />
13 {% endif %}
14 {% endblock %}
15
16 {% block toptitle %}
17 <h1 class="top"><a href="{% url 'grid' %}">{% trans 'Program' %}</a></h1>
18 {% endblock %}
19 {% block nav %}
20         {% emission_nav %}
21 {% endblock %}
22 {% block main %}
23 <div class="wrapper navigation cf">
24         <div id="Emission-container" class="emission">
25                 <div data-tabbed="true" id="Emission-tabs-default">
26                         <div id="Emission-tabs-detail" class="leftPart">
27                                 {% if episode %}
28                                         {% episode_detail %} 
29                                 {% else %}
30                                         {% emission_detail %}
31                                 {% endif %}
32                         </div>
33
34                 {% if episodes.exists or futurEpisodes.exists or news %}
35                         <div id="Emission-tabs-menu" class="rightPart episodes">
36
37                                 {% if news %}
38                                         <div class="sub emissions-newsitems">
39                                                 <h5 class="sectionLabel">{% trans 'News' %}</h5>
40                                                 <ul class="custom list">
41                                                 {% for content in news %}
42                                                         <li>{% news_inline %}</li>
43                                                 {% endfor %}
44                                                 </ul>
45                                         </div>
46                                 {% endif %}
47
48
49                         {% if episodes.exists or futurEpisodes.exists %}
50                         <h5 class="sectionLabel right"><a class="" href="{% url 'emissionEpisodes' slug=emission.slug %}">Tous ({{ episodes.count }})</a></h5>
51                                                 <h5 class="sectionLabel">Épisodes</h5>
52                     <form method="get" action="{% url 'emissionEpisodes' slug=emission.slug %}" class="" id="search-form">
53                                 <input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
54                                 <button class="icon-search"></button>
55                         </form>
56
57                                 {% if futurEpisodes %}
58                                         <div class="sub futur-episodes">
59                                                 <h5 class="sectionLabel">{% trans 'Coming Soon' %}</h5>
60                                                 {% for episode in futurEpisodes|slice:":3" %}
61                                                         {% episode_inline %}
62                                                 {% endfor %}
63                                         </div>
64                                 {% endif %}
65
66                                 {% if episodes %}
67                                         <div class="sub recent-episodes">
68                                                 <h5 class="sectionLabel">{% trans 'Previously' %}</h5>
69
70                                                 {% with episodes|slice:"0:5" as episodes %}
71                                                         {% for episode in episodes %}
72                                                                 {% episode_inline %}
73                                                         {% endfor %}
74                                                 {% endwith %}
75                                         </div>
76                                 {% endif %}
77                         {% endif %}
78                         </div>
79                 {% endif %}
80                 </div>
81         </div>
82 </div>
83 {% endblock %}
84
85 {% block links %}
86 {% endblock %}
87
88 {% block related %}
89 {% related_objects object=emission %}
90 {% endblock %}