add: forum posts ui

This commit is contained in:
trisua 2025-08-03 23:24:57 -04:00
parent ef029c59b3
commit 2be87c397d
90 changed files with 1459 additions and 1299 deletions

View file

@ -4,7 +4,7 @@
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{% if post.replying_to -%}")
(a
("href" "/post/{{ post.replying_to }}")
@ -56,14 +56,14 @@
(text "{{ text \"communities:action.configure\" }}"))))
(text "{%- endif %}")
(div
("class" "card-nest w-full")
("class" "card_nest w_full")
(div
("class" "card small flex items-center gap-2")
("class" "card small flex items_center gap_2")
(text "{{ icon \"quote\" }}")
(span
(text "{{ text \"communities:label.quotes\" }}")))
(div
("class" "card flex flex-col gap-4")
("class" "card flex flex_col gap_4")
(text "{% for post in list %} {{ components::post(post=post[0], owner=post[1], question=post[3], secondary=true, show_community=false, poll=post[4]) }} {% endfor %} {{ components::pagination(page=page, items=list|length, key=\"&quotes=\", value=\"true\") }}"))))
(text "{% endblock %}")