This commit is contained in:
2025-04-22 15:37:22 +01:00
parent 9760fc88e4
commit e9dc5e5056
9 changed files with 126 additions and 42 deletions

View File

@@ -17,10 +17,12 @@
<p>{{ post.short_content }}</p>
<h6><a href="/posts/{{ post.id }}">View Post</a>
{% if post.replies|length > 0 %}
| ({{ post.replies|length }} replies)
({{ post.replies|length }} replies)
{% endif %}
{% if session.name == "SYSTEM" %}
| <a href="/delete/post/{{ post.id }}">Delete</a>
{% elif session.name == post.user.name %}
| <a href="/delete/post/{{ post.id }}">Delete</a>
{% endif %}
</h6>
</li>