<%= t("models.user.fields.roles.#{user.active_role}", scope: "decidim.admin") %> |
<%= 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 allowed_to?(:invite, :admin_user, user: 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 allowed_to? :destroy, :admin_user, user: 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 %>
|
<% end %>