diff gpp/templates/weblinks/search_results.html @ 21:884839ddbfde

Webinks: added a navigation template tag so views don't have to keep constructing the searc form. Also provided a count of search results on the template.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 21:00:06 +0000
parents dbd703f7d63a
children
line wrap: on
line diff
--- a/gpp/templates/weblinks/search_results.html	Sun Apr 19 20:41:37 2009 +0000
+++ b/gpp/templates/weblinks/search_results.html	Sun Apr 19 21:00:06 2009 +0000
@@ -4,7 +4,7 @@
 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
 {% endblock %}
 {% block weblinks_content %}
-<h3>Search Results: {{ query }}</h3>
+<h3>Search Results: {{ query }} - {{ page.paginator.count }} result{{ page.paginator.count|pluralize }}</h3>
 
 {% include 'core/pagination_query.html' %}