add: forges ui

TODO: forges tickets feed, posts open/closed state
This commit is contained in:
trisua 2025-06-09 16:45:36 -04:00
parent 5b1db42c51
commit a6140f7c8c
40 changed files with 1664 additions and 1270 deletions

View file

@ -1,7 +1,7 @@
(text "{% macro nav(selected=\"\", show_lhs=true, hide_user_menu=false) -%}")
(nav
(div
("class" "content_container")
("class" "content_container flex justify-between")
(div
("class" "flex nav_side")
(a
@ -72,7 +72,7 @@
("class" "flex-row title")
("onclick" "trigger('atto::hooks::dropdown', [event])")
("exlude" "dropdown")
("style" "gap: 0.25rem !important")
("style" "gap: var(--pad-1) !important")
(text "{{ components::avatar(username=user.username, size=\"24px\") }}")
(icon_class (text "chevron-down") (text "dropdown-arrow")))
@ -221,3 +221,19 @@
(str (text "auth:label.outbox")))
(text "{%- endif %} {%- endif %}"))
(text "{%- endmacro %}")
(text "{% macro forge_nav(community, selected=\"\") -%}")
(div
("class" "pillmenu")
(a
("href" "/forge/{{ community.title }}")
("class" "{% if selected == 'info' -%}active{%- endif %}")
(icon (text "info"))
(str (text "forge:tab.info")))
(a
("href" "/forge/{{ community.title }}/tickets")
("class" "{% if selected == 'tickets' -%}active{%- endif %}")
(icon (text "circle-dot"))
(str (text "forge:tab.tickets"))))
(text "{%- endmacro %}")