clarion/app/views/management/personal_profiles/show.html.slim

80 lines
3.2 KiB
Plaintext
Raw Normal View History

2015-05-10 13:36:29 +03:00
- content_for :title
= @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
2019-04-29 21:34:03 +03:00
.row
.col-sm-5.col-md-4
.panel.panel-default
.panel-image
= image_tag @profile.picture.url
.panel-body
2015-05-10 13:36:29 +03:00
2019-04-29 21:34:03 +03:00
.media
.media-body
h4.media-heading
= @profile.name
hr
= simple_format @profile.biography
ul.list-group
2016-10-09 05:20:46 +03:00
- if @profile.organisation.present?
2019-04-29 21:34:03 +03:00
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?
2019-04-29 21:34:03 +03:00
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'
2016-10-09 05:20:46 +03:00
- if @profile.github.present?
2019-04-29 21:34:03 +03:00
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?
2019-04-29 21:34:03 +03:00
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?
2016-10-09 05:20:46 +03:00
table.table.table-striped.table-hover.record-table
thead
tr
th
= Event.human_attribute_name :title
2019-04-29 21:34:03 +03:00
th.text-center.hidden-md.hidden-sm.hidden-xs
2016-10-11 03:31:39 +03:00
= Event.human_attribute_name :rank
2019-04-29 21:34:03 +03:00
th.hidden-md.hidden-sm.hidden-xs
2016-10-09 05:20:46 +03:00
= Event.human_attribute_name :conference
2019-04-29 21:34:03 +03:00
th.hidden-md.hidden-sm.hidden-xs
2016-10-09 05:20:46 +03:00
= Event.human_attribute_name :status
th
tbody
- @user.events_participated_in.order(created_at: :desc).each do |event|
tr
td = event.title
2019-04-29 21:34:03 +03:00
td.text-center.hidden-md.hidden-sm.hidden-xs
- if event.ranked?
2016-10-11 03:31:39 +03:00
.large
.label.label-info = event.rank
2019-04-29 21:34:03 +03:00
td.hidden-md.hidden-sm.hidden-xs
= event.conference.title
td.hidden-md.hidden-sm.hidden-xs
2016-10-09 05:20:46 +03:00
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]