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

40 lines
1.5 KiB
Plaintext
Raw Normal View History

2015-05-10 13:36:29 +03:00
- content_for :title
= @user.name
.row
2015-05-30 16:26:48 +03:00
.speaker-profile
.panel.panel-default
.panel-heading
h1.panel-title
= @user.name
= link_to icon(:edit), edit_management_user_path(@user), class: 'btn btn-xs btn-danger pull-right'
.panel-body
.center
= image_tag @user.speaker_profile.picture.medium.url, class: "profile-image"
- if @user.speaker_profile.organisation.present?
div
=> icon :briefcase
= @user.speaker_profile.organisation
div.social
= link_to "mailto://#{@user.email}"
= icon :envelope
- if @user.speaker_profile.github.present?
= link_to "https://github.com/#{@user.speaker_profile.github}"
= icon :github
- if @user.speaker_profile.twitter.present?
= link_to "https://twitter.com/#{@user.speaker_profile.twitter}"
= icon :twitter
2015-05-30 16:26:48 +03:00
hr
2015-05-10 13:36:29 +03:00
2015-05-30 16:26:48 +03:00
h4 = SpeakerProfile.human_attribute_name(:biography)
= simple_format @user.speaker_profile.biography
h4 = t :contacts
- if @user.speaker_profile.twitter.present?
p #{icon :twitter} @#{@user.speaker_profile.twitter}
- if @user.speaker_profile.public_email.present?
p #{icon :envelope} #{@user.speaker_profile.public_email} (#{t(:public)})
p #{icon :envelope} #{@user.email} (#{t(:private)})
p #{glyph :phone} #{Phony.format(@user.speaker_profile.mobile_phone, format: :international)}