2012-10-15 21:19:17 +02:00
|
|
|
- if User.count > 20
|
|
|
|
= 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]
|
|
|
|
%th= t '.login'
|
2013-02-03 19:38:18 +01:00
|
|
|
%th= t '.name'
|
|
|
|
%th= t '.email'
|
|
|
|
%th= t 'admin.access_to'
|
|
|
|
%th= t '.last_login'
|
|
|
|
%th(colspan="2")= t 'admin.actions'
|
2009-01-06 11:49:19 +01:00
|
|
|
%tbody
|
|
|
|
- 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
|
2012-11-12 13:13:01 +01:00
|
|
|
%td= user.email
|
|
|
|
%td= format_roles(user)
|
|
|
|
%td= format_time(user.last_login)
|
2013-04-04 02:49:52 +02:00
|
|
|
%td= link_to t('ui.edit'), edit_admin_user_path(user), class: 'btn btn-mini'
|
|
|
|
%td= link_to t('ui.delete'), [:admin, user], :confirm => t('admin.confirm', name: user.name),
|
2012-10-15 21:19:17 +02:00
|
|
|
:method => :delete, class: 'btn btn-danger btn-mini'
|