2015-01-13 04:23:12 -08:00
|
|
|
$('#timeline').append('<% @timeline.each do |answer|
|
|
|
|
%><%= j render 'shared/answerbox', a: answer
|
|
|
|
%><% end %>');
|
2020-04-20 14:03:57 -07:00
|
|
|
<% if @more_data_available %>
|
|
|
|
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id %>');
|
2015-01-13 04:23:12 -08:00
|
|
|
<% else %>
|
|
|
|
$('#pagination, #load-more-btn').remove();
|
2020-04-20 14:03:57 -07:00
|
|
|
<% end %>
|