Merge pull request #35 from Retrospring/feature-fix-question-pages

Fix question pagination
This commit is contained in:
Andreas N. 2015-07-26 09:25:03 +02:00
commit a26f429124
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
- type ||= nil
.panel.panel-default.questionbox{data: { id: q.id }}
.panel-body
.media

View File

@ -1,5 +1,5 @@
$('#questions').append('<% @questions.each do |q|
%><%= j render 'shared/question', q: q
%><%= j render 'shared/question', q: q, type: nil
%><% end %>');
<% if @questions.next_page %>
$('#pagination').html('<%= j will_paginate @questions, renderer: BootstrapPagination::Rails, page_links: false %>');