mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 20:36:04 +01:00
8 lines
360 B
Text
8 lines
360 B
Text
$('#questions').append('<% @questions.each do |q|
|
|
%><%= j render 'shared/question', q: q, type: nil
|
|
%><% end %>');
|
|
<% if @more_data_available %>
|
|
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @questions_last_id %>');
|
|
<% else %>
|
|
$('#pagination, #load-more-btn').remove();
|
|
<% end %>
|