2014-12-08 05:14:13 -08:00
|
|
|
$('#timeline').append('<% @timeline.each do |answer|
|
|
|
|
%><%= j render 'shared/answerbox', a: answer
|
|
|
|
%><% end %>');
|
|
|
|
<% if @timeline.next_page %>
|
2014-12-08 05:22:11 -08:00
|
|
|
$('#pagination').html('<%= j will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false %>');
|
2014-12-08 05:14:13 -08:00
|
|
|
<% else %>
|
|
|
|
$('#pagination, #load-more-btn').remove();
|
|
|
|
<% end %>
|