]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/news.html
misc: run manage.py with python3
[panikweb.git] / panikweb_templates / templates / news.html
index 851760b7d748ec11b7eb521716fa5f0eb9f9d2f4..5e3ed5f8910d6bf5d706d610edaa8b93b53825a0 100644 (file)
@@ -1,47 +1,79 @@
 {% extends "base.html"%}
-{% block bodyID %}News{% endblock %}
-{% block title %}News{% endblock %}
+{% load paniktags i18n %}
+{% block title %}{% trans 'News' %}{% endblock %}
+{% block toptitle %}
+<h1 class="top bg-title"><a href="{% url 'news' %}">{% trans 'News' %}</a>
+ / <a class="dimmed" href="{% url 'agenda' %}">Agenda</a>
+</h1>
+{% endblock %}
 {% block nav %}
-       {% if categories %}
-               <nav class="center cf">
-                       <ul class="custom columns">
-                       {% for category in categories %}
-                               <li class="item num-{{forloop.counter}}">
-                                       <a href="#">{{ category.title }}</a>
-                               </li>
-                       {% endfor %}
-                       </ul>
-               </nav>
-       {% endif %}
+       {% news_nav %}
 {% endblock %}
 {% block main %}
-<div class="news">
-       <div class="wrapper">
-               <ul class="custom list news cf">
-               {% for NewsItem in newsImaged %}
-                       <li class="item num-{{forloop.counter}}">
-                       {% if NewsItem.slug == newsImaged.0.slug %}
-                               {% include "news/inline.html" with content=NewsItem class="special" logo="large"%}
-                       {% elif NewsItem.slug == newsImaged.1.slug or NewsItem.slug == newsImaged.2.slug%}
-                               {% include "news/inline.html" with content=NewsItem class="special" logo="medium"%}
-                       {% else %}
-                               {% include "news/inline.html" with content=NewsItem%}
-                       {% endif %}
-                       </li>
-               {% endfor %}
-               </ul>
+
+<div class="detail marged news cf">
+       <div class="wrapper navigation">
+<p class="intro leftPart">
+Tous les jours, il s'en passe des choses que Panik fomente, fait rĂ©sonner et
+vous fait savoir.
+</p>
+
+               <div class="leftPart">
+            <div class="news">
+                                   <h5 class="sectionLabel focus-title">{% trans 'Focus' %}</h5>
+
+                   {% with focus as news %}
+                           <ul class="custom columns cf padded">
+                           {% for content in news %}
+                                   <li class="newsitem">
+                                           {% news_inline klass="special"%}
+                                   </li>
+                           {% endfor %}
+                           </ul>
+                   {% endwith %}
+            </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">
+                            <span class="iconLabel">{% trans 'Latest News' %}</span>
+                            <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"><span class="sr-only">{% trans "Search" %}</span></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>
-               <hr />
-       <div class="wrapper">
-               <ul class="news columns padded">
-               {% for NewsItem in news %}
+</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 'news-view' slug=NewsItem.slug %}">
-                               <span class="title"><strong>{{ NewsItem.datetime|date:"D m/M" }}</strong>&nbsp;-&nbsp;{{ NewsItem.title }}</span>
-</a>
-</li>
+                       <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 %}