2009-01-06 11:49:19 +01:00
|
|
|
%p
|
|
|
|
%table{:style => "width:100%"}
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= pagination_links_remote @users
|
|
|
|
%td{:style => "text-align:right"}
|
2011-06-09 22:03:27 +02:00
|
|
|
- if @users.size > 20
|
2009-01-06 11:49:19 +01:00
|
|
|
= items_per_page
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
2009-02-02 16:35:43 +01:00
|
|
|
%th Login
|
|
|
|
%th Name
|
|
|
|
%th Email
|
|
|
|
%th Zugriff auf
|
|
|
|
%th Letzter login
|
2009-01-06 11:49:19 +01:00
|
|
|
%th{:style => "width:3em"}
|
|
|
|
%tbody
|
|
|
|
- for user in @users
|
2009-02-02 16:35:43 +01:00
|
|
|
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr{:class => cycle('even','odd', :name => 'users')}
|
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
|
2011-06-09 22:03:27 +02:00
|
|
|
= link_to icon(:edit), edit_admin_user_path(user)
|
|
|
|
= link_to icon(:delete), [:admin, user], :confirm => "Willst du #{user.name} wirklich löschen?",
|
|
|
|
:method => :delete
|