2015-01-13 04:23:12 -08:00
|
|
|
$('#timeline').append('<% @timeline.each do |answer|
|
2020-04-26 08:13:31 -07:00
|
|
|
%><%= j render 'answerbox', a: answer
|
2015-01-13 04:23:12 -08:00
|
|
|
%><% 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 %>
|