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,17 +4,17 @@
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"all\", posts=\"/all\", questions=\"/all/questions\") }} {% if not user -%}")
(div
("class" "card-nest")
("class" "card_nest")
(div
("class" "card small flex items-center gap-2")
("class" "card small flex items_center gap_2")
(text "{{ icon \"heart\" }}")
(b
(text "{{ text \"general:label.better_with_account\" }}")))
(div
("class" "card flex gap-2")
("class" "card flex gap_2")
(a
("href" "/auth/login")
("class" "button")
@ -29,7 +29,7 @@
(text "{{ text \"auth:action.register\" }}")))))
(text "{%- endif %}")
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
("ui_ident" "io_data_load")
(div ("ui_ident" "io_data_marker"))))

View file

@ -4,10 +4,10 @@
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"all\", posts=\"/all\", questions=\"/all/questions\", secondary_selected=\"questions\") }}")
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
(text "{% for question in list %} {{ components::global_question(question=question, can_manage_questions=false, secondary=true) }} {% endfor %} {{ components::pagination(page=page, items=list|length) }}")))
(text "{% endblock %}")

View file

@ -4,10 +4,10 @@
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"following\", posts=\"/following\", questions=\"/following/questions\") }}")
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
("ui_ident" "io_data_load")
(div ("ui_ident" "io_data_marker"))))

View file

@ -4,10 +4,10 @@
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"following\", posts=\"/following\", questions=\"/following/questions\", secondary_selected=\"questions\") }}")
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
(text "{% for question in list %} {{ components::global_question(question=question, can_manage_questions=false, secondary=true) }} {% endfor %} {{ components::pagination(page=page, items=list|length) }}")))
(text "{% endblock %}")

View file

@ -4,10 +4,10 @@
(text "{% endblock %} {% block body %} {{ macros::nav(selected=\"home\") }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"home\", posts=\"/\", questions=\"/questions\") }} {% if list|length == 0 and page == 0 -%}")
(div
("class" "card-nest")
("class" "card_nest")
(div
("class" "card small")
(b
@ -25,7 +25,7 @@
("href" "/communities/search")
(text "searching for a community to join!")))))
(div
("class" "card-nest")
("class" "card_nest")
(div
("class" "card small")
(b
@ -38,7 +38,7 @@
(text "!"))))
(text "{% else %}")
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
("ui_ident" "io_data_load")
(div ("ui_ident" "io_data_marker")))
(text "{%- endif %}"))

View file

@ -4,10 +4,10 @@
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"home\", posts=\"/\", questions=\"/questions\", secondary_selected=\"questions\") }}")
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
(text "{% for question in list %} {{ components::global_question(question=question, can_manage_questions=false, secondary=true) }} {% endfor %} {{ components::pagination(page=page, items=list|length) }}")))
(text "{% endblock %}")

View file

@ -4,10 +4,10 @@
(text "{% endblock %} {% block body %} {{ macros::nav(selected=\"popular\") }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"popular\", posts=\"/popular\", questions=\"/popular/questions\") }}")
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
("ui_ident" "io_data_load")
(div ("ui_ident" "io_data_marker"))))

View file

@ -4,10 +4,10 @@
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"popular\", posts=\"/popular\", questions=\"/popular/questions\", secondary_selected=\"questions\") }}")
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
(text "{% for question in list %} {{ components::global_question(question=question, can_manage_questions=false, secondary=true) }} {% endfor %} {{ components::pagination(page=page, items=list|length) }}")))
(text "{% endblock %}")

View file

@ -4,14 +4,14 @@
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
(main
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(text "{{ macros::timelines_nav(selected=\"search\") }}")
(div
("class" "card-nest w-full")
("class" "card_nest w_full")
(div
("class" "card small flex items-center justify-between gap-2")
("class" "card small flex items_center justify_between gap_2")
(div
("class" "flex items-center gap-2")
("class" "flex items_center gap_2")
(text "{{ icon \"search\" }} {% if not profile -%}")
(span
(text "{{ text \"general:link.search\" }}"))
@ -20,12 +20,12 @@
(text "{{ components::full_username(user=profile) }}"))
(text "{%- endif %}")))
(div
("class" "card w-full flex flex-col gap-2")
("class" "card w_full flex flex_col gap_2")
(text "{% if not profile and not user.permissions|has_supporter -%} {{ components::supporter_ad(body=\"Become a supporter for full-site search!\") }} {% else %}")
(form
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(div
("class" "flex flex-row gap-2")
("class" "flex flex_row gap_2")
(input
("type" "text")
("name" "query")
@ -43,7 +43,7 @@
("id" "profile"))
(text "{%- endif %}")
(div
("class" "flex gap-2 flex-row")
("class" "flex gap_2 flex_row")
(button
("class" "small square")
(text "{{ icon \"search\" }}"))

View file

@ -13,9 +13,9 @@
(text "{%- endfor %}"))
(text "{% if list|length == 0 -%}")
(div
("class" "card lowered green flex justify-between items-center gap-2")
("class" "card lowered green flex justify_between items_center gap_2")
(div
("class" "flex items-center gap-2")
("class" "flex items_center gap_2")
(text "{{ icon \"shell\" }}")
(span
(str (text "general:label.timeline_end"))