<%= t(".title") %>

<%= link_to moderated_users_path(blocked: false), class: "btn btn-small" do %> <%= t("decidim.admin.moderated_users.tabs.unblocked") %> <% end %> | <%= link_to moderated_users_path(blocked: true), class: "btn btn-small" do %> <%= t("decidim.admin.moderated_users.tabs.blocked") %> <% end %>

<%= admin_filter_selector(:moderated_users) %>
<% @moderated_users.each do |moderation| %> <% if moderation.user.nickname.present? %> <% else %> <% end %> <% end %>
<%= t(".name") %> <%= t(".nickname") %> <%= t(".reason") %> <%= sort_link(query, :report_count, t(".reports"), default_order: :desc) %> <%= t(".actions.title") %>
<%= link_to moderation.user.name, decidim.profile_path(moderation.user.nickname) %> <%= link_to moderation.user.nickname, decidim.profile_path(moderation.user.nickname) %><%= moderation.user.name %> <%= moderation.user.nickname %> <%#= 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 %>
<%= paginate @moderated_users, theme: "decidim" %>