add: forum posts timeline

This commit is contained in:
trisua 2025-08-04 14:24:25 -04:00
parent 8c779b2f2e
commit d4ff681310
10 changed files with 159 additions and 17 deletions

View file

@ -2636,8 +2636,18 @@
(text "{%- endif %}")
(text "{%- endmacro %}")
(text "{% macro topic_post_display(post, owner, is_pinned=false) -%}")
(text "{% macro topic_post_display(post, owner, is_pinned=false, community=false) -%}")
(tr
(text "{% if community %}")
(td
(a
("href" "/community/{{ community.title }}/topic/{{ post.topic }}")
("class" "flex gap_1 items_center")
(text "{{ self::community_avatar(id=post.community, community=community) }}")
(span
(text "{% if community.context.display_name -%} {{ community.context.display_name }} {% else %} {{ community.title }} {%- endif %}"))))
(text "{%- endif %}")
(td
("class" "flex gap_1")
(a