2015-05-10 13:36:29 +03:00
|
|
|
.row
|
|
|
|
.col-lg-12
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
h2.panel-title= User.model_name.human(count: 2).mb_chars.capitalize
|
|
|
|
.panel-body
|
|
|
|
table.table.table-striped.table-hover.record-table#conferences
|
|
|
|
thead
|
|
|
|
tr
|
2015-05-25 11:41:11 +03:00
|
|
|
th = User.human_attribute_name :picture
|
2015-05-10 13:36:29 +03:00
|
|
|
th = User.human_attribute_name :title
|
|
|
|
th = User.human_attribute_name :admin
|
|
|
|
th.actions
|
|
|
|
tbody
|
|
|
|
- @users.each do |user|
|
|
|
|
tr
|
2015-05-25 11:41:11 +03:00
|
|
|
td= image_tag(user.profile_picture.thumb.url)
|
2015-05-10 13:36:29 +03:00
|
|
|
td= user.name
|
|
|
|
td.boolean-col
|
|
|
|
- if user.admin?
|
|
|
|
= icon 'check-square-o'
|
|
|
|
- else
|
|
|
|
= icon 'minus-square-o'
|
|
|
|
|
|
|
|
td.actions
|
|
|
|
div.btn-group.btn-group-sm
|
|
|
|
= link_to management_user_path(user), title: t('actions.view.button', model: User.model_name.human), class: 'btn btn-info'
|
|
|
|
= icon :eye
|
|
|
|
= link_to edit_management_user_path(user), title: t('actions.edit.button', model: User.model_name.human), class: 'btn btn-primary'
|
|
|
|
= icon :edit
|
2015-05-25 11:29:22 +03:00
|
|
|
= link_to management_user_path(user), title: t('actions.destroy.button', model: User.model_name.human), class: ['btn', 'btn-danger'], method: :delete, data: {confirm: t('actions.are_you_sure')}
|
2015-05-10 13:36:29 +03:00
|
|
|
= icon :trash
|