<%= moderation.reportable.class.name.demodulize %>
|
<%=
link_to moderation.reportable.reported_content_url, target: "_blank" do
(moderation.reportable.reported_content_url + " " + icon("external-link")).html_safe
end
%>
|
<% reports = moderation.reports.map { |report| render 'report', report: report } %>
<%= safe_join(reports, ',') %>
|
<%= moderation.report_count %>
|
<% if params[:hidden] %>
<%= l(moderation.hidden_at, format: :long) if moderation.hidden_at.present? %>
|
<% end %>
<% if can? :unreport, moderation %>
<%= icon_link_to "action-undo",
unreport_moderation_path(id: moderation),
t("actions.unreport", scope: "decidim.moderations"),
class: "action-icon--unreport",
method: :put %>
<% end %>
<% if !moderation.reportable.hidden? && can?(:hide, moderation) %>
<%= icon_link_to "eye",
hide_moderation_path(id: moderation),
t("actions.hide", scope: "decidim.moderations"),
class: "action-icon--hide",
method: :put %>
<% end %>
|
<% end %>