add user started threads view

This commit is contained in:
2026-04-29 19:14:05 +03:00
parent d5e627ed7f
commit 3870356ffa
7 changed files with 80 additions and 10 deletions

View File

@@ -4,19 +4,19 @@
{%- block title -%}{{ target_user.get_readable_name() }}'s posts{%- endblock -%}
{%- block content -%}
{%- set td -%}
<a href="{{url_for('users.user_page', username=target_user.username)}}">Back to profile</a>
<a href="{{url_for('users.user_page', username=target_user.username)}}">&larr; Back to profile</a>
{%- endset -%}
{%- call() subheader("%s's posts" % target_user.get_readable_name(), td) -%}
{%- if posts -%}
<fieldset class="plank even no-shadow minimal thread-actions">
<legend>Page</legend>
{{- pager(page, page_count) -}}
</fieldset>
{%- endif -%}
{%- endset -%}
{%- call() subheader("%s's posts" % target_user.get_readable_name(), td) -%}
{%- endcall -%}
{%- if posts -%}
{%- for post in posts -%}
<div class="post plank">{{full_post(post, show_toolbar=false, show_thread=true)}}</div>
<div class="post plank">{{full_post(post, show_toolbar=false, show_thread=true, allow_reacting=false)}}</div>
{%- endfor -%}
<div class="plank">
<fieldset class="plank even no-shadow minimal thread-actions">