diff gpp/templates/search/search.html @ 277:d424b8bae71d

Fixing #128 and #129. Add elsewhere weblinks to search content. Add support for haystack's get_update_field() method.
author Brian Neal <bgneal@gmail.com>
date Sat, 02 Oct 2010 23:24:39 +0000
parents 8a46843c258f
children 879d39647064
line wrap: on
line diff
--- a/gpp/templates/search/search.html	Thu Sep 30 00:06:04 2010 +0000
+++ b/gpp/templates/search/search.html	Sat Oct 02 23:24:39 2010 +0000
@@ -6,7 +6,7 @@
 <form method="get" action=".">
 <table>
    <tr>
-      <td><input type="text" name="q" id="id_q" /></td>
+      <td><input type="text" name="q" id="id_q" size="48" /></td>
       <td><input type="submit" value="Search" /></td>
    </tr>
 </table>
@@ -27,7 +27,14 @@
 </fieldset>
 
   {% if query %}
-      <h3>Results</h3>
+  <h3>Results for &quot;{{ query }}&quot; page {{ page.number }} of {{ page.paginator.num_pages }}</h3>
+
+     {% if page.paginator.count %}
+     <p>
+     <strong>{{ page.paginator.count }} hit{{ page.paginator.count|pluralize }}</strong>
+     </p>
+     {% endif %}
+
       {% if page.object_list %}
       <dl>
       {% for result in page.object_list %}