80 lines
3.2 KiB
Plaintext
80 lines
3.2 KiB
Plaintext
- content_for :title
|
|
= @profile.name
|
|
|
|
.row
|
|
.col-lg-12
|
|
h1.page-header
|
|
= PersonalProfile.model_name.human.mb_chars.capitalize
|
|
.row
|
|
.col-sm-5.col-md-4
|
|
.panel.panel-default
|
|
.panel-image
|
|
= image_tag @profile.picture.url
|
|
.panel-body
|
|
|
|
.media
|
|
.media-body
|
|
h4.media-heading
|
|
= @profile.name
|
|
hr
|
|
= simple_format @profile.biography
|
|
ul.list-group
|
|
- if @profile.organisation.present?
|
|
li.list-group-item
|
|
h5.list-group-item-heading = PersonalProfile.human_attribute_name :organisation
|
|
p.list-group-item-text = @profile.organisation
|
|
- if @profile.twitter.present?
|
|
li.list-group-item
|
|
h5.list-group-item-heading = PersonalProfile.human_attribute_name :twitter
|
|
p.list-group-item-text
|
|
= link_to "@#{@profile.twitter}", "https://twitter.com/#{@profile.twitter}", target: '_blank'
|
|
- if @profile.github.present?
|
|
li.list-group-item
|
|
h5.list-group-item-heading = PersonalProfile.human_attribute_name :github
|
|
p.list-group-item-text
|
|
= link_to @profile.github, "https://github.com/#{@profile.github}", target: '_blank'
|
|
- if @profile.public_email.present?
|
|
li.list-group-item
|
|
h5.list-group-item-heading = PersonalProfile.human_attribute_name :public_email
|
|
p.list-group-item-text = @profile.public_email
|
|
li.list-group-item
|
|
h5.list-group-item-heading = t '.private_email'
|
|
p.list-group-item-text = @user.email
|
|
.panel-footer
|
|
.text-right
|
|
.btn-group.btn-group-sm
|
|
= action_buttons @conference, @profile, [:edit, :destroy]
|
|
.col-sm-7.col-md-8
|
|
h2 = t '.talk_history'
|
|
.panel.panel-default
|
|
- if @user.events_participated_in.any?
|
|
table.table.table-striped.table-hover.record-table
|
|
thead
|
|
tr
|
|
th
|
|
= Event.human_attribute_name :title
|
|
th.text-center.hidden-md.hidden-sm.hidden-xs
|
|
= Event.human_attribute_name :rank
|
|
th.hidden-md.hidden-sm.hidden-xs
|
|
= Event.human_attribute_name :conference
|
|
th.hidden-md.hidden-sm.hidden-xs
|
|
= Event.human_attribute_name :status
|
|
th
|
|
tbody
|
|
- @user.events_participated_in.order(created_at: :desc).each do |event|
|
|
tr
|
|
td = event.title
|
|
td.text-center.hidden-md.hidden-sm.hidden-xs
|
|
- if event.ranked?
|
|
.large
|
|
.label.label-info = event.rank
|
|
td.hidden-md.hidden-sm.hidden-xs
|
|
= event.conference.title
|
|
td.hidden-md.hidden-sm.hidden-xs
|
|
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]
|