]> git.0d.be Git - panikweb.git/blob - panikweb/templates/emissions/newsitem_detail.html
remove margin after "proposed by" subtitle
[panikweb.git] / panikweb / templates / emissions / newsitem_detail.html
1 {% extends "news.html" %}
2 {% load i18n staticfiles paniktags thumbnail %}
3 {% block title %}{{ newsitem.title }}{% endblock %}
4
5 {% block toptitle %}
6 <h1 class="top"><a href="{% url 'news' %}">{% trans 'News' %}</a></h1>
7 {% endblock %}
8
9 {% block head %}
10 <meta property="og:title" content="{{ newsitem.title }}" />
11 <meta name="twitter:title" content="{{ newsitem.title }}" />
12 <meta property="og:description" content="{{ newsitem.text|plain_short_description }}"/>
13 <meta name="twitter:description" content="{{ newsitem.text|plain_short_description }}"/>
14 {% if newsitem.image %}
15 <meta name="twitter:card" content="summary_large_image">
16 {% thumbnail newsitem.image "1200" upscale=False as im %}
17 <meta property="og:image" content="{{ site_url }}{{ im.url }}" />
18 <meta name="twitter:image" content="{{ site_url }}{{ im.url }}" />
19 {% endthumbnail %}
20 {% else %}
21 <meta name="twitter:card" content="summary">
22 <meta property="og:image" content="{{ site_url }}% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
23 <meta name="twitter:image" content="{{ site_url }}{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
24 {% endif %}
25 {% endblock %}
26
27
28 {% block main %}
29 <div class="detail news cf">
30         <div class="wrapper navigation">
31                 <div class="leftPart">
32                         <header>
33                                 <h2 class="squashed title">
34                                         {{ newsitem.title }}
35                                 </h2>
36 {% if newsitem.event_date %}
37 <div class="date cf label">{{ newsitem.event_date|date:'l j F Y' }}</div>
38 {% endif %}
39                                 {% if newsitem.date %}
40                                         <div class="date cf label smooth publication-date">Publiée le {{ newsitem.date|date:"l j F Y"|lower }}</div>
41                                 {% endif %}
42                         </header>
43                         {% if newsitem.image %}
44                                 {% thumbnail newsitem.image "1200" upscale=False as im_large %}
45                                 <img class="logo right button" onclick="$(this).toggleClass('right marged');" src="{{ im_large.url }}"/>
46                                 {% endthumbnail %}
47                         {% endif %}
48                         <div class="userContent description">   
49                                 {{ newsitem.text|safe}}
50                         </div>
51
52 {% block topik %}
53 {% for topik in topik_pages %}
54   {% topik topik=topik %}
55 {% endfor %}
56 {% endblock %}
57
58                         {% if newsitem.tags.all %}
59                         <ul class="custom inline tags">
60                                 {% for tag in newsitem.tags.all %}
61                                 <li><a class="tag" href="{% url 'search' %}?selected_facets=tags_exact:{{tag|facet_tag}}">{{ tag }}</a></li>
62                                 {% endfor %}
63                         </ul>
64                         {% endif %}
65
66                 </div>
67                 <div class="rightPart">
68                                 <div class="sub">
69                         {% if newsitem.emission %}
70                                     <h3 class="sectionLabel proposed-by-title">proposé par</h5>
71                                     {% with newsitem.emission as emission %}
72                                             <div class="">{% emission_resume %}</div>
73                                     {% endwith %}
74                         {% endif %}
75                                         <h3 class="sectionLabel right">
76                         <a href="{% url 'newsArchives' %}">
77                                             <span class="iconLabel">Toutes</span>
78                                     </a>
79                     </h3>
80                                         <h3 class="sectionLabel">
81                             <span class="iconLabel">Dernières actus</span>
82                     </h3>
83
84
85         <form action="{% url 'newsArchives' %}" id="search-form">
86                 <input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
87                 <button class="icon-search"><span class="sr-only">{% trans "Search" %}</span></button>
88         </form>
89
90                                                 <ul class="custom list newsList">
91                                                 {% for content in news|slice:":10" %}
92                                                         <li class="{% if content == newsitem %}current{% endif %}">{% news_inline %}</li>
93                                                 {% endfor %}
94                                                 </ul>
95                                 </div>
96                 </div>
97         </div>
98 </div>
99 {% endblock %}
100
101 {% block related %}
102 {% related_objects object=newsitem %}
103 {% endblock %}