% admin_breadcrumb(plural_resource_name(Spree::LegacyUser)) %> <% content_for :page_actions do %> <% if can?(:admin, Spree.user_class) && can?(:create, Spree.user_class) %>
<%= sort_link @search, :email, Spree.user_class.human_attribute_name(:email), {}, {title: 'users_email_title'} %> | <%= Spree.user_class.human_attribute_name(:spree_roles) %> | <%= t('spree.num_orders') %> | <%= Spree.user_class.human_attribute_name(:lifetime_value) %> | <%= sort_link @search, :created_at, t('spree.member_since') %> | |
---|---|---|---|---|---|
<%=link_to user.email, edit_admin_user_url(user) %> | <%= user.spree_roles.map(&:name).to_sentence %> | <%= link_to user.order_count, spree.orders_admin_user_path(user) %> | <%= link_to user.display_lifetime_value, spree.items_admin_user_path(user) %> | <%= l user.created_at.to_date %> | <% if can?(:edit, user) %> <%= link_to_edit user, no_text: true %> <% end %> <% if can?(:destroy, user) && user.orders.count.zero? %> <%= link_to_delete user, no_text: true %> <% end %> |