foodsoft/app/views/admin/users/_users.html.haml

32 lines
1 KiB
Text
Raw Normal View History

2009-01-06 11:49:19 +01:00
%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
2009-01-06 11:49:19 +01:00
%th{:style => "width:3em"}
%tbody
- for user in @users
2009-01-06 11:49:19 +01:00
%tr{:class => cycle('even','odd', :name => 'users')}
%td= link_to user.nick, [:admin, user]
%td=h user.name
2009-01-06 11:49:19 +01:00
%td=h user.email
%td=h format_roles(user)
%td=h format_time(user.last_login)
2009-01-06 11:49:19 +01:00
%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))
2009-01-06 11:49:19 +01:00
= 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) |