Skip to content

Commit

Permalink
Fix next and last buttons on admin pginator (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Apr 29, 2023
1 parent 857b7f0 commit f8ac355
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions misago/templates/misago/admin/generic/paginator.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@
<span class="fa fa-chevron-left"></span>
</button>
{% endif %}
{% if page.next_page_number < paginator.num_pages %}
{% if page.has_next %}
<a href="{% url root_link page=page.next_page_number %}{{ querystring }}" class="btn btn-light btn-sm" data-tooltip="top" title="{% trans 'Go to next page' %}">
<span class="fa fa-chevron-right"></span>
</a>
{% else %}
<button class="btn btn-light btn-sm" disabled>
<span class="fa fa-chevron-right"></span>
</button>
{% endif %}
{% if page.has_next %}
<a href="{% url root_link page=paginator.num_pages %}{{ querystring }}" class="btn btn-light btn-sm" data-tooltip="top" title="{% trans 'Go to last page' %}">
{% trans "Last" %}
</a>
{% else %}
<button class="btn btn-light btn-sm" disabled>
<span class="fa fa-chevron-right"></span>
</button>
<button class="btn btn-light btn-sm" disabled>
{% trans "Last" %}
</button>
Expand Down

0 comments on commit f8ac355

Please sign in to comment.