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

@ -172,6 +172,16 @@
(span
("class" "date")
(text "{{ profile.last_seen }}"))))
(text "{%- endif %}")
(text "{% if user and user.id != profile.id -%}")
(hr)
(div
("class" "flex flex-wrap gap-2 w-full fade")
(a
("class" "red")
("href" "javascript:trigger('me::report', ['{{ profile.id }}', 'user'])")
(text "({{ lang[\"general:action.report\"]|lower }})")))
(text "{%- endif %}")))
(text "{% if not is_self and user -%}")
(div