clarion/app/views/management/events/_speaker.slim

27 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-10-15 20:04:01 +03:00
- personal_profile = speaker.personal_profile(@conference) || speaker.personal_profiles.last
- if personal_profile.present?
2015-10-15 19:47:53 +03:00
.speaker-profile
.panel.panel-default
.panel-heading
h1.panel-title
= personal_profile.name
2015-10-15 20:04:01 +03:00
= link_to icon(:edit), [:edit, :management, @conference, personal_profile], class: 'btn btn-xs btn-danger pull-right'
2015-10-15 19:47:53 +03:00
.panel-body
.center
= image_tag personal_profile.picture.medium.url, class: "profile-image"
hr
2015-10-15 20:04:01 +03:00
- if personal_profile.organisation.present?
p #{icon :briefcase} @#{personal_profile.organisation}
2015-10-15 19:47:53 +03:00
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)})
2015-10-15 20:04:01 +03:00
p #{glyph :phone} #{Phony.format(personal_profile.mobile_phone, format: :international)}