2015-05-13 15:02:19 -07:00
|
|
|
- provide(:title, user_title(@user))
|
2015-05-08 09:07:09 -07:00
|
|
|
- no_header = unless @user.profile_header.exists? then "profile--no-header" else "" end
|
2015-05-15 15:39:33 -07:00
|
|
|
#profile--header{class: no_header}
|
2015-05-08 09:04:58 -07:00
|
|
|
%img.profile--header-img{src: @user.profile_header.url(:web)}
|
2015-05-08 09:07:09 -07:00
|
|
|
.container.j2-page.headerable{class: no_header}
|
2015-05-15 15:39:33 -07:00
|
|
|
#profile-info.col-md-3.col-xs-12.col-sm-4.j2-col-reset
|
2014-12-08 08:03:06 -08:00
|
|
|
= render 'user/profile_info'
|
2014-11-24 08:52:58 -08:00
|
|
|
.hidden-xs= render 'shared/links'
|
2015-02-05 06:17:15 -08:00
|
|
|
.col-md-9.col-xs-12.col-sm-8.j2-col-reset
|
2015-05-08 09:07:09 -07:00
|
|
|
.profile--panel-push-inner.hidden-xs{class: no_header}
|
2014-11-12 11:40:24 -08:00
|
|
|
= render 'shared/questionbox'
|
2015-05-05 17:07:12 -07:00
|
|
|
- unless @user.banned?
|
2015-04-22 18:33:21 -07:00
|
|
|
#answers
|
|
|
|
- @answers.each do |a|
|
|
|
|
= render 'shared/answerbox', a: a
|
2014-12-08 06:23:04 -08:00
|
|
|
|
2015-04-22 18:33:21 -07:00
|
|
|
#pagination= will_paginate @answers, renderer: BootstrapPagination::Rails, page_links: false
|
2014-12-08 06:23:04 -08:00
|
|
|
|
2015-04-22 18:33:21 -07:00
|
|
|
- if @answers.next_page
|
|
|
|
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @answers.current_page }}
|
|
|
|
Load more
|
2014-11-24 08:52:58 -08:00
|
|
|
.visible-xs= render 'shared/links'
|
2015-01-13 22:07:40 -08:00
|
|
|
- if user_signed_in?
|
|
|
|
= render 'user/modal_group_memberships'
|
2015-02-03 08:13:50 -08:00
|
|
|
- if current_user.mod? and @user != current_user
|
2015-04-22 17:56:29 -07:00
|
|
|
= render 'user/modal_privileges'
|
|
|
|
= render 'user/modal_ban'
|