29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
- provide(:title, user_title(@user))
|
|
- no_header = unless @user.profile_header.exists? then "profile--no-header" else "" end
|
|
#profile--header{class: no_header}
|
|
%img.profile--header-img{src: @user.profile_header.url(:web)}
|
|
.container.j2-page.headerable{class: no_header}
|
|
.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
|
|
|
|
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id
|
|
|
|
- if @more_data_available
|
|
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @answers_last_id }}
|
|
= t 'views.actions.load'
|
|
.visible-xs= render 'shared/links'
|
|
- if user_signed_in?
|
|
= render 'user/modal_group_memberships'
|
|
- if current_user.mod? and @user != current_user
|
|
= render 'user/modal_privileges'
|
|
= render 'user/modal_ban'
|