]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/paginator/page_numbers.html
Bugfix for Jira-471
[osqa.git] / forum / skins / default / templates / paginator / page_numbers.html
1 {% spaceless %}
2 {% load i18n %}
3
4 <p class="paginator">
5     {% if has_previous %}
6         <span class="prev"><a href="{{ previous_url }}" title="{% trans "previous" %}">&laquo; {% trans "previous" %}</a></span>
7     {% endif %}
8     {% for range in page_numbers %}
9         {% if range %}
10             {% for num, url in range %}
11                 {% ifequal num current %}
12                     <span class="curr this_page">{{ num }}</span>
13                 {% else %}
14                      <a class="page" href="{{ url }}" >{{ num }}</a>
15                 {% endifequal %}
16             {% endfor %}
17         {% else %}
18           ...
19         {% endif %}
20     {% endfor %}
21     {% if has_next %}
22         <span class="next"><a href="{{ next_url }}" title="{% trans "next page" %}">{% trans "next page" %} &raquo;</a></span>    
23     {% endif %}
24 </p>
25 {% endspaceless %}