add: forum posts timeline
This commit is contained in:
parent
8c779b2f2e
commit
d4ff681310
10 changed files with 159 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue