Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions readthedocsext/theme/templates/includes/crud/pagination.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{% load i18n %}

{% if is_paginated %}
<div class="ui pagination menu">
<div class="ui pagination wrapping menu">

{% if page_obj.has_previous %}
<a class="icon item" href="?page{{ page_suffix }}={{ page_obj.previous_page_number }}{{ getvars }}"><i class="fa-solid fa-arrow-left icon"></i></a>
<a class="icon item"
href="?page{{ page_suffix }}={{ page_obj.previous_page_number }}{{ getvars }}"><i class="fa-solid fa-arrow-left icon"></i></a>
{% else %}
<a class="disabled icon item"><i class="fa-solid fa-arrow-left icon"></i></a>
{% endif %}
Expand All @@ -16,7 +15,8 @@
<div class="active item">{{ page }}</div>
{% else %}
{% if disable_link_for_first_page and page == 1 %}
<a href="{{ request.path }}{% if getvars %}?{{ getvars|slice:"1:" }}{% endif %}" class="item">{{ page }}</a>
<a href="{{ request.path }}{% if getvars %}?{{ getvars|slice:"1:" }}{% endif %}"
class="item">{{ page }}</a>
{% else %}
<a href="?page{{ page_suffix }}={{ page }}{{ getvars }}" class="item">{{ page }}</a>
{% endif %}
Expand All @@ -28,7 +28,8 @@
{% endif %}

{% if page_obj.has_next %}
<a class="icon item" href="?page{{ page_suffix }}={{ page_obj.next_page_number }}{{ getvars }}"><i class="fa-solid fa-arrow-right icon"></i></a>
<a class="icon item"
href="?page{{ page_suffix }}={{ page_obj.next_page_number }}{{ getvars }}"><i class="fa-solid fa-arrow-right icon"></i></a>
{% else %}
<a class="disabled icon item"><i class="fa-solid fa-arrow-right icon"></i></a>
{% endif %}
Expand Down