<%= link_to "#{t("title", scope: "decidim.admin.moderations.index")} > ", moderations_path %> <%= link_to "#{t("title", scope: "decidim.admin.moderations.reports.index")} > ", moderation_reports_path %> <%= t(".title") %>

<%= t(".report_language") %>
<%= locale_name @report.locale %>
<% if translatable_resource?(moderation.reportable) %>
<%= t("content_original_language", scope: "decidim.admin.moderations.reports.index") %>
<%= locale_name moderation.reportable.content_original_language %>
<% end %>
<%= t("reported_content", scope: "decidim.admin.moderations.reports.index") %> <% if translatable_resource?(moderation.reportable) %> <% end %>
<%= reported_content_for moderation.reportable, locale: @report.locale %>
<% if translatable_resource?(moderation.reportable) %>
<%= reported_content_for moderation.reportable, locale: moderation.reportable.content_original_language %>
<% end %>
<%= t(".report_reason") %>
<%= t("decidim.admin.moderations.report.reasons.#{@report.reason}") %>
<%= t(".report_details") %>
<%= @report.details %>
<% if !moderation.reportable.hidden? && allowed_to?(:unreport, permission_resource) %> <%= link_to t("actions.unreport", scope: "decidim.moderations"), unreport_moderation_path(id: moderation), method: :put, class: "button" %> <% end %> <% if !moderation.reportable.hidden? && allowed_to?(:hide, permission_resource) %> <%= link_to t("actions.hide", scope: "decidim.moderations"), hide_moderation_path(id: moderation), method: :put, class: "button alert" %> <% end %> <% if moderation.reportable.hidden? && allowed_to?(:unhide, permission_resource) %> <%= link_to t("actions.unhide", scope: "decidim.moderations"), unhide_moderation_path(id: moderation), method: :put, class: "button alert" %> <% end %>