src/cm/templates/site/macros/paginator.html
changeset 159 4ec5ae89a7b0
parent 125 d01aa5676809
equal deleted inserted replaced
158:acdceed9d3c0 159:4ec5ae89a7b0
     4     {% if page_obj %}
     4     {% if page_obj %}
     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 %}
     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="{% blocktrans %}Next page{% endblocktrans %}" 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="{% blocktrans %}View all{% endblocktrans %}" href="?{% newparams 'paginate' '0' %}">{% blocktrans %}all{% endblocktrans %}</a>){% endif %}
     9         {% if not_show_all %}{% else %}{% 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 %}{% endif %}
    10     {% else %}
    10     {% else %}
    11     (<a title="{% blocktrans %}paginate{% endblocktrans %}" 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