src/cm/templates/site/macros/paginator.html
author raph
Mon, 25 Jan 2010 15:45:44 +0100
changeset 122 7e7f961599ae
parent 0 40c8f766c9b8
child 125 d01aa5676809
permissions -rw-r--r--
remove unused translation block
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
{% load com %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
{% load i18n %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
<span id="paginator" style="float:right;">
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
    {% if page_obj %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
        {% if page_obj.has_previous %}<a title="Previous page" href="?{% newparams 'page' page_obj.previous_page_number %}">&laquo;</a>{% else %}&nbsp;{% endif %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
                {% blocktrans with page_obj.start_index as sindex and page_obj.end_index as eindex and paginator.count as pcount %}{{ sindex }}-{{ eindex }} of {{ pcount }}{% endblocktrans %} 
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
        {% if page_obj.has_next %}<a title="Next page" href="?{% newparams 'page' page_obj.next_page_number %}">&raquo;</a>{% else %}&nbsp;{% endif %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
        {% if page_obj.has_previous or page_obj.has_next %}(<a title="View all" href="?{% newparams 'paginate' '0' %}">{% blocktrans %}all{% endblocktrans %}</a>){% endif %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
    {% else %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
    (<a title="View by pages" href="?{% newparams 'paginate' '' %}">{% blocktrans %}paginate{% endblocktrans %}</a>)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
    {% endif %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
</span>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14