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

31 lines
825 B
Plaintext
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"}
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
%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
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