From 9eb6d36bb30a607bdf4b203608362b28a41f5450 Mon Sep 17 00:00:00 2001 From: citrons Date: Mon, 16 Jun 2025 23:22:11 -0500 Subject: only show reply box at the end of a thread --- apioforum/templates/view_thread.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index 0210c55..c77d2e7 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -70,8 +70,9 @@ {% endif %} {% endfor %} -{{ 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") %} +{% if page != max_pageno %} + {{ pagination_nav(page,max_pageno,'thread.view_thread',thread_id=thread.id,bottom=True) }} +{% elif g.user and has_permission(thread.forum, g.user, "p_reply_threads") %}
{% if poll and has_permission(thread.forum, g.user, "p_vote") %} -- cgit v1.2.3