<%= t "decidim.admin.titles.participants" %>

<%= admin_filter_selector %>
<% @users.each do |user| %> <% if user.nickname.present? %> <% else %> <% end %> <% end %>
<%= sort_link(query, :name, t(".name"), default_order: :desc) %> <%= sort_link(query, :nickname, t(".nickname"), default_order: :desc) %> <%= sort_link(query, :created_at, t(".created_at"), default_order: :desc) %> <%= sort_link(query, :officialized_at, t(".status"), default_order: :desc) %> <%= t(".badge") %> <%= sort_link(query, :user_moderation_report_count, t(".reports"), default_order: :desc) %> <%= t(".actions") %>
<%= link_to user.name, decidim.profile_path(user.nickname) %> <%= link_to user.nickname, decidim.profile_path(user.nickname) %><%= user.name %> <%= user.nickname %><%= l user.created_at, format: :short %> <%= user.officialized? ? t(".officialized") : t(".not_officialized") %> <%= translated_attribute(user.officialized_as) %> <%= user.report_count %> <% if allowed_to?(:block, :admin_user) %> <% if user.blocked? %> <%= icon_link_to "ban", user_block_path(user_id: user.id), t(".unblock"), class: "action-icon action-icon--disabled", method: :delete %> <% else %> <%= icon_link_to "ban", new_user_block_path(user_id: user.id), t(".block"), class: "action-icon action-icon" %> <% end %> <% end %> <% if allowed_to? :show_email, :user, user: user %> <%= icon_link_to "envelope-open", show_email_officialization_path(user_id: user.id), t(".show_email"), class: "action-icon action-icon--show-email", data: { full_name: user.name, toggle: "show-email-modal" } %> <% end %> <%= icon_link_to "envelope-closed", current_or_new_conversation_path_with(user), t("decidim.contact"), class:"action-icon--new" %> <% if user.officialized? %> <%= icon "circle-check", class: "action-icon action-icon--disabled", role: "img", aria_label: t(".officialize") %> <%= icon_link_to "pencil", new_officialization_path(user_id: user.id), t(".reofficialize"), class: "action-icon--new" %> <%= icon_link_to "circle-x", officialization_path(user.id), t(".unofficialize"), method: :delete, class: "action-icon--reject" %> <% else %> <%= icon_link_to "circle-check", new_officialization_path(user_id: user.id), t(".officialize"), class: "action-icon--verify" %> <%= icon "pencil", class: "action-icon action-icon--disabled", role: "img", aria_label: t(".reofficialize") %> <%= icon "circle-x", class: "action-icon action-icon--disabled", role: "img", aria_label: t(".unofficialize") %> <% end %>
<%= paginate @users, theme: "decidim" %>
<%= render "show_email_modal" %>