2014-09-17 14:23:36 +03:00
|
|
|
tr id="user-#{user.id}"
|
2014-09-17 19:11:35 +03:00
|
|
|
td.picture
|
2014-09-17 18:27:21 +03:00
|
|
|
- if user.speaker_profile.present?
|
|
|
|
= image_tag user.speaker_profile.picture.thumb.url, class: 'img-thumbnail'
|
|
|
|
- else
|
|
|
|
.picture-placeholder
|
|
|
|
= glyph(:user)
|
2014-09-17 14:23:36 +03:00
|
|
|
td = user.email
|
|
|
|
td = user.speaker_profile.try(:first_name) or '-'
|
|
|
|
td = user.speaker_profile.try(:last_name) or '-'
|
2014-09-17 19:11:35 +03:00
|
|
|
td.admin
|
2014-09-17 14:23:36 +03:00
|
|
|
- if user.admin?
|
|
|
|
span.toggle
|
|
|
|
= link_to glyph(:check), toggle_admin_management_user_path(user), remote: true, method: :post, data: {confirm: t(:are_you_sure)}, class: 'checked'
|
|
|
|
- else
|
|
|
|
span.toggle
|
|
|
|
= link_to glyph(:unchecked), toggle_admin_management_user_path(user), remote: true, method: :post, data: {confirm: t(:are_you_sure)}, class: 'unchecked'
|
2014-09-17 19:11:35 +03:00
|
|
|
td.actions
|
|
|
|
div
|
2014-09-17 17:48:46 +03:00
|
|
|
= link_to management_user_path(user), title: t(:view), remote: true, disabled: user.speaker_profile.blank?
|
2014-09-17 14:23:36 +03:00
|
|
|
= glyph(:share)
|
|
|
|
= link_to edit_management_user_path(user), title: t(:edit)
|
|
|
|
= glyph(:edit)
|