clarion/app/views/management/users/_about_user.html.slim

42 lines
1.7 KiB
Plaintext
Raw Normal View History

.model-details id="about-user-#{@user.id}" tabindex="-1" role="dialog" aria-hidden="true"
2014-09-17 17:48:46 +03:00
.modal-dialog
.modal-content
.modal-header
button type="button" class="close" data-dismiss="modal" aria-hidden="true"
h4.modal-title = t(:more_about_user, user: @user.speaker_profile.name)
.modal-body
.center
= image_tag @user.speaker_profile.picture.medium.url, class: "profile-image"
2014-09-17 17:48:46 +03:00
h3.media-heading
= @user.speaker_profile.name
2014-09-17 18:27:21 +03:00
- if @user.speaker_profile.organisation.present?
div
2015-04-09 00:10:04 +03:00
=> icon(:briefcase)
2014-09-17 18:27:21 +03:00
= @user.speaker_profile.organisation
2014-09-17 17:48:46 +03:00
div.social
= link_to "mailto://#{@user.email}"
2015-04-09 00:10:04 +03:00
= icon :envelope
2014-09-17 17:48:46 +03:00
- if @user.speaker_profile.github.present?
= link_to "https://github.com/#{@user.speaker_profile.github}"
2015-04-09 00:10:04 +03:00
= icon :github
2014-09-17 17:48:46 +03:00
- if @user.speaker_profile.twitter.present?
= link_to "https://twitter.com/#{@user.speaker_profile.twitter}"
2015-04-09 00:10:04 +03:00
= icon :twitter
2014-09-17 17:48:46 +03:00
hr
h5 = SpeakerProfile.human_attribute_name(:biography)
= simple_format @user.speaker_profile.biography
2014-09-17 18:27:21 +03:00
h5 = t :contacts
- if @user.speaker_profile.twitter.present?
2015-04-09 00:10:04 +03:00
p #{icon(:twitter)} @#{@user.speaker_profile.twitter}
2014-09-17 18:27:21 +03:00
- if @user.speaker_profile.public_email.present?
2015-04-09 00:10:04 +03:00
p #{icon(:envelope)} #{@user.speaker_profile.public_email} (#{t(:public)})
p #{icon(:envelope)} #{@user.email} (#{t(:private)})
2014-09-17 17:48:46 +03:00
p #{glyph(:phone)} #{Phony.format(@user.speaker_profile.mobile_phone, format: :international)}
.modal-footer
button type="button" class="btn btn-default" data-dismiss="modal"
= t(:close)