]> git.0d.be Git - panikweb.git/commitdiff
replace newsitem nav by a search form
authorlaron <simon@surlaterre.org>
Sun, 22 Sep 2013 12:44:24 +0000 (14:44 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 22 Sep 2013 13:41:54 +0000 (15:41 +0200)
panikweb_templates/templates/news/nav.html

index 3df74f43b376876508e82793281df21685a8e64d..cae4f49c75cbf87ba4a41542da03c04bb29881b7 100644 (file)
@@ -1,30 +1,9 @@
-{% load paniktags %}
-<div class="wrapper">
-       <nav class="mainSub">
-               <ul class="inline padded">
-                       <li><a href="{% url 'news' %}" class="{% if class != "archives" %}active{% endif %}">
-                               <span class="icon-bolt" ></span>
-                               <span class="iconLabel">Dernières</span> 
-                       </a></li>
-                       <li><a href="{% url 'newsArchives' %}" class="{% if class = "archives" %}active{% endif %}">
-                               <span class="icon-archive" ></span>
-                               <span class="iconLabel">Archives</span>
-                       </a></li>
-               </ul>
-       </nav>
+<div class="mainSub">
+    <div class="wrapper">
+        <nav>
+        <form method="get" action="." class="big marged" id="search-form">
+                <label for="id_q">Rechercher:</label><input id="id_q" name="q" type="text"><button class="icon-search"></button>
+        </form>
+        </nav>
+    </div>
 </div>
-<!--
-TODO make requests to load specific news roll & compagnie from groups
-<div class="wrapper">
-       {% if categories %}
-               <nav id="newsNav" class="checkable">
-                       <ul class="by{{ categories.count }}">
-                       {% for category in categories %}
-                                       <li><a href="#">{{ category }}</a></li>
-
-                       {% endfor %}
-                       </ul>
-               </nav>
-       {% endif %}
-</div>
--->