add user bookmarks view

This commit is contained in:
2025-11-20 03:49:44 +03:00
parent b86e049263
commit 95decd9a56
4 changed files with 60 additions and 2 deletions

View File

@@ -91,7 +91,7 @@
</form>
{% endmacro %}
{% macro full_post(post, render_sig = True, is_latest = False, editing = False, active_user = None, no_reply = false, Reactions = none) %}
{% macro full_post(post, render_sig = True, is_latest = False, editing = False, active_user = None, no_reply = false, Reactions = none, show_thread_title = false) %}
{% set postclass = "post" %}
{% if editing %}
{% set postclass = postclass + " editing" %}
@@ -112,6 +112,11 @@
<div class="post-content-container" {{ "id=latest-post" if is_latest else "" }}>
<div class="post-info">
<span>
{% if show_thread_title %}
<a href="{{ url_for('threads.thread', slug=post.thread_slug) }}">Thread: {{ post.thread_title }}</a>
&bullet;
{% endif %}
<a href="{{ post_permalink }}" title="Permalink"><i>
{% if (post['edited_at'] | int) > (post['created_at'] | int) %}
Edited on {{ timestamp(post['edited_at']) }}
@@ -119,6 +124,7 @@
Posted on {{ timestamp(post['edited_at']) }}
{% endif %}
</i></a>
</span>
<span>
{% set show_edit = false %}
{% if active_user %}