2021-09-30 07:34:39 +00:00
< % = gettext " New report from %{reporter} on %{instance} " , reporter : Mobilizon.Actors.Actor . display_name_and_username ( @report . reporter ) , instance : @instance_name % >
2019-09-24 10:09:43 +00:00
--
2020-09-30 13:25:30 +00: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 16:06:28 +00:00
< % = gettext " Profile %{profile} was reported " , profile : Mobilizon.Actors.Actor . display_name_and_username ( @report . reported ) % >
2020-09-30 13:25:30 +00:00
< % end % >
< % end % >
< % = if Map . has_key? ( @report , :event ) and @report . event do % >
2020-08-10 14:57:26 +00:00
< % = gettext " Event " % >
< % = @report . event . title % >
2019-09-24 10:09:43 +00:00
< % end % >
< % = if Map . has_key? ( @report , :comments ) && length ( @report . comments ) > 0 do % >
2020-08-10 14:57:26 +00:00
< % = gettext " Comments " % >
< % = for comment <- @report . comments do % >
< % = comment . text % >
< % end % >
2019-09-24 10:09:43 +00:00
< % end % >
< % = if @report . content do % >
2020-08-10 14:57:26 +00:00
< % = gettext " Reason " % >
< % = @report . content % >
2019-09-24 10:09:43 +00:00
< % end % >
2021-09-10 09:27:59 +00:00
< % = gettext " View report: " % > < % = Routes . page_url ( Mobilizon.Web.Endpoint , :moderation_report , @report . id ) % >