2014-12-19 14:05:45 -08:00
|
|
|
$('#questions').append('<% @questions.each do |q|
|
2015-07-25 10:48:27 -07:00
|
|
|
%><%= j render 'shared/question', q: q, type: nil
|
2014-12-19 13:34:24 -08:00
|
|
|
%><% end %>');
|
|
|
|
<% if @questions.next_page %>
|
|
|
|
$('#pagination').html('<%= j will_paginate @questions, renderer: BootstrapPagination::Rails, page_links: false %>');
|
|
|
|
<% else %>
|
|
|
|
$('#pagination, #load-more-btn').remove();
|
2015-07-25 10:48:27 -07:00
|
|
|
<% end %>
|