diff options
author | citrons <citrons@mondecitronne.com> | 2025-06-16 23:22:10 -0500 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-06-17 12:05:31 +0100 |
commit | 9267a2c6296034af399c66c83b2ac5a3cbd999b6 (patch) | |
tree | f7c08e9233afb5c653cf571ab1776a5686790e33 /apioforum/templates | |
parent | d3b75d99694408dda9f25ad752a1f10f6b926915 (diff) |
pagination links on the bottom of the page
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/common.html | 4 | ||||
-rw-r--r-- | apioforum/templates/view_forum.html | 1 | ||||
-rw-r--r-- | apioforum/templates/view_thread.html | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html index 829e36a..2a19b5c 100644 --- a/apioforum/templates/common.html +++ b/apioforum/templates/common.html @@ -156,8 +156,8 @@ </svg> {% endmacro %} -{% macro pagination_nav(page,max_pageno,view) %} -<nav aria-label="pagination" id="pages"> +{% macro pagination_nav(page,max_pageno,view,bottom=False) %} +<nav aria-label="pagination" class="pages{% if not bottom %} pages-top{% endif %}"> <div class="links"> {% if page > 1 %} <a href="{{url_for(view,**kwargs)}}" aria-label="first page"><< first</a> diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index 7aca977..94238a7 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -197,5 +197,6 @@ you do not have permission to create threads in this forum {% endif %} </div> +{{ pagination_nav(page,max_pageno,'forum.view_forum',forum_id=forum.id,bottom=True) }} {%endblock%} diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index 56f98e1..0210c55 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -70,6 +70,7 @@ {% endif %} {% endfor %} </div> +{{ pagination_nav(page,max_pageno,'thread.view_thread',thread_id=thread.id,bottom=True) }} {% if g.user and has_permission(thread.forum, g.user, "p_reply_threads") %} <form class="new-post" action="{{url_for('thread.create_post',thread_id=thread.id)}}" method="POST"> <textarea class="new-post-box" placeholder="your post here..." name="content"></textarea> |