app/views/admin/users/_table.html.slim in ab_admin-0.7.0 vs app/views/admin/users/_table.html.slim in ab_admin-0.8.0
- old
+ new
@@ -3,10 +3,11 @@
tr.pjax_links
= batch_action_toggle
th= list_sort_link(:id)
th.actions_panel
th= list_sort_link(:email)
+ th
th= ha :avatar
th= list_sort_link(:user_role_id)
th= list_sort_link(:first_name)
th= list_sort_link(:last_name)
th= list_sort_link(:phone)
@@ -21,9 +22,14 @@
- if item.active?
= link_to t('admin.actions.suspend.link'), suspend_admin_user_path(item), method: :post, class: 'btn btn-warning'
- else
= link_to icon('ok', true), activate_admin_user_path(item), method: :post, class: 'btn btn-success', title: t('admin.actions.activate.link')
td= mail_to item.email
+ td
+ - if item.active?
+ .label.label-success= t 'admin.user.state.active'
+ - else
+ .label.label-danger= t 'admin.user.state.suspended'
td= item_image_link(item, assoc: :avatar)
td= item.user_role_type.try(:title)
td= item.first_name
td= item.last_name
td= item.phone
\ No newline at end of file