retrospring/app/views/user/questions.js.erb

9 lines
360 B
Text
Raw Normal View History

$('#questions').append('<% @questions.each do |q|
2015-07-25 19:48:27 +02:00
%><%= j render 'shared/question', q: q, type: nil
2014-12-19 22:34:24 +01:00
%><% end %>');
<% if @more_data_available %>
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @questions_last_id %>');
2014-12-19 22:34:24 +01:00
<% else %>
$('#pagination, #load-more-btn').remove();
2015-07-25 19:48:27 +02:00
<% end %>