fix: circle stack users ui
This commit is contained in:
parent
9443bfb58d
commit
8c5d8bf0ba
2 changed files with 8 additions and 5 deletions
|
@ -174,10 +174,11 @@
|
|||
("style" "color: var(--color-primary)")
|
||||
(text "{{ icon \"square-asterisk\" }}"))
|
||||
(text "{%- endif %} {% if post.stack -%}")
|
||||
(span
|
||||
(a
|
||||
("title" "Posted to a stack you're in")
|
||||
("class" "flex items-center")
|
||||
("class" "flex items-center flush")
|
||||
("style" "color: var(--color-primary)")
|
||||
("href" "/stacks/{{ post.stack }}")
|
||||
(text "{{ icon \"layers\" }}"))
|
||||
(text "{%- endif %} {% if community and community.is_forge -%} {% if post.is_open -%}")
|
||||
(span
|
||||
|
|
|
@ -65,9 +65,11 @@
|
|||
(text "{% for user in list %} {{ components::user_plate(user=user, secondary=true) }} {% endfor %}"))
|
||||
(text "{% else %}")
|
||||
; user icons for circle stack
|
||||
(text "{% if stack.mode == 'Circle' -%} {% for user in stack.users %}")
|
||||
(text "{{ components::avatar(username=user, selector_type=\"id\", size=\"24px\") }}")
|
||||
(text "{% endfor %} {%- endif %}")
|
||||
(text "{% if stack.mode == 'Circle' -%}")
|
||||
(div
|
||||
("class" "flex w-full gap-2 flex-wrap")
|
||||
(text "{% for user in stack.users %} {{ components::avatar(username=user, selector_type=\"id\", size=\"24px\") }} {% endfor %}"))
|
||||
(text "{%- endif %}")
|
||||
|
||||
; posts for all stacks except blocklist
|
||||
(text "{% for post in list %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue