2014-09-30 13:34:09 +03:00
|
|
|
.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
|
2014-09-17 19:57:32 +03:00
|
|
|
= 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
|
|
|
|
=> fa_icon(:briefcase)
|
|
|
|
= @user.speaker_profile.organisation
|
2014-09-17 17:48:46 +03:00
|
|
|
div.social
|
|
|
|
= link_to "mailto://#{@user.email}"
|
|
|
|
= fa_icon :envelope
|
|
|
|
- if @user.speaker_profile.github.present?
|
|
|
|
= link_to "https://github.com/#{@user.speaker_profile.github}"
|
|
|
|
= fa_icon :github
|
|
|
|
- if @user.speaker_profile.twitter.present?
|
|
|
|
= link_to "https://twitter.com/#{@user.speaker_profile.twitter}"
|
|
|
|
= fa_icon :twitter
|
|
|
|
|
|
|
|
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?
|
|
|
|
p #{fa_icon(:twitter)} @#{@user.speaker_profile.twitter}
|
|
|
|
- if @user.speaker_profile.public_email.present?
|
|
|
|
p #{fa_icon(:envelope)} #{@user.speaker_profile.public_email} (#{t(:public)})
|
|
|
|
p #{fa_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)
|