tetratto/crates/app/src/public/html/communities/questions.lisp
2025-08-03 23:24:57 -04:00

21 lines
1 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=\"questions\") }}")
(text "{% if user and can_post -%}")
(div
("style" "display: contents")
(text "{{ components::create_question_form(community=community.id, is_global=true) }}"))
(text "{%- endif %}")
(div
("class" "card_nest")
(div
("class" "card small flex gap_2 items_center")
(text "{{ icon \"newspaper\" }}")
(span
(text "{{ text \"communities:label.questions\" }}")))
(div
("class" "card flex flex_col gap_4")
(text "{% for question in feed %} {{ components::global_question(question=question, can_manage_questions=can_manage_questions, show_community=false, secondary=true) }} {% endfor %} {{ components::pagination(page=page, items=feed|length) }}"))))
(text "{% endblock %}")