clarion/app/views/management/events/_speaker.slim
2015-10-15 20:06:46 +03:00

27 lines
1.1 KiB
Plaintext

- personal_profile = speaker.personal_profile(@conference) || speaker.personal_profiles.last
- if personal_profile.present?
.speaker-profile
.panel.panel-default
.panel-heading
h1.panel-title
= personal_profile.name
= link_to icon(:edit), [:edit, :management, @conference, personal_profile], class: 'btn btn-xs btn-danger pull-right'
.panel-body
.center
= image_tag personal_profile.picture.medium.url, class: "profile-image"
hr
- if personal_profile.organisation.present?
p #{icon :briefcase} @#{personal_profile.organisation}
h4 = PersonalProfile.human_attribute_name(:biography)
= simple_format personal_profile.biography
h4 = t :contacts
- if personal_profile.twitter.present?
p #{icon :twitter} @#{personal_profile.twitter}
- if personal_profile.public_email.present?
p #{icon :envelope} #{personal_profile.public_email} (#{t(:public)})
p #{icon :envelope} #{speaker.email} (#{t(:private)})
p #{glyph :phone} #{Phony.format(personal_profile.mobile_phone, format: :international)}