2021-09-30 09:34:39 +02:00
< % = gettext " New report from %{reporter} on %{instance} " , reporter : Mobilizon.Actors.Actor . display_name_and_username ( @report . reporter ) , instance : @instance_name % >
2019-09-24 12:09:43 +02:00
--
2020-09-30 15:25:30 +02:00
< % = if @report . reported do % >
< % = if @report . reported . type == :Group do % >
< % = gettext " Group %{group} was reported " , group : Mobilizon.Actors.Actor . display_name_and_username ( @report . reported ) % >
< % else % >
2020-11-19 17:06:28 +01:00
< % = gettext " Profile %{profile} was reported " , profile : Mobilizon.Actors.Actor . display_name_and_username ( @report . reported ) % >
2020-09-30 15:25:30 +02:00
< % end % >
< % end % >
2023-06-05 18:32:29 +02:00
< % = if Map . has_key? ( @report , :event ) && length ( @report . events ) > 0 do % >
< % = gettext " Events " % >
< % = for event <- @report . events do % >
< % = event . title % >
< % end % >
2019-09-24 12:09:43 +02:00
< % end % >
< % = if Map . has_key? ( @report , :comments ) && length ( @report . comments ) > 0 do % >
2020-08-10 16:57:26 +02:00
< % = gettext " Comments " % >
< % = for comment <- @report . comments do % >
< % = comment . text % >
< % end % >
2019-09-24 12:09:43 +02:00
< % end % >
< % = if @report . content do % >
2020-08-10 16:57:26 +02:00
< % = gettext " Reason " % >
< % = @report . content % >
2019-09-24 12:09:43 +02:00
< % end % >
2023-12-01 09:49:54 +01:00
< % = gettext " View report: " % > < % = url ( ~p" /moderation/report/ #{ @report . id } " ) % >