Merge pull request #35 from Retrospring/feature-fix-question-pages
Fix question pagination
This commit is contained in:
commit
a26f429124
|
@ -1,3 +1,4 @@
|
|||
- type ||= nil
|
||||
.panel.panel-default.questionbox{data: { id: q.id }}
|
||||
.panel-body
|
||||
.media
|
||||
|
|
|
@ -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 %>');
|
||||
|
|
Loading…
Reference in New Issue