clarion/app/views/management/users/_about_user.html.slim
2014-09-30 13:34:09 +03:00

42 lines
1.8 KiB
Plaintext

.model-details id="about-user-#{@user.id}" tabindex="-1" role="dialog" aria-hidden="true"
.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"
h3.media-heading
= @user.speaker_profile.name
- if @user.speaker_profile.organisation.present?
div
=> fa_icon(:briefcase)
= @user.speaker_profile.organisation
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
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)})
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)