diff options
author | ubq323 <ubq323> | 2021-07-25 22:58:20 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-07-25 22:58:20 +0000 |
commit | a69e0cc27e41d9b71d23b94cf8bc1421dbba14df (patch) | |
tree | fc62fc7643b50b7f6c165fc3afe52d9137a206ac /apioforum/templates | |
parent | a53f2d70c880812e9a6e40dcee236d9099d10018 (diff) |
add page links nav thing
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/view_forum.html | 14 |
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"><<</a> + <a href="{{url_for('forum.view_forum',forum_id=forum.id,page=page-1)}}" aria-label="previous page"><</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">></a> + <a href="{{url_for('forum.view_forum',forum_id=forum.id,page=max_pageno)}}" aria-label="last page">>></a> + {% endif %} +</nav> + + +</nav> </main> {%endblock%} |