puppet node classifier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
625 B

  1. <div class="pager">
  2. <h6>Page</h6>
  3. {% if page > 0 %}
  4. <div class="nav-prev">
  5. <a href="{{path}}?page={{ page - 1 }}">Previous</a>
  6. </div>
  7. {% endif %}
  8. <div class="pages">
  9. <ul class="pager">
  10. {% for pgnum in range(0, total_pages) %}
  11. <li{% if pgnum == page %} class="current"{% endif %}>
  12. <a href="{{path}}?page={{ pgnum }}">{{ pgnum }}</a>
  13. </li>
  14. {% endfor %}
  15. </ul>
  16. </div>
  17. {% if page + 1 < total_pages %}
  18. <div class="nav-next">
  19. <a href="{{path}}?page={{ page + 1 }}">Next</a>
  20. </div>
  21. {% endif %}
  22. </div>