Retrospring/app/views/user/show.html.haml

29 lines
1.1 KiB
Plaintext
Raw Normal View History

- 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}
%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}
2020-04-19 14:12:23 -07: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 06:23:04 -08:00
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id
2014-12-08 06:23:04 -08:00
- if @more_data_available
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @answers_last_id }}
= t 'views.actions.load'
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 'modal/group'
2015-02-03 08:13:50 -08:00
- if current_user.mod? and @user != current_user
= render 'modal/privileges'
= render 'modal/ban'