aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-16 23:22:11 -0500
committerubq323 <ubq323@ubq323.website>2025-06-17 12:05:31 +0100
commit9eb6d36bb30a607bdf4b203608362b28a41f5450 (patch)
treeb4bf871f7bcc5c8100af131497a4d71dbb1122d0
parent9267a2c6296034af399c66c83b2ac5a3cbd999b6 (diff)
only show reply box at the end of a thread
-rw-r--r--apioforum/templates/view_thread.html5
1 files 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 %}
</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") %}
+{% 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") %}
<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>
{% if poll and has_permission(thread.forum, g.user, "p_vote") %}