2015-05-14 00:02:19 +02:00
|
|
|
- provide(:title, user_title(@user))
|
2015-05-08 18:07:09 +02:00
|
|
|
- no_header = unless @user.profile_header.exists? then "profile--no-header" else "" end
|
2015-05-16 00:39:33 +02:00
|
|
|
#profile--header{class: no_header}
|
2015-05-08 18:04:58 +02:00
|
|
|
%img.profile--header-img{src: @user.profile_header.url(:web)}
|
2015-05-08 18:07:09 +02:00
|
|
|
.container.j2-page.headerable{class: no_header}
|
2020-04-19 23:12:23 +02:00
|
|
|
.row
|
|
|
|
#profile-info.col-md-3.col-xs-12.col-sm-4.j2-col-reset
|
|
|
|
= render 'user/profile_info'
|
|
|
|
.hidden-xs= render 'shared/links'
|
|
|
|
.col-md-9.col-xs-12.col-sm-8.j2-col-reset
|
|
|
|
.profile--panel-push-inner.hidden-xs{class: no_header}
|
|
|
|
= render 'shared/questionbox'
|
|
|
|
- unless @user.banned?
|
|
|
|
#answers
|
|
|
|
- @answers.each do |a|
|
|
|
|
= render 'shared/answerbox', a: a
|
2014-12-08 15:23:04 +01:00
|
|
|
|
2020-04-20 23:03:57 +02:00
|
|
|
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id
|
2014-12-08 15:23:04 +01:00
|
|
|
|
2020-04-20 23:03:57 +02:00
|
|
|
- if @more_data_available
|
|
|
|
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @answers_last_id }}
|
2015-06-07 15:10:17 +02:00
|
|
|
= t 'views.actions.load'
|
2014-11-24 17:52:58 +01:00
|
|
|
.visible-xs= render 'shared/links'
|
2015-01-14 07:07:40 +01:00
|
|
|
- if user_signed_in?
|
2020-04-25 15:16:45 +02:00
|
|
|
= render 'modal/group'
|
2015-02-03 17:13:50 +01:00
|
|
|
- if current_user.mod? and @user != current_user
|
2020-04-25 15:16:45 +02:00
|
|
|
= render 'modal/privileges'
|
|
|
|
= render 'modal/ban'
|