23 lines
753 B
Text
23 lines
753 B
Text
- if User.count > 20
|
|
= items_per_page
|
|
= pagination_links_remote @users
|
|
%table.table.table-striped
|
|
%thead
|
|
%tr
|
|
%th= t '.login'
|
|
%th= t '.name'
|
|
%th= t '.email'
|
|
%th= t 'admin.access_to'
|
|
%th= t '.last_login'
|
|
%th(colspan="2")= t 'admin.actions'
|
|
%tbody
|
|
- for user in @users
|
|
%tr
|
|
%td= link_to user.nick, [:admin, user]
|
|
%td= user.name
|
|
%td= user.email
|
|
%td= format_roles(user)
|
|
%td= format_time(user.last_login)
|
|
%td= link_to t('admin.edit'), edit_admin_user_path(user), class: 'btn btn-mini'
|
|
%td= link_to t('admin.delete'), [:admin, user], :confirm => t('admin.confirm', name: user.name),
|
|
:method => :delete, class: 'btn btn-danger btn-mini'
|