Retrospring/app/views/user/questions.js.erb

9 lines
328 B
Plaintext
Raw Normal View History

$('#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 %>