mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 15:56:03 +01:00
9 lines
399 B
Text
9 lines
399 B
Text
$('#entries').append('<% @inbox.each do |i|
|
|
%><%= j render 'inbox/entry', i: i
|
|
%><% end %>');
|
|
<% if @more_data_available %>
|
|
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id %>');
|
|
<% else %>
|
|
$('#pagination, #load-more-btn').remove();
|
|
<% end %>
|
|
<% Inbox.where(id: @inbox.pluck(:id)).update_all(new: false) %>
|