SHARE
TWEET

Untitled

a guest Jun 16th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <nav>
  2.     <ul class="pagination">
  3.         <li class="page-item">
  4.             {% if page.has_previous %}
  5.                 <a class="page-link" href="?page={{page.previous_page_number}}">Poprzednia</a>
  6.             {% else %}
  7.                 <a class="page-link disabled">Poprzednia</a>
  8.             {% endif %}
  9.         </li >
  10.  
  11.         {% for num in page.paginator.page_range %}
  12.             {% if page.number == num %}
  13.                  <li class="page-item active">
  14.                     <a class="page-link" href="?page={{num}}">{{num}}</a>
  15.                  </li >
  16.  
  17.             {% elif num > page.number|add:'-3' and num < page.number|add:'3' %}
  18.                 <li class="page-item">
  19.                     <a class="page-link" href="?page={{num}}">{{num}}</a>
  20.                 </li >
  21.             {% endif %}
  22.         {% endfor %}
  23.  
  24.         <li class="page-item">
  25.             {% if page.has_next %}
  26.                 <a class="page-link" href="?page={{page.next_page_number}}">NastÄ™pna</a>
  27.             {% else %}
  28.                 <a class="page-link disabled">NastÄ™pna</a>
  29.             {% endif %}
  30.         </li >
  31.     </ul>
  32. </nav>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top