aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/includes/pagination.html
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-10-05 19:30:10 +0200
committerGravatar GitHub <[email protected]>2020-10-05 19:30:10 +0200
commitab20a2f0ec5df75abb641df651b15ca3c0341c0f (patch)
tree69832b8c41cfb29cae312e265e3e3e3ee1f6419b /pydis_site/templates/wiki/includes/pagination.html
parentFix content app linting (diff)
parentMerge pull request #405 from python-discord/remove_django_wiki (diff)
Merge branch 'dewikification' into guides-app
Diffstat (limited to 'pydis_site/templates/wiki/includes/pagination.html')
-rw-r--r--pydis_site/templates/wiki/includes/pagination.html27
1 files changed, 0 insertions, 27 deletions
diff --git a/pydis_site/templates/wiki/includes/pagination.html b/pydis_site/templates/wiki/includes/pagination.html
deleted file mode 100644
index 35dac538..00000000
--- a/pydis_site/templates/wiki/includes/pagination.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% load i18n %}
-
-{% if is_paginated %}
- <nav class="pagination" role="navigation" aria-label="pagination">
- {% if page_obj.has_previous %}
- <a class="pagination-previous" href="?{% if search_query %}q={{ search_query }}&{% endif %}page={{ page_obj.previous_page_number }}{% if appended_key %}&{{ appended_key }}={{ appended_value }}{% endif %}">Previous</a>
- {% else %}
- <a class="pagination-previous tooltip" data-tooltip="This is the first page" disabled>Previous</a>
- {% endif %}
-
- {% if page_obj.has_next %}
- <a class="pagination-next" href="?{% if search_query %}q={{ search_query }}&{% endif %}page={{ page_obj.next_page_number }}{% if appended_key %}&{{ appended_key }}={{ appended_value }}{% endif %}">Next</a>
- {% else %}
- <a class="pagination-next tooltip" data-tooltip="This is the last page" disabled>Older</a>
- {% endif %}
-
- <ul class="pagination-list">
- {% for pc in paginator.page_range %}
- {% if pc == 0 %}
- <li><span class="pagination-ellipsis">&hellip;</span></li>
- {% else %}
- <li><a class="pagination-link{% if pc == page_obj.number %} is-current{% endif %}" href="?{% if search_query %}q={{ search_query }}&{% endif %}page={{ pc }}{% if appended_key %}&{{ appended_key }}={{ appended_value }}{% endif %}">{{ pc }}</a></li>
- {% endif %}
- {% endfor %}
- </ul>
- </nav>
-{% endif %}