forked from rDrama/rDrama
vcx
parent
c9890feb4a
commit
e363dcbb49
|
@ -75,17 +75,10 @@
|
||||||
<ul class="pagination pagination-sm mb-0">
|
<ul class="pagination pagination-sm mb-0">
|
||||||
{% if page>1 %}
|
{% if page>1 %}
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
{% if "?page=" in request.full_path %}
|
|
||||||
{% set path = request.full_path.split("?page=")[0] %}
|
|
||||||
{% elif "&page=" in request.full_path %}
|
|
||||||
{% set path = request.full_path.split("&page=")[0] %}
|
|
||||||
{% else %}
|
|
||||||
{% set path = request.full_path %}
|
|
||||||
{% endif %}
|
|
||||||
{% if request.full_path == "/notifications" %}
|
{% if request.full_path == "/notifications" %}
|
||||||
<small><a class="page-link" href="{{path}}?page={{page-1}}">Previous</a></small>
|
<small><a class="page-link" href="{{request.full_path}}?page={{page-1}}">Previous</a></small>
|
||||||
{% else %}
|
{% else %}
|
||||||
<small><a class="page-link" href="{{path}}&page={{page-1}}">Previous</a></small>
|
<small><a class="page-link" href="{{request.full_path}}&page={{page-1}}">Previous</a></small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -94,17 +87,10 @@
|
||||||
|
|
||||||
{% if next_exists %}
|
{% if next_exists %}
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
{% if "?page=" in request.full_path %}
|
|
||||||
{% set path = request.full_path.split("?page=")[0] %}
|
|
||||||
{% elif "&page=" in request.full_path %}
|
|
||||||
{% set path = request.full_path.split("&page=")[0] %}
|
|
||||||
{% else %}
|
|
||||||
{% set path = request.full_path %}
|
|
||||||
{% endif %}
|
|
||||||
{% if request.full_path == "/notifications" %}
|
{% if request.full_path == "/notifications" %}
|
||||||
<small><a class="page-link" href="{{path}}?page={{page+1}}">Next</a></small>
|
<small><a class="page-link" href="{{request.full_path}}?page={{page+1}}">Next</a></small>
|
||||||
{% else %}
|
{% else %}
|
||||||
<small><a class="page-link" href="{{path}}&page={{page+1}}">Next</a></small>
|
<small><a class="page-link" href="{{request.full_path}}&page={{page+1}}">Next</a></small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue