aboutsummaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-07-25 22:58:20 +0000
committerubq323 <ubq323>2021-07-25 22:58:20 +0000
commita69e0cc27e41d9b71d23b94cf8bc1421dbba14df (patch)
treefc62fc7643b50b7f6c165fc3afe52d9137a206ac /apioforum/templates
parenta53f2d70c880812e9a6e40dcee236d9099d10018 (diff)
add page links nav thing
Diffstat (limited to 'apioforum/templates')
-rw-r--r--apioforum/templates/view_forum.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html
index 475fdc2..9c3c2c5 100644
--- a/apioforum/templates/view_forum.html
+++ b/apioforum/templates/view_forum.html
@@ -92,5 +92,19 @@ please log in to create a new thread
</div>
{%endfor%}
</div>
+<nav id="pages">
+ {% if page > 1 %}
+ <a href="{{url_for('forum.view_forum',forum_id=forum.id)}}" aria-label="first page">&lt;&lt;</a>
+ <a href="{{url_for('forum.view_forum',forum_id=forum.id,page=page-1)}}" aria-label="previous page">&lt;</a>
+ {% endif %}
+ page {{page}} of {{max_pageno}}
+ {% if page < max_pageno %} {# > #}
+ <a href="{{url_for('forum.view_forum',forum_id=forum.id,page=page+1)}}" aria-label="next page">&gt;</a>
+ <a href="{{url_for('forum.view_forum',forum_id=forum.id,page=max_pageno)}}" aria-label="last page">&gt;&gt;</a>
+ {% endif %}
+</nav>
+
+
+</nav>
</main>
{%endblock%}