<% if moderation.user.nickname.present? %>
<%= link_to moderation.user.name, decidim.profile_path(moderation.user.nickname) %> |
<%= link_to moderation.user.nickname, decidim.profile_path(moderation.user.nickname) %> |
<% else %>
<%= moderation.user.name %> |
<%= moderation.user.nickname %> |
<% end %>
<%#= moderation.reason %>
<% reports = moderation.reports.map { |report| render "report", report: report } %>
<%= safe_join(reports, ",") %>
|
<%= moderation.report_count %>
|
<% if !moderation.user.blocked? && allowed_to?(:unreport, :moderate_users) %>
<%= icon_link_to "action-undo", ignore_moderated_user_path(id: moderation), t(".actions.unreport"), class: "action-icon--unreport", method: :put %>
<% end %>
<% if allowed_to?(:block, :moderate_users) %>
<% if moderation.user.blocked? %>
<%= icon_link_to "ban", user_block_path(user_id: moderation.user.id), t(".actions.unblock"), class: "action-icon action-icon--disabled", method: :delete %>
<% else %>
<%= icon_link_to "ban", new_user_block_path(user_id: moderation.user.id), t(".actions.block"), class: "action-icon action-icon" %>
<% end %>
<% end %>
|
<% end %>