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