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