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

@ -6,7 +6,7 @@
(nav
("class" "chats_nav")
(button
("class" "flex gap-2 items-center active")
("class" "flex gap_2 items_center active")
("onclick" "toggle_sidebars(event)")
(text "{{ icon \"panel-left\" }} {% if community -%}")
(b
@ -19,7 +19,7 @@
(div
("class" "flex")
(div
("class" "sidebar flex flex-col items-center gap-2")
("class" "sidebar flex flex_col items_center gap_2")
("id" "community_list")
("style" "width: var(--list-bar-width)")
(a
@ -35,12 +35,12 @@
(text "{{ components::community_avatar(id=community.id, community=community, size=\"48px\") }}"))
(text "{%- endif %} {% endfor %}"))
(div
("class" "sidebar flex flex-col gap-2 justify-between")
("class" "sidebar flex flex_col gap_2 justify_between")
("id" "channels_list")
(div
("class" "flex flex-col gap-2 w-full")
("class" "flex flex_col gap_2 w_full")
(div
("class" "title flex items-center justify-between channel_header")
("class" "title flex items_center justify_between channel_header")
(text "{% if community -%}")
(b
("class" "name shorter")
@ -73,7 +73,7 @@
(text "{%- endif %}"))
(text "{% if can_manage_channels -%}")
(a
("class" "button w-full justify-start lowered")
("class" "button w_full justify-start lowered")
("href" "/community/{{ selected_community }}/manage#/channels")
(text "{{ icon \"plus\" }}")
(span
@ -86,14 +86,14 @@
(text "{{ components::user_plate(user=user, show_menu=true) }}"))
(text "{% if channel -%}")
(div
("class" "w-full flex flex-col gap-2 padded_section")
("class" "w_full flex flex_col gap_2 padded_section")
("id" "stream")
("style" "padding: var(--pad-4)")
(turbo-frame
("id" "stream_body_frame")
("src" "/chats/{{ selected_community }}/{{ selected_channel }}/_stream?page={{ page }}&message={{ message }}"))
(form
("class" "card flex flex-row gap-2")
("class" "card flex flex_row gap_2")
("onsubmit" "create_message_from_form(event)")
(textarea
("type" "text")