"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/share/roundup/templates/jinja2/html/layout/pagination.html" (29 Feb 2020, 1265 Bytes) of package /linux/www/roundup-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <nav>
    2   {% set batch = request.batch() %}
    3   <ul class="pagination justify-content-center">
    4     {% if batch and batch.previous %}
    5       <li class="page-item">
    6         <a class="page-link" href="{{ request.indexargs_url(request.classname,
    7                                    {'@startwith':batch.previous().first, '@pagesize':batch.previous().size}) }}">{% trans %}Previous{% endtrans %}</a>
    8       </li>
    9     {% else %}
   10       <li class='page-item disabled'>
   11         <a class="page-link" href="#">{% trans %}Previous{% endtrans %}</a>
   12       </li>
   13     {% endif %}
   14       <li class="page-item disabled">
   15         <span class="page-link">
   16           {{ batch.start }}...{{ batch.start + batch.length -1 }}
   17           {% trans %}out of{% endtrans %}
   18           {{ batch.sequence_length }}
   19         </span>
   20       </li>
   21     {% if batch and batch.next() %}
   22       <li class="page-item">
   23         <a class="page-link" href="{{ request.indexargs_url(request.classname,
   24                                    {'@startwith':batch.next().first, '@pagesize':batch.next().size}) }}">{% trans %}Next{% endtrans %}</a>
   25       </li>
   26     {% else %}
   27       <li class='page-item disabled'>
   28         <a class="page-link" href="#">{% trans %}Next{% endtrans %}</a>
   29       </li>
   30     {% endif %}
   31   </ul>
   32 </nav>