diff options
author | ubq323 <ubq323> | 2021-08-20 01:48:50 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-08-20 01:48:50 +0000 |
commit | d7db0af8f7ce9e608180047bbbdc4fe9dd624f50 (patch) | |
tree | 69a88b6be664382d5710ab84ca49980807e0a9d7 /apioforum/templates | |
parent | af27d6578a0dd75229f89b9c64992aec0cd19b4c (diff) |
pagination and links and things (probably not complete)
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/view_forum.html | 4 | ||||
-rw-r--r-- | apioforum/templates/view_post.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index dec9234..a5e444e 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -112,7 +112,7 @@ you do not have permission to create threads in this forum {{ ts(thread.mrp_created) }} </span> <span class="thread-preview-post"> - <a href="{{url_for('thread.view_thread',thread_id=thread.id)}}#post_{{thread.mrp_id}}"> + <a href="{{post_jump(thread.mrp_id)}}"> {{ thread.mrp_content[:500]|e }} </a> </span> @@ -120,7 +120,7 @@ you do not have permission to create threads in this forum {% else %} <div class="listing-caption"> <a class="thread-preview-post" - href="{{url_for('thread.view_thread',thread_id=thread.id)}}#post_{{thread.mrp_id}}"> + href="{{post_jump(thread.mrp_id)}}"> latest post </a> </div> diff --git a/apioforum/templates/view_post.html b/apioforum/templates/view_post.html index 993c005..fcaf29b 100644 --- a/apioforum/templates/view_post.html +++ b/apioforum/templates/view_post.html @@ -8,5 +8,5 @@ {{disp_post(post,False)}} <p>post source:</p> <textarea readonly class="new-post-box" name="newcontent">{{post.content}}</textarea> -<a href="{{url_for('thread.view_thread',thread_id=post.thread)}}">i am satisfied</a> +<a href="{{post_jump(post.id)}}">i am satisfied</a> {% endblock %} |