Add paginate.html

pull/6/head
beucismis 1 year ago
parent d52e566a9d
commit a2efd74e40
  1. 23
      ozgursozluk/templates/paginate.html

@ -0,0 +1,23 @@
<div>
{% if a %}
{% if p > 1 %}
<a href="{{ url_for('topic', title=topic.path, p=p-1) }}">previous</a>
{% if p < topic.pagecount %}/{% endif %}
{% endif %}
{% if p < topic.pagecount %}<a href="{{ url_for('topic', title=topic.path, p=p+1) }}">next</a>{% endif %}
{% if topic.pagecount > 1 %}
-
<a href="{{ url_for('topic', title=topic.path, p=topic.pagecount) }}">last page</a>
{% endif %}
{% else %}
{% if p > 1 %}
<a href="{{ url_for('topic', title=topic.path, p=p-1, a=a) }}">previous</a>
{% if p < topic.pagecount %}/{% endif %}
{% endif %}
{% if p < topic.pagecount %}<a href="{{ url_for('topic', title=topic.path, p=p+1, a=a) }}">next</a>{% endif %}
{% if topic.pagecount > 1 %}
-
<a href="{{ url_for('topic', title=topic.path, p=topic.pagecount, a=a) }}">last page</a>
{% endif %}
{% endif %}
</div>
Loading…
Cancel
Save