aboutsummaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-17 13:02:46 -0500
committercitrons <citrons@mondecitronne.com>2025-06-17 13:02:46 -0500
commit0218b24d77888519ed6a5f6029ab967ddfe2dd14 (patch)
treef24b40240df88e79f414095be4eb79f19cecf0c7 /apioforum/templates
parentf895359329536c800bbfe638fcb4c62e08e2aeb7 (diff)
try to show the most recent non-deleted post
requires db migration
Diffstat (limited to 'apioforum/templates')
-rw-r--r--apioforum/templates/view_forum.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html
index ca48f21..825aaba 100644
--- a/apioforum/templates/view_forum.html
+++ b/apioforum/templates/view_forum.html
@@ -163,7 +163,7 @@ you do not have permission to create threads in this forum
</a>
</div>
</div>
- {% if not thread.mrp_deleted %}
+ {% if thread.mrp_content %}
<div class="listing-caption preview-caption">
{{ disp_user(thread.mrp_author) }}
<span class="thread-preview-ts">
@@ -176,8 +176,8 @@ you do not have permission to create threads in this forum
{% else %}
<div class="listing-caption preview-caption">
<a class="thread-preview-post"
- href="{{post_jump(thread.mrp_id)}}">
- latest post
+ href="{{url_for('thread.view_thread',thread_id=thread.id)}}">
+ no posts
</a>
</div>
{% endif %}