paginator.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% load i18n %}
  2. <nav class="misago-pagination" role="nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
  3. {% if paginator.pages > 1 %}
  4. <ul class="pagination">
  5. {% if paginator.first %}
  6. <li>
  7. <a href="{% url url_name slug=thread.slug pk=thread.pk %}" title="{% trans 'Go to first page' %}">
  8. <span class="material-icon">first_page</span>
  9. </a>
  10. </li>
  11. {% if paginator.previous > 1 %}
  12. <li>
  13. <a href="{% url url_name slug=thread.slug pk=thread.pk page=paginator.previous %}" rel="prev" title="{% trans 'Go to previous page' %}">
  14. <span class="material-icon">chevron_left</span>
  15. </a>
  16. </li>
  17. {% else %}
  18. <li>
  19. <a href="{% url url_name slug=thread.slug pk=thread.pk %}" rel="prev" title="{% trans 'Go to previous page' %}">
  20. <span class="material-icon">chevron_left</span>
  21. </a>
  22. </li>
  23. {% endif %}
  24. {% endif %}
  25. {% if paginator.last %}
  26. <li>
  27. <a href="{% url url_name slug=thread.slug pk=thread.pk page=paginator.next %}" rel="next" title="{% trans 'Go to next page' %}">
  28. <span class="material-icon">chevron_right</span>
  29. </a>
  30. </li>
  31. <li>
  32. <a href="{% url url_name slug=thread.slug pk=thread.pk page=paginator.last %}" title="{% trans 'Go to last page' %}">
  33. <span class="material-icon">last_page</span>
  34. </a>
  35. </li>
  36. {% endif %}
  37. </ul>
  38. {% endif %}
  39. <p>
  40. {% if paginator.more %}
  41. {% blocktrans trimmed count more=paginator.more %}
  42. There is {{ more }} more post in this thread.
  43. {% plural %}
  44. There are {{ more }} more posts in this thread.
  45. {% endblocktrans %}
  46. {% else %}
  47. {% trans "There are no more posts in this thread." %}
  48. {% endif %}
  49. </p>
  50. </nav>