39 lines
1.5 KiB
Plaintext
39 lines
1.5 KiB
Plaintext
- model_class = User
|
|
div class="page-header"= title :index, model_class
|
|
table class="table table-striped"
|
|
thead
|
|
tr
|
|
th= model_class.human_attribute_name(:email)
|
|
th= model_class.human_attribute_name(:encrypted_password)
|
|
th= model_class.human_attribute_name(:remember_token)
|
|
th= model_class.human_attribute_name(:remember_created_at)
|
|
th= model_class.human_attribute_name(:reset_password_token)
|
|
th= model_class.human_attribute_name(:sign_in_count)
|
|
th= model_class.human_attribute_name(:current_sign_in_at)
|
|
th= model_class.human_attribute_name(:last_sign_in_at)
|
|
th= model_class.human_attribute_name(:current_sign_in_ip)
|
|
th= model_class.human_attribute_name(:last_sign_in_ip)
|
|
th= model_class.human_attribute_name(:created_at)
|
|
th=t 'helpers.actions'
|
|
tbody
|
|
- @users.each do |user|
|
|
tr
|
|
td= link_to user.email, user
|
|
td= user.encrypted_password
|
|
td= user.remember_token
|
|
td= user.remember_created_at
|
|
td= user.reset_password_token
|
|
td= user.sign_in_count
|
|
td= user.current_sign_in_at
|
|
td= user.last_sign_in_at
|
|
td= user.current_sign_in_ip
|
|
td= user.last_sign_in_ip
|
|
td=l user.created_at, format: :short
|
|
td
|
|
= link_to t('helpers.links.edit'), [:edit, user], class: 'btn btn-mini'
|
|
'
|
|
= link_to t("helpers.links.destroy"), user, method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-mini btn-danger'
|
|
|
|
= link_to t("helpers.links.new"), new_user_path, class: 'btn btn-primary'
|
|
|