mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-20 00:06:04 +01:00
8 lines
No EOL
345 B
Text
8 lines
No EOL
345 B
Text
$('#answers').append('<% @answers.each do |answer|
|
|
%><%= j render 'shared/answerbox', a: answer, show_question: false
|
|
%><% end %>');
|
|
<% if @answers.next_page %>
|
|
$('#pagination').html('<%= j will_paginate @answers, renderer: BootstrapPagination::Rails, page_links: false %>');
|
|
<% else %>
|
|
$('#pagination, #load-more-btn').remove();
|
|
<% end %> |