src/cm/templates/site/macros/paginator.html
changeset 125 d01aa5676809
parent 0 40c8f766c9b8
child 159 4ec5ae89a7b0
equal deleted inserted replaced
124:4576a8264929 125:d01aa5676809
     1 {% load com %}
     1 {% load com %}
     2 {% load i18n %}
     2 {% load i18n %}
     3 <span id="paginator" style="float:right;">
     3 <span id="paginator" style="float:right;">
     4     {% if page_obj %}
     4     {% if page_obj %}
     5         {% if page_obj.has_previous %}<a title="Previous page" href="?{% newparams 'page' page_obj.previous_page_number %}">&laquo;</a>{% else %}&nbsp;{% endif %}
     5         {% if page_obj.has_previous %}<a title="{% blocktrans %}Previous page{% endblocktrans %}" href="?{% newparams 'page' page_obj.previous_page_number %}">&laquo;</a>{% else %}&nbsp;{% endif %}
     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 %} 
     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 %} 
     7         {% if page_obj.has_next %}<a title="Next page" href="?{% newparams 'page' page_obj.next_page_number %}">&raquo;</a>{% else %}&nbsp;{% endif %}
     7         {% if page_obj.has_next %}<a title="{% blocktrans %}Next page{% endblocktrans %}" href="?{% newparams 'page' page_obj.next_page_number %}">&raquo;</a>{% else %}&nbsp;{% endif %}
     8 
     8 
     9         {% if page_obj.has_previous or page_obj.has_next %}(<a title="View all" href="?{% newparams 'paginate' '0' %}">{% blocktrans %}all{% endblocktrans %}</a>){% endif %}
     9         {% if page_obj.has_previous or page_obj.has_next %}(<a title="{% blocktrans %}View all{% endblocktrans %}" href="?{% newparams 'paginate' '0' %}">{% blocktrans %}all{% endblocktrans %}</a>){% endif %}
    10     {% else %}
    10     {% else %}
    11     (<a title="View by pages" href="?{% newparams 'paginate' '' %}">{% blocktrans %}paginate{% endblocktrans %}</a>)
    11     (<a title="{% blocktrans %}paginate{% endblocktrans %}" href="?{% newparams 'paginate' '' %}">{% blocktrans %}paginate{% endblocktrans %}</a>)
    12     {% endif %}
    12     {% endif %}
    13 </span>
    13 </span>
    14         
    14