2016-03-04 19:03:52 +01:00
|
|
|
- if User.undeleted.count > 20
|
2012-10-15 21:19:17 +02:00
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @users
|
|
|
|
%table.table.table-striped
|
2009-01-06 11:49:19 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-09-20 22:40:13 +02:00
|
|
|
- if FoodsoftConfig[:use_nick]
|
2013-12-12 00:13:19 +01:00
|
|
|
%th= heading_helper User, :nick
|
|
|
|
%th= heading_helper User, :name
|
|
|
|
%th= heading_helper User, :email
|
2013-02-03 19:38:18 +01:00
|
|
|
%th= t 'admin.access_to'
|
2015-03-03 14:55:30 +01:00
|
|
|
%th= heading_helper User, :last_activity
|
2013-12-12 00:13:19 +01:00
|
|
|
%th(colspan="2")= t 'ui.actions'
|
2009-01-06 11:49:19 +01:00
|
|
|
%tbody
|
2015-03-03 14:55:30 +01:00
|
|
|
- for user in @users
|
2012-10-15 21:19:17 +02:00
|
|
|
%tr
|
2013-10-29 18:58:04 +01:00
|
|
|
%td= link_to show_user(user), [:admin, user]
|
2013-09-20 22:40:13 +02:00
|
|
|
- if FoodsoftConfig[:use_nick]
|
|
|
|
%td= user.name
|
2017-08-18 09:17:19 +02:00
|
|
|
%td
|
|
|
|
= user.email
|
|
|
|
- if user.mail_delivery_status.any?
|
|
|
|
= link_to t('.show_email_problems'), admin_mail_delivery_status_index_path(email: user.email), class: 'btn btn-warning btn-mini'
|
2015-04-03 17:02:55 +02:00
|
|
|
%td= format_roles(user, true)
|
2015-03-03 14:55:30 +01:00
|
|
|
%td= format_time(user.last_activity)
|
2013-04-04 02:49:52 +02:00
|
|
|
%td= link_to t('ui.edit'), edit_admin_user_path(user), class: 'btn btn-mini'
|
2016-03-04 19:03:52 +01:00
|
|
|
%td
|
|
|
|
- if user.deleted?
|
|
|
|
= link_to t('ui.restore'), restore_admin_user_path(user), :data => {:confirm => t('ui.confirm_restore', name: user.name)},
|
|
|
|
:method => :post, class: 'btn btn-success btn-mini'
|
|
|
|
- else
|
2016-03-04 20:10:11 +01:00
|
|
|
= link_to t('ui.delete'), [:admin, user], :data => {:confirm => t('ui.confirm_delete', name: user.name)},
|
2016-03-04 19:03:52 +01:00
|
|
|
:method => :delete, class: 'btn btn-danger btn-mini'
|