31 lines
1 KiB
Text
31 lines
1 KiB
Text
%p
|
|
%table{:style => "width:100%"}
|
|
%tr
|
|
%td
|
|
= pagination_links_remote @users
|
|
%td{:style => "text-align:right"}
|
|
- if @total > 20
|
|
= items_per_page
|
|
%table.list
|
|
%thead
|
|
%tr
|
|
%th Login
|
|
%th Name
|
|
%th Email
|
|
%th Zugriff auf
|
|
%th Letzter login
|
|
%th{:style => "width:3em"}
|
|
%tbody
|
|
- for user in @users
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'users')}
|
|
%td= link_to user.nick, [:admin, user]
|
|
%td=h user.name
|
|
%td=h user.email
|
|
%td=h format_roles(user)
|
|
%td=h format_time(user.last_login)
|
|
%td
|
|
= link_to(image_tag('b_edit.png', :size => "16x16", :border => "0", :alt => 'Benutzer_in bearbeiten', :title => 'Benutzer_in bearbeiten'), edit_admin_user_path(user))
|
|
= link_to(image_tag('b_drop.png', :size => "16x16", :border => "0", :alt => 'Benutzer_in löschen', :title => 'Benutzer_in löschen'), |
|
|
[:admin, user], |
|
|
:confirm => 'Willst du ' + user.name + ' wirklich löschen?', :method => :delete) |
|