add posts route

This commit is contained in:
2025-07-02 16:21:55 +03:00
parent 3da3054587
commit 76da1c3e61
4 changed files with 97 additions and 4 deletions

View File

@ -123,7 +123,7 @@
{% set show_edit = (active_user.id | string) == (post['user_id'] | string) and (not post['thread_is_locked'] or active_user.is_mod()) and not no_reply %}
{% endif %}
{% if show_edit %}
<a class="linkbutton" href="#TODO">Edit</a>
<a class="linkbutton" href="{{ url_for('posts.edit', post_id=post.id, _anchor='babycode-content') }}">Edit</a>
{% endif %}
{% set show_reply = true %}