Mercurial > public > sg101
diff gpp/templates/search/search.html @ 438:524fd1b3919a
Fixing #214; don't need a custom model search view. All the info is in the template. Wrote a template tag to extract the info from the request context and urlencode them.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 18 May 2011 03:04:25 +0000 |
parents | aabee29cadac |
children |
line wrap: on
line diff
--- a/gpp/templates/search/search.html Sat May 14 19:02:07 2011 +0000 +++ b/gpp/templates/search/search.html Wed May 18 03:04:25 2011 +0000 @@ -1,5 +1,6 @@ {% extends 'base.html' %} {% load highlight %} +{% load core_tags %} {% block title %}Search{% endblock %} {% block custom_js %} <script type="text/javascript"> @@ -61,9 +62,9 @@ {% if page.has_previous or page.has_next %} <div> - {% if page.has_previous %}<a href="?{{ search_params }}&page={{ page.previous_page_number }}">{% endif %}« Previous{% if page.has_previous %}</a>{% endif %} + {% if page.has_previous %}<a href="?{% encode_params request.GET 'q' 'models' %}&page={{ page.previous_page_number }}">{% endif %}« Previous{% if page.has_previous %}</a>{% endif %} | - {% if page.has_next %}<a href="?{{ search_params }}&page={{ page.next_page_number }}">{% endif %}Next »{% if page.has_next %}</a>{% endif %} + {% if page.has_next %}<a href="?{% encode_params request.GET 'q' 'models' %}&page={{ page.next_page_number }}">{% endif %}Next »{% if page.has_next %}</a>{% endif %} </div> {% endif %} {% else %}