<%= image_or_text_avatar(account_auth.user) %> <%= account_auth.user.email %> <%= account_auth.user.full_name %> <% if account_auth.user == Current.user %> <%= account_auth.role.to_s.titleize %> <% else %> <%= bootstrap_form_with model: account_auth, local: true, layout: :inline do |form| %> <%= form.select :role, options_for_role_select, { hide_label: true, append: form.button("Change Role", class: "btn btn-success btn-sm") }, { class: "form-control custom-select" } %> <% end %> <% end %> <%= pluralize(account_auth.user.accessible_projects_for(account_auth.account).size, "Project") %> <% if policy(account_auth).destroy? && account_auth.user != Current.user %> <%= link_to t(".actions.remove"), account_auth_path(account_auth), method: :delete, data: { confirm: t(".confirm") }, class: "btn btn-light btn-sm border" %> <% end %>