comparison gpp/templates/core/pagination.html @ 240:1246a4f1ab4f

For #93: fix url scheme for the news application.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Sep 2010 00:14:54 +0000
parents dbd703f7d63a
children
comparison
equal deleted inserted replaced
239:dcc929973bba 240:1246a4f1ab4f
1 <div class="pagination"> 1 <div class="pagination">
2 <ul> 2 <ul>
3 {% if page.has_previous %} 3 {% if page.has_previous %}
4 <li class="prev"><a href="../{{ page.previous_page_number }}/" title="Go to page {{ page.previous_page_number }}">&laquo; Previous</a></li> 4 <li class="prev"><a href="./?page={{ page.previous_page_number }}" title="Go to page {{ page.previous_page_number }}">&laquo; Previous</a></li>
5 {% endif %} 5 {% endif %}
6 {% for num in page.page_range %} 6 {% for num in page.page_range %}
7 {% if num %} 7 {% if num %}
8 {% ifequal num page.number %} 8 {% ifequal num page.number %}
9 <li class="current">{{ num }}</li> 9 <li class="current">{{ num }}</li>
10 {% else %} 10 {% else %}
11 <li class="page"><a href="../{{ num }}/" title="Go to page {{ num }}">{{ num }}</a></li> 11 <li class="page"><a href="./?page={{ num }}" title="Go to page {{ num }}">{{ num }}</a></li>
12 {% endifequal %} 12 {% endifequal %}
13 {% else %} 13 {% else %}
14 <li>&hellip;</li> 14 <li>&hellip;</li>
15 {% endif %} 15 {% endif %}
16 {% endfor %} 16 {% endfor %}
17 {% if page.has_next %} 17 {% if page.has_next %}
18 <li class="next"><a href="../{{ page.next_page_number }}/" title="Go to page {{ page.next_page_number }}">Next &raquo;</a></li> 18 <li class="next"><a href="./?page={{ page.next_page_number }}" title="Go to page {{ page.next_page_number }}">Next &raquo;</a></li>
19 {% endif %} 19 {% endif %}
20 </ul> 20 </ul>
21 </div> 21 </div>
22 <br clear="left" /> 22 <br clear="left" />