news.html 2.32 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
1
{% extends "base.html"%}
fred's avatar
fred committed
2
{% load paniktags i18n %}
fred's avatar
fred committed
3
{% block title %}{% trans 'News' %}{% endblock %}
fred's avatar
fred committed
4
{% block toptitle %}
5
<h1 class="top bg-title"><a href="{% url 'news' %}">{% trans 'News' %}</a>
fred's avatar
fred committed
6 7
 / <a class="dimmed" href="{% url 'agenda' %}">Agenda</a>
</h1>
fred's avatar
fred committed
8
{% endblock %}
Simon Daron's avatar
Simon Daron committed
9
{% block nav %}
10
	{% news_nav %}
Simon Daron's avatar
Simon Daron committed
11
{% endblock %}
Simon Daron's avatar
Simon Daron committed
12
{% block main %}
13

Simon Daron's avatar
Simon Daron committed
14 15
<div class="detail marged news cf">
	<div class="wrapper navigation">
16
<p class="intro leftPart">
fred's avatar
fred committed
17
Tous les jours, il s'en passe des choses que Panik fomente, fait résonner et
fred's avatar
fred committed
18
vous fait savoir.
fred's avatar
fred committed
19 20
</p>

21 22
		<div class="leftPart">
            <div class="news">
fred's avatar
fred committed
23
				    <h5 class="sectionLabel focus-title">{% trans 'Focus' %}</h5>
24

Simon Daron's avatar
Simon Daron committed
25 26 27
	            {% with focus as news %}
		            <ul class="custom columns cf padded">
		            {% for content in news %}
fred's avatar
fred committed
28
			            <li class="newsitem">
Simon Daron's avatar
Simon Daron committed
29 30 31 32 33 34 35
				            {% news_inline klass="special"%}
			            </li>
		            {% endfor %}
		            </ul>
	            {% endwith %}
            </div>
		</div>
fred's avatar
fred committed
36 37 38 39 40 41 42 43
		<div class="rightPart">
				<div class="sub">
					<h5 class="sectionLabel right">
                        <a href="{% url 'newsArchives' %}">
					    <span class="iconLabel">Toutes</span>
				    </a>
                    </h5>
					<h5 class="sectionLabel">
fred's avatar
fred committed
44
                            <span class="iconLabel">{% trans 'Latest News' %}</span>
fred's avatar
fred committed
45
                            <a class="button icon-rss inBlock" href="{% url 'rss-feed' %}"></a>
fred's avatar
fred committed
46
                    </h5>
fred's avatar
fred committed
47 48 49 50 51 52 53


	<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>

Simon Daron's avatar
Simon Daron committed
54
						<ul class="custom list newsList">
55
						{% for content in news|slice:":20" %}
Simon Daron's avatar
Simon Daron committed
56
							<li class="{% if content == newsitem %}current{% endif %}">{% news_inline %}</li>
fred's avatar
fred committed
57 58 59 60
						{% endfor %}
						</ul>
				</div>
		</div>
Simon Daron's avatar
Simon Daron committed
61
	</div>
Simon Daron's avatar
Simon Daron committed
62 63 64
</div>
{% endblock %}
{% block links %}
Simon Daron's avatar
Simon Daron committed
65 66 67
<div class="wrapper">
	<div class="padded ">
		<ul class="news columns padded list custom">
Simon Daron's avatar
Simon Daron committed
68
		{% for NewsItem in newsAll %}
69
			<li class="item ellipsis small  ">
fred's avatar
fred committed
70
			<a href="{% url 'newsitem-view' slug=NewsItem.slug %}">
fred's avatar
fred committed
71
				<span class="title"><strong>{{ NewsItem.date|date:"D d/M" }}</strong>&nbsp;-&nbsp;{{ NewsItem.title }}</span>
Simon Daron's avatar
Simon Daron committed
72 73
			</a>
			</li>
Simon Daron's avatar
Simon Daron committed
74 75
		{% endfor %}
		</ul>
Simon Daron's avatar
Simon Daron committed
76
	</div>
fred's avatar
fred committed
77
    </div>
Simon Daron's avatar
Simon Daron committed
78
</div>
Simon Daron's avatar
Simon Daron committed
79
{% endblock %}