Merge remote-tracking branch 'gitorious/master'

This commit is contained in:
Jef van Schendel 2011-06-08 22:33:43 +02:00
commit bb10e5bef7

View File

@ -18,16 +18,16 @@
{# only display if {{pagination}} is defined #} {# only display if {{pagination}} is defined #}
{% if pagination %} {% if pagination %}
<div class=pagination> <div class="pagination">
{% if pagination.has_prev %} {% if pagination.has_prev %}
<a href={{ pagination.get_page_url(request, pagination.page-1) }}>&laquo; Prev</> <a href="{{ pagination.get_page_url(request, pagination.page-1) }}">&laquo; Prev</>
{% endif %} {% endif %}
{%- for page in pagination.iter_pages() %} {%- for page in pagination.iter_pages() %}
{% if page %} {% if page %}
{% if page != pagination.page %} {% if page != pagination.page %}
<a href={{ pagination.get_page_url(request, page) }}>{{ page }}</a> <a href="{{ pagination.get_page_url(request, page) }}">{{ page }}</a>
{% else %} {% else %}
<strong>{{ page }}</strong> <strong>{{ page }}</strong>
{% endif %} {% endif %}
@ -37,7 +37,7 @@
{%- endfor %} {%- endfor %}
{% if pagination.has_next %} {% if pagination.has_next %}
<a href={{ pagination.get_page_url(request, pagination.page+1) }}>Next &raquo;</a> <a href="{{ pagination.get_page_url(request, pagination.page + 1) }}">Next &raquo;</a>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}