2013-11-24 16:11:44 +01:00
|
|
|
%h1= User.model_name.human.pluralize
|
2013-11-14 10:54:09 +01:00
|
|
|
|
2019-05-09 17:49:01 +02:00
|
|
|
%table.list
|
2013-11-14 10:54:09 +01:00
|
|
|
%tr
|
2013-11-24 16:11:44 +01:00
|
|
|
%th= User.human_attribute_name :login
|
|
|
|
%th= User.human_attribute_name :email
|
|
|
|
%th= User.human_attribute_name :firstname
|
2019-05-09 17:49:01 +02:00
|
|
|
%th= User.human_attribute_name :lastname
|
2013-11-14 10:54:09 +01:00
|
|
|
%th
|
|
|
|
|
|
|
|
- @users.each do |user|
|
2019-05-09 17:49:01 +02:00
|
|
|
%tr{ class: cycle('odd', 'even') }
|
2013-11-14 10:54:09 +01:00
|
|
|
%td= user.login
|
|
|
|
%td= user.email
|
|
|
|
%td= user.firstname
|
2019-05-09 17:49:01 +02:00
|
|
|
%td= user.lastname
|
2013-11-24 16:11:44 +01:00
|
|
|
%td
|
2019-05-09 17:49:01 +02:00
|
|
|
= link_to user, class: 'view_link' do
|
|
|
|
%em.fa.fa-eye
|
2013-11-24 16:11:44 +01:00
|
|
|
= link_to t('edit'), edit_user_path(user), class: 'edit_link'
|
|
|
|
= link_to t('destroy'), user, method: :delete,
|
|
|
|
data: { confirm: 'Are you sure?' }, class: 'delete_link'
|
2013-11-14 10:54:09 +01:00
|
|
|
|
2019-05-09 17:49:01 +02:00
|
|
|
.actions= link_to 'New User', new_user_path
|