]> git.0d.be Git - panikweb-esperanzah.git/blob - panikweb_esperanzah/templates/agenda.html
Revert "enable stream"
[panikweb-esperanzah.git] / panikweb_esperanzah / templates / agenda.html
1 {% extends "base.html"%}
2 {% load paniktags i18n %}
3 {% block title %}{% trans 'News' %}{% endblock %}
4 {% block toptitle %}
5 <h1 class="top"><a class="dimmed" href="{% url 'news' %}">{% trans 'News' %}</a>
6  / <a href="{% url 'agenda' %}">Agenda</a>
7 </h1>
8 {% endblock %}
9 {% block nav %}
10         {% news_nav %}
11 {% endblock %}
12 {% block main %}
13
14 <div class="detail marged news cf">
15         <div class="wrapper navigation">
16 {% if month %}
17 <h2>{{month|date:"E Y"}}</h2>
18 {% else %}
19 <p class="intro leftPart">
20 Sur les ondes comme dans la ville, une quantité d'événements Panik et proches…
21 </p>
22 {% endif %}
23
24                 <div class="leftPart">
25             <div id="agenda" class="news">
26                 {% regroup agenda|dictsort:'event_date' by event_date as agenda_list %}
27                   {% for date in agenda_list %}
28                   <h3>{{ date.grouper|date:"l d E"|lower }}</h3>
29                   {% for content in date.list %}
30                     {% news_inline %}
31                   {% endfor %}
32                 {% endfor %}
33                 {% if not agenda %}
34                         <div class="big error center">Misère, c'est l'hiver ?!</div>
35                 {% endif %}
36
37     <div class="previous-and-next-months">
38 <h4>
39     {% if previous_month %}
40         <a href="{% url 'agenda_by_month' year=previous_month.year month=previous_month.month %}"
41            >&lt; {{previous_month|date:'E Y'}}</a>
42     {% endif %}
43     {% if previous_month and next_month %}—{% endif %}
44     {% if next_month %}
45         <a href="{% url 'agenda_by_month' year=next_month.year month=next_month.month %}"
46            >{{next_month|date:'E Y'}} &gt;</a>
47     {% endif %}
48 </h4>
49     </div>
50
51             </div>
52                 </div>
53                 <div class="rightPart">
54                                 <div class="sub">
55                                         <h5 class="sectionLabel right">
56                         <a href="{% url 'newsArchives' %}">
57                                             <span class="iconLabel">Toutes</span>
58                                     </a>
59                     </h5>
60                                         <h5 class="sectionLabel">
61                             <span class="iconLabel">{% trans 'Latest News'%}</span>
62                             <a class="button icon-rss inBlock" href="{% url 'rss-feed' %}"></a>
63                     </h5>
64
65
66         <form action="{% url 'newsArchives' %}" id="search-form">
67                 <input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
68                 <button class="icon-search"><span class="sr-only">{% trans "Search" %}</span></button>
69         </form>
70
71                                                 <ul class="custom list newsList">
72                                                 {% for content in news|slice:":20" %}
73                                                         <li class="{% if content == newsitem %}current{% endif %}">{% news_inline %}</li>
74                                                 {% endfor %}
75                                                 </ul>
76                                 </div>
77                 </div>
78         </div>
79 </div>
80 {% endblock %}
81 {% block links %}
82 <div class="wrapper">
83         <div class="padded ">
84                 <ul class="news columns padded list custom">
85                 {% for NewsItem in newsAll %}
86                         <li class="item ellipsis small  ">
87                         <a href="{% url 'newsitem-view' slug=NewsItem.slug %}">
88                                 <span class="title"><strong>{{ NewsItem.date|date:"D d/M" }}</strong>&nbsp;-&nbsp;{{ NewsItem.title }}</span>
89                         </a>
90                         </li>
91                 {% endfor %}
92                 </ul>
93         </div>
94     </div>
95 </div>
96 {% endblock %}