diff options
-rw-r--r-- | apioforum/templates/view_thread.html | 5 |
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") %} |