58 lines
2.3 KiB
Plaintext
58 lines
2.3 KiB
Plaintext
- content_for :title
|
|
= Conference.human_attribute_name(:participants).mb_chars.capitalize
|
|
|
|
.row
|
|
.col-lg-12
|
|
h1.page-header
|
|
= Conference.human_attribute_name(:participants).mb_chars.capitalize
|
|
small<
|
|
| (
|
|
= t '.total', current: @users.count, total: current_conference.participants.count
|
|
=< User.model_name.human(count: current_conference.participants.count).mb_chars.downcase
|
|
| )
|
|
|
|
.row
|
|
.col-lg-12
|
|
.panel.panel-default
|
|
table.table.table-striped.table-hover.record-table#profiles
|
|
thead
|
|
tr
|
|
th = PersonalProfile.model_name.human
|
|
th.actions
|
|
tbody
|
|
- @users.each do |user|
|
|
- profile = user.personal_profile(@conference)
|
|
tr
|
|
td
|
|
.media
|
|
.media-left
|
|
- if profile.present?
|
|
= image_tag(profile.picture.thumb.url)
|
|
- else
|
|
= image_tag(PictureUploader.new.thumb.url)
|
|
|
|
.media-body
|
|
h4.media-heading
|
|
- if profile.try(:name).present?
|
|
= profile.name
|
|
- else
|
|
= user.email
|
|
p
|
|
- if profile.present?
|
|
- if profile.public_email.present?
|
|
= icon :envelope, "#{profile.public_email} (#{PersonalProfile.human_attribute_name(:public_email).mb_chars.downcase})"
|
|
br
|
|
= icon :envelope, "#{user.email} (#{User.human_attribute_name(:email).mb_chars.downcase})"
|
|
- else
|
|
= t '.no_profile'
|
|
td.actions
|
|
div.btn-group.btn-group-sm
|
|
- if profile.present?
|
|
= action_buttons(@conference, profile, [:show, :edit, :destroy])
|
|
- else
|
|
= link_to [:new, :management, @conference, :personal_profile, {user_id: user.id}], class: ['btn', 'btn-primary'], title: t('actions.create.title', model: PersonalProfile.model_name.human) do
|
|
=> icon('user-plus')
|
|
.panel-footer.text-right
|
|
= link_to management_conference_personal_profiles_path(current_conference, format: 'csv'), class: 'btn btn-info'
|
|
= icon :download, t('.export')
|