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

19 lines
609 B
Text
Raw Normal View History

2014-12-19 22:34:24 +01:00
.profile--header
.container.j2-page
2015-01-03 15:23:43 +01:00
.col-md-3.col-xs-12.col-sm-4
2014-12-19 22:34:24 +01:00
= render 'user/profile_info'
.hidden-xs= render 'shared/links'
2015-01-03 15:23:43 +01:00
.col-md-9.col-xs-12.col-sm-8
2014-12-20 00:03:07 +01:00
%h1.j2-lh.hidden-xs= @title
%h1.visible-xs= @title
2014-12-19 22:34:24 +01:00
#questions
2014-12-19 22:56:16 +01:00
- @questions.each do |q|
2014-12-19 22:57:08 +01:00
= render 'shared/question', q: q
2014-12-19 22:34:24 +01: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'