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

23 lines
938 B
Plaintext
Raw Normal View History

- provide(:title, questions_title(@user))
2017-03-29 15:18:11 -07:00
- 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)}
2017-03-29 15:20:37 -07:00
.container.j2-page.headerable{class: no_header}
2020-04-19 14:12:23 -07:00
.row
.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
%h1.j2-lh.hidden-xs= @title
%h1.visible-xs= @title
#questions
- @questions.each do |q|
= render 'shared/question', q: q, type: nil
2014-12-19 13:34:24 -08:00
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @questions_last_id
2014-12-19 13:34:24 -08:00
- if @more_data_available
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @questions_last_id }}
= t 'views.actions.load'
2014-12-19 13:34:24 -08:00
.visible-xs= render 'shared/links'