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
|
2016-10-09 05:20:46 +03:00
|
|
|
.col-lg-12
|
|
|
|
h1.page-header
|
|
|
|
= PersonalProfile.model_name.human.mb_chars.capitalize
|
2015-05-10 13:36:29 +03:00
|
|
|
|
2016-10-09 05:20:46 +03:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
|
|
|
.media
|
|
|
|
.media-left.hidden-sm.hidden-xs
|
|
|
|
= image_tag @profile.picture.medium.url, class: "profile-image"
|
|
|
|
.media-body
|
|
|
|
.text-center.visible-sm.visible-xs
|
|
|
|
= image_tag @profile.picture.medium.url, class: "profile-image img-thumbnail"
|
|
|
|
h4.media-heading
|
|
|
|
= @profile.name
|
|
|
|
hr
|
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
|
2016-10-09 05:20:46 +03:00
|
|
|
h4 = t '.contacts'
|
|
|
|
- if @profile.organisation.present?
|
|
|
|
p = icon :briefcase, @profile.organisation
|
2015-05-30 18:53:14 +03:00
|
|
|
- if @profile.twitter.present?
|
2016-10-09 05:20:46 +03:00
|
|
|
p = icon :twitter, "@#{@profile.twitter}"
|
|
|
|
- if @profile.github.present?
|
|
|
|
p = icon :github, @profile.github
|
2015-05-30 18:53:14 +03:00
|
|
|
- if @profile.public_email.present?
|
2016-10-09 05:20:46 +03:00
|
|
|
p = icon :envelope, "#{@profile.public_email} (#{PersonalProfile.human_attribute_name(:public_email).mb_chars.downcase})"
|
|
|
|
p = icon :envelope, "#{@user.email} (#{User.human_attribute_name(:email).mb_chars.downcase})"
|
|
|
|
|
|
|
|
- if @user.events_participated_in.any?
|
|
|
|
h4 = t '.event_propositions'
|
|
|
|
table.table.table-striped.table-hover.record-table
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th
|
|
|
|
= Event.human_attribute_name :title
|
|
|
|
th
|
|
|
|
= Event.human_attribute_name :conference
|
|
|
|
th
|
|
|
|
= Event.human_attribute_name :status
|
|
|
|
th
|
|
|
|
|
|
|
|
tbody
|
|
|
|
- @user.events_participated_in.order(created_at: :desc).each do |event|
|
|
|
|
tr
|
|
|
|
td = event.title
|
|
|
|
td = event.conference.title
|
|
|
|
td
|
|
|
|
span class="label label-lg label-#{proposition_status_class(event.status)}"
|
|
|
|
= icon(proposition_status_glyph(event.status), t("activerecord.attributes.proposition.statuses.#{event.status}"))
|
|
|
|
|
|
|
|
td.actions
|
|
|
|
.btn-group.btn-group-sm
|
|
|
|
= action_buttons event.conference, event, [:show]
|
|
|
|
|
|
|
|
|
|
|
|
.panel-footer
|
|
|
|
.text-right
|
|
|
|
.btn-group.btn-group-sm
|
|
|
|
= action_buttons @conference, @profile, [:edit, :destroy]
|