summaryrefslogtreecommitdiff
path: root/app/lib/pagination/templates/pagination
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-08-06 15:09:05 -0400
committerluxagraf <sng@luxagraf.net>2020-08-06 15:09:05 -0400
commit647176b83d2316a8f68613adac18e579dac6e2b1 (patch)
tree0791939ca747a4ee31f8bd057985a33997591aba /app/lib/pagination/templates/pagination
parent5a29df9e2ab7c0d80296907fcb61dccfff1fd008 (diff)
updated to Django 3.1
Diffstat (limited to 'app/lib/pagination/templates/pagination')
-rw-r--r--app/lib/pagination/templates/pagination/pagination.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/pagination/templates/pagination/pagination.html b/app/lib/pagination/templates/pagination/pagination.html
index e2f8e42..0a7f9a4 100644
--- a/app/lib/pagination/templates/pagination/pagination.html
+++ b/app/lib/pagination/templates/pagination/pagination.html
@@ -1,6 +1,6 @@
{% load pagination_tags %}{% if is_paginated %}
<ul class="pages">{% if page_obj.has_previous %}
- <li><a href="{% page_path prev_page %}" class="prev"> Newer</a></li>{% endif %}{% for page in pages %}{% if page %}{% if page == page_obj.number %}
+ <li><a href="{% if prev_page == 1%}/{{request.base_path}}/{%else%}{% page_path prev_page %}{%endif%}" class="prev"> Newer</a></li>{% endif %}{% for page in pages %}{% if page %}{% if page == page_obj.number %}
<li class="current page">{{ page }}</li>{% else %}
<li><a href="{% if page == 1%}/{{request.base_path}}/{%else%}{% page_path page %}{%endif%}" class="page">{{ page }}</a></li>{% endif %}{% else %}
<li>...</li>{% endif %}{% endfor %}{% if page_obj.has_next %}