16 lines
1.5 KiB
Common Lisp
16 lines
1.5 KiB
Common Lisp
(text "{% import \"components.html\" as components %} {% extends \"communities/base.html\" %} {% block content %}")
|
|
(div
|
|
("class" "flex flex_col gap_4 w_full")
|
|
(text "{{ macros::community_nav(community=community, selected=\"posts\") }}")
|
|
(div
|
|
("class" "card_nest")
|
|
(div
|
|
("class" "card small flex gap_2 items_center")
|
|
(text "{{ icon \"newspaper\" }}")
|
|
(span
|
|
(text "{{ text \"communities:label.posts\" }}")))
|
|
(div
|
|
("class" "card flex flex_col gap_4")
|
|
(text "{% for post in pinned %} {% if post[0].context.repost and post[0].context.repost.reposting -%} {{ components::repost(repost=post[2], post=post[0], owner=post[1], secondary=true, show_community=false, can_manage_post=can_manage_posts) }} {% else %} {{ components::post(post=post[0], owner=post[1], question=post[3], secondary=true, show_community=false, can_manage_post=can_manage_posts, poll=post[4]) }} {%- endif %} {% endfor %}")
|
|
(text "{% for post in feed %} {% if post[0].context.repost and post[0].context.repost.reposting -%} {{ components::repost(repost=post[2], post=post[0], owner=post[1], secondary=true, show_community=false, can_manage_post=can_manage_posts) }} {% else %} {{ components::post(post=post[0], owner=post[1], question=post[3], secondary=true, show_community=false, can_manage_post=can_manage_posts, poll=post[4]) }} {%- endif %} {% endfor %} {{ components::pagination(page=page, items=feed|length) }}"))))
|
|
(text "{% endblock %}")
|