]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/emissions/emission_detail.html
add opengraph meta to all pages
[panikweb.git] / panikweb_templates / templates / emissions / emission_detail.html
1 {% extends "emissions.html" %}
2 {% load paniktags staticfiles i18n thumbnail %}
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 {% else %}
11 <meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
12 {% endif %}
13 {% if emission.subtitle %}
14 <meta property="og:description" content="{{ emission.subtitle }}" />
15 {% endif %}
16 {% endblock %}
17
18 {% block toptitle %}
19 <h1 class="top"><a href="{% url 'grid' %}">{% trans 'Program' %}</a></h1>
20 {% endblock %}
21 {% block nav %}
22         {% emission_nav %}
23 {% endblock %}
24 {% block main %}
25 <div class="wrapper navigation cf">
26         <div id="Emission-container" class="emission">
27                 <div data-tabbed="true" id="Emission-tabs-default">
28                         <div id="Emission-tabs-detail" class="leftPart">
29                                 {% if episode %}
30                                         {% episode_detail %} 
31                                 {% else %}
32                                         {% emission_detail %}
33                                 {% endif %}
34                         </div>
35
36                 {% if episodes.exists or futurEpisodes.exists or news or nonstop %}
37                         <div id="Emission-tabs-menu" class="rightPart episodes">
38
39                                 {% if news %}
40                                         <div class="sub emissions-newsitems">
41                                                 <h5 class="sectionLabel">{% trans 'News' %}</h5>
42                                                 <ul class="custom list">
43                                                 {% for content in news %}
44                                                         <li>{% news_inline %}</li>
45                                                 {% endfor %}
46                                                 </ul>
47                                         </div>
48                                 {% endif %}
49
50                         {% if episodes.exists or futurEpisodes.exists %}
51                         <h5 class="sectionLabel right"><a class="" href="{% url 'emissionEpisodes' slug=emission.slug %}">Tous ({{ episodes.count }})</a></h5>
52                                                 <h5 class="sectionLabel">Épisodes</h5>
53                     <form method="get" action="{% url 'emissionEpisodes' slug=emission.slug %}" class="" id="search-form">
54                                 <input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
55                                 <button class="icon-search"></button>
56                         </form>
57
58                                 {% if futurEpisodes %}
59                                         <div class="sub futur-episodes">
60                                                 <h5 class="sectionLabel">{% trans 'Coming Soon' %}</h5>
61                                                 {% for episode in futurEpisodes|slice:":3" %}
62                                                         {% episode_inline %}
63                                                 {% endfor %}
64                                         </div>
65                                 {% endif %}
66
67                                 {% if episodes %}
68                                         <div class="sub recent-episodes">
69                                                 <h5 class="sectionLabel">{% trans 'Previously' %}</h5>
70
71                                                 {% with episodes|slice:"0:5" as episodes %}
72                                                         {% for episode in episodes %}
73                                                                 {% episode_inline %}
74                                                         {% endfor %}
75                                                 {% endwith %}
76                                         </div>
77                                 {% endif %}
78                         {% endif %}
79
80                         {% if nonstop %}
81                                 <div class="sub emissions-newsitems">
82                                         <h5 class="sectionLabel">{% trans 'Recently' %}</h5>
83                                         <ul class="custom list">
84                                         {% for date in nonstop_dates %}
85                                         <li><div class="content content-inline inline cf">
86                                         <a class="block cf" href="{% url 'nonstop-playlist' slug=emission.slug year=date.year month=date.month day=date.day %}">
87                                         {% if emission.image %}
88                                         {% thumbnail emission.image "60x60" crop="50% 25%" as im %}
89                                         <div class="logo">
90                                         <img class="left" height="60" width="60" src="{{im.url}}"/>
91                                         </div>
92                                         {% endthumbnail %}
93                                         {% endif %}
94                                         <div class="content">
95                                                 <h5 class="title">{{date|date:'D d M Y'|lower}}</h5>
96                                         </div>
97                                         <div class="smooth">Playlist</div>
98                                         </a></li>
99                                         {% endfor %}
100                                         </ul>
101                                 </div>
102                         {% endif %}
103
104                         </div>
105                 {% endif %}
106                 </div>
107         </div>
108 </div>
109 {% endblock %}
110
111 {% block links %}
112 {% endblock %}
113
114 {% block related %}
115 {% related_objects object=emission %}
116 {% endblock %}