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

<div class="detail marged news cf">
	<div class="wrapper navigation">
fred's avatar
fred committed
16 17 18
{% if month %}
<h2>{{month|date:"E Y"}}</h2>
{% else %}
fred's avatar
fred committed
19
<p class="intro leftPart">
fred's avatar
fred committed
20
Sur les ondes comme dans la ville, une quantité d'événements Panik et proches…
fred's avatar
fred committed
21
</p>
fred's avatar
fred committed
22
{% endif %}
fred's avatar
fred committed
23 24

		<div class="leftPart">
fred's avatar
fred committed
25
            <div id="agenda" class="news">
fred's avatar
fred committed
26 27 28 29 30 31 32 33 34 35
		{% regroup agenda|dictsort:'event_date' by event_date as agenda_list %}
		  {% for date in agenda_list %}
		  <h3>{{ date.grouper|date:"l d E"|lower }}</h3>
		  {% for content in date.list %}
		    {% news_inline %}
		  {% endfor %}
		{% endfor %}
		{% if not agenda %}
			<div class="big error center">Misère, c'est l'hiver ?!</div>
		{% endif %}
fred's avatar
fred committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

    <div class="previous-and-next-months">
<h4>
    {% if previous_month %}
        <a href="{% url 'agenda_by_month' year=previous_month.year month=previous_month.month %}"
           >&lt; {{previous_month|date:'E Y'}}</a>
    {% endif %}
    {% if previous_month and next_month %}—{% endif %}
    {% if next_month %}
        <a href="{% url 'agenda_by_month' year=next_month.year month=next_month.month %}"
           >{{next_month|date:'E Y'}} &gt;</a>
    {% endif %}
</h4>
    </div>

fred's avatar
fred committed
51 52 53 54 55 56 57 58 59 60
            </div>
		</div>
		<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
61
                            <span class="iconLabel">{% trans 'Latest News'%}</span>
fred's avatar
fred committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
                            <a class="button icon-rss inBlock" href="{% url 'rss-feed' %}"></a>
                    </h5>


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

						<ul class="custom list newsList">
						{% for content in news|slice:":20" %}
							<li class="{% if content == newsitem %}current{% endif %}">{% news_inline %}</li>
						{% endfor %}
						</ul>
				</div>
		</div>
	</div>
</div>
{% endblock %}
{% block links %}
<div class="wrapper">
	<div class="padded ">
		<ul class="news columns padded list custom">
		{% for NewsItem in newsAll %}
			<li class="item ellipsis small  ">
			<a href="{% url 'newsitem-view' slug=NewsItem.slug %}">
				<span class="title"><strong>{{ NewsItem.date|date:"D d/M" }}</strong>&nbsp;-&nbsp;{{ NewsItem.title }}</span>
			</a>
			</li>
		{% endfor %}
		</ul>
	</div>
    </div>
</div>
{% endblock %}