<%= t "decidim.admin.titles.users" %> <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.user.name", scope: "decidim.admin")), ['new', 'user'], class: 'button tiny button--title' %>

<% @users.each do |user| %> <% end %>
<%= t("models.user.fields.role", scope: "decidim.admin") %> <%= t("models.user.fields.name", scope: "decidim.admin") %> <%= t("models.user.fields.email", scope: "decidim.admin") %> <%= t("models.user.fields.invitation_sent_at", scope: "decidim.admin") %> <%= t("models.user.fields.invitation_accepted_at", scope: "decidim.admin") %> <%= t("models.user.fields.last_sign_in_at", scope: "decidim.admin") %> <%= t("models.user.fields.created_at", scope: "decidim.admin") %>
<%= t(user.active_role, scope: "decidim.admin.models.user.fields.roles") %> <%= user.name %> <%= user.email %> <% if user.invitation_sent_at %> <%= l user.invitation_sent_at, format: :short %> <% end %> <% if user.invitation_accepted_at %> <%= l user.invitation_accepted_at, format: :short %> <% end %> <% if user.last_sign_in_at %> <%= l user.last_sign_in_at, format: :short %> <% end %> <%= l user.created_at, format: :short %> <% if can?(:invite, user) && user.invited_to_sign_up? %> <%= icon_link_to "reload", ['resend_invitation', user], t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %> <% end %> <% if can? :destroy, user %> <%= icon_link_to "circle-x", user, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>
<%= paginate @users, theme: "decidim" %>