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
|
2009-02-02 16:35:43 +01:00
|
|
|
%th Login
|
|
|
|
%th Name
|
|
|
|
%th Email
|
|
|
|
%th Zugriff auf
|
|
|
|
%th Letzter login
|
2012-10-15 21:19:17 +02:00
|
|
|
%th Aktionen
|
2009-01-06 11:49:19 +01:00
|
|
|
%tbody
|
|
|
|
- for user in @users
|
2012-10-15 21:19:17 +02:00
|
|
|
%tr
|
2009-01-12 18:26:09 +01:00
|
|
|
%td= link_to user.nick, [:admin, user]
|
2009-02-02 16:35:43 +01:00
|
|
|
%td=h user.name
|
2009-01-06 11:49:19 +01:00
|
|
|
%td=h user.email
|
2009-02-02 16:35:43 +01:00
|
|
|
%td=h format_roles(user)
|
2009-01-12 18:26:09 +01:00
|
|
|
%td=h format_time(user.last_login)
|
2009-01-06 11:49:19 +01:00
|
|
|
%td
|
2012-10-15 21:19:17 +02:00
|
|
|
= link_to 'Bearbeiten', edit_admin_user_path(user), class: 'btn btn-mini'
|
|
|
|
= link_to 'Löschen', [:admin, user], :confirm => "Willst du #{user.name} wirklich löschen?",
|
|
|
|
:method => :delete, class: 'btn btn-danger btn-mini'
|