newsitem_detail.html 1.96 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
{% extends "news.html" %}
Simon Daron's avatar
Simon Daron committed
2
{% load thumbnails %}
3
{% load paniktags %}
fred's avatar
fred committed
4
{% block title %}{{ newsitem.title }}{% endblock %}
fred's avatar
fred committed
5
6
7
8
9
10
11
12
13

{% block head %}
<meta property="og:title" content="{{ newsitem.title }}" />
{% if newsitem.image %}
<meta property="og:image" content="{{ newsitem.image.url }}" />
{% endif %}
{% endblock %}


Simon Daron's avatar
Simon Daron committed
14
{% block main %}
15
<div class="detail news cf">
16
	<div class="wrapper navigation">
17
18
		<div class="leftPart">
			<header>
19
				<h2 class="squashed title">
20
					{{ newsitem.title }}
21
				</h2>
fred's avatar
fred committed
22
23
24
				{% if newsitem.date %}
					<div class="date cf label">{{ newsitem.date|date:"D d M Y" }}</div>
				{% endif %}
25
26
			</header>
			{% if newsitem.image %}
27
				<img class="logo right button" onclick="$(this).toggleClass('right marged');" src="{{ newsitem.image.url }}"/>
Simon Daron's avatar
Simon Daron committed
28
			{% endif %}
29
30
31
32
33
34
			<div class="userContent description">	
				{{ newsitem.text|safe}}
			</div>
		</div>
		<div class="rightPart">
				<div class="sub">
35
		        {% if newsitem.emission %}
36
37
38
39
				    <h5 class="sectionLabel">proposé par</h5>
				    {% with newsitem.emission as emission %}
					    <div class="">{% emission_resume %}</div>
				    {% endwith %}
40
		        {% endif %}
41
42
43
44
45
46
47
48
					<h5 class="sectionLabel right">
                        <a href="{% url 'newsArchives' %}">
					    <span class="iconLabel">Toutes</span>
				    </a>
                    </h5>
					<h5 class="sectionLabel">
                            <span class="iconLabel">Dernières actus</span>
                    </h5>
fred's avatar
fred committed
49
50
51
52
53
54
55


	<form action="{% url 'newsArchives' %}" id="search-form">
		<input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
		<button class="icon-search"></button>
	</form>

56
						<ul class="custom list newsList">
57
						{% for content in news|slice:":10" %}
58
							<li class="{% if content == newsitem %}current{% endif %}">{% news_inline %}</li>
59
60
						{% endfor %}
						</ul>
61
				</div>
Simon Daron's avatar
Simon Daron committed
62
63
64
		</div>
	</div>
</div>
Simon Daron's avatar
Simon Daron committed
65
{% endblock %}
66

67
{% block related %}
68
{% related_objects object=newsitem %}
69
{% endblock %}