add: report button on profiles and communities

This commit is contained in:
trisua 2025-06-03 17:42:29 -04:00
parent 75459080c3
commit a091adc9d9
6 changed files with 34 additions and 6 deletions

View file

@ -280,7 +280,17 @@
("hook" "check_reactions")
("hook-arg:id" "{{ community.id }}")
(text "{{ components::likes(id=community.id, asset_type=\"Community\", likes=community.likes, dislikes=community.dislikes) }}"))
(text "{%- endif %}"))))))
(text "{%- endif %}")))
(text "{% if user and user.id != community.owner -%}")
(hr)
(div
("class" "flex flex-wrap gap-2 w-full fade")
(a
("class" "red")
("href" "javascript:trigger('me::report', ['{{ community.id }}', 'community'])")
(text "({{ lang[\"general:action.report\"]|lower }})")))
(text "{%- endif %}"))))
(div
("class" "rhs w-full")
(text "{% if can_read -%} {% block content %}{% endblock %} {% else %}")