2015-05-13 15:02:19 -07:00
|
|
|
- provide(:title, questions_title(@user))
|
2014-12-19 13:34:24 -08:00
|
|
|
.profile--header
|
|
|
|
.container.j2-page
|
2015-02-05 06:20:41 -08:00
|
|
|
.col-md-3.col-xs-12.col-sm-4.j2-col-reset
|
2014-12-19 13:34:24 -08:00
|
|
|
= render 'user/profile_info'
|
|
|
|
.hidden-xs= render 'shared/links'
|
2015-02-05 06:20:41 -08:00
|
|
|
.col-md-9.col-xs-12.col-sm-8.j2-col-reset
|
2014-12-19 15:03:07 -08:00
|
|
|
%h1.j2-lh.hidden-xs= @title
|
|
|
|
%h1.visible-xs= @title
|
2014-12-19 13:34:24 -08:00
|
|
|
#questions
|
2014-12-19 13:56:16 -08:00
|
|
|
- @questions.each do |q|
|
2015-05-13 17:39:30 -07:00
|
|
|
= render 'shared/question', q: q, type: nil
|
2014-12-19 13:34:24 -08:00
|
|
|
|
|
|
|
#pagination= will_paginate @questions, renderer: BootstrapPagination::Rails, page_links: false
|
|
|
|
|
|
|
|
- if @questions.next_page
|
|
|
|
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @questions.current_page }}
|
|
|
|
Load more
|
|
|
|
.visible-xs= render 'shared/links'
|