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

23 lines
711 B
Text

- if User.count > 20
= items_per_page
= pagination_links_remote @users
%table.table.table-striped
%thead
%tr
%th Login
%th Name
%th Email
%th Zugriff auf
%th Letzter login
%th(colspan="2") Aktionen
%tbody
- for user in @users
%tr
%td= link_to user.nick, [:admin, user]
%td= user.name
%td= user.email
%td= format_roles(user)
%td= format_time(user.last_login)
%td= link_to 'Bearbeiten', edit_admin_user_path(user), class: 'btn btn-mini'
%td= link_to 'Löschen', [:admin, user], :confirm => "Willst du #{user.name} wirklich löschen?",
:method => :delete, class: 'btn btn-danger btn-mini'