comparison 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
comparison
equal deleted inserted replaced
20:c0d0779b266f 21:884839ddbfde
2 {% block title %}Web Links: Search Results{% endblock %} 2 {% block title %}Web Links: Search Results{% endblock %}
3 {% block weblinks_css %} 3 {% block weblinks_css %}
4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> 4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
5 {% endblock %} 5 {% endblock %}
6 {% block weblinks_content %} 6 {% block weblinks_content %}
7 <h3>Search Results: {{ query }}</h3> 7 <h3>Search Results: {{ query }} - {{ page.paginator.count }} result{{ page.paginator.count|pluralize }}</h3>
8 8
9 {% include 'core/pagination_query.html' %} 9 {% include 'core/pagination_query.html' %}
10 10
11 {% if page.object_list %} 11 {% if page.object_list %}
12 <dl> 12 <dl>