Retrospring/app/views/public/index.js.erb

9 lines
361 B
Plaintext
Raw Normal View History

2014-12-10 21:39:35 -08:00
$('#timeline').append('<% @timeline.each do |answer|
%><%= j render 'shared/answerbox', a: answer
%><% end %>');
<% if @more_data_available %>
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id %>');
2014-12-10 21:39:35 -08:00
<% else %>
$('#pagination, #load-more-btn').remove();
<% end %>