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
|
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
|
2015-05-30 18:53:14 +03:00
|
|
|
|
- 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'
|
2015-05-30 18:53:14 +03:00
|
|
|
|
- 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
|
2019-04-30 01:04:40 +03:00
|
|
|
|
.row
|
|
|
|
|
.col-md-6
|
|
|
|
|
.panel.panel-info
|
|
|
|
|
.panel-heading
|
|
|
|
|
.row
|
|
|
|
|
.col-xs-3
|
|
|
|
|
= icon 'files-o', '', class: 'fa-5x'
|
|
|
|
|
.col-xs-9.text-right
|
|
|
|
|
.huge
|
|
|
|
|
= @user.events_participated_in.size
|
|
|
|
|
div
|
|
|
|
|
= Event.model_name.human(count: @user.events_participated_in.size)
|
|
|
|
|
.col-md-6
|
|
|
|
|
.panel class="panel-#{rating_label_color(@user.average_rating || 5)}" title=human_rating(@user.average_rating)
|
|
|
|
|
.panel-heading
|
|
|
|
|
.row
|
|
|
|
|
.col-xs-3
|
|
|
|
|
= icon 'star', '', class: 'fa-5x'
|
|
|
|
|
.col-xs-9.text-right
|
|
|
|
|
.huge
|
|
|
|
|
= number_with_precision(@user.average_rating, precision: 2, strip_insignificant_zeros: true) || '–'
|
|
|
|
|
div
|
|
|
|
|
= User.human_attribute_name(:average_rating).downcase
|
|
|
|
|
|
2019-04-29 21:34:03 +03:00
|
|
|
|
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
|
2019-04-30 01:04:40 +03:00
|
|
|
|
th.main
|
2016-10-09 05:20:46 +03:00
|
|
|
|
= Event.human_attribute_name :title
|
2019-04-30 01:04:40 +03:00
|
|
|
|
th.text-center
|
|
|
|
|
= Event.human_attribute_name :rating
|
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-30 01:04:40 +03:00
|
|
|
|
td.text-center
|
|
|
|
|
- if event.rated?
|
|
|
|
|
.large
|
|
|
|
|
.label class="label-#{rating_label_color(event.average_rating)}" title=human_rating(event.average_rating)
|
|
|
|
|
= number_with_precision event.average_rating, precision: 2, strip_insignificant_zeros: true
|
2019-04-29 21:34:03 +03:00
|
|
|
|
td.text-center.hidden-md.hidden-sm.hidden-xs
|
2016-10-11 05:16:31 +03:00
|
|
|
|
- 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]
|
2019-04-30 01:04:40 +03:00
|
|
|
|
h2 = t '.comments_from_the_audience'
|
|
|
|
|
- if @user.feedbacks_with_comment.size > 0
|
|
|
|
|
.panel.panel-default
|
|
|
|
|
table.table.table-striped
|
|
|
|
|
tbody
|
|
|
|
|
= render partial: '/management/shared/feedback', collection: @user.feedbacks_with_comment.order(created_at: :desc)
|
|
|
|
|
- else
|
|
|
|
|
p = t '.no_comments_received'
|