mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 18:56:13 +01:00
9 lines
No EOL
362 B
Text
9 lines
No EOL
362 B
Text
$('#entries').append('<% @inbox.each do |i|
|
|
%><%= j render 'inbox/entry', i: i
|
|
%><% end %>');
|
|
<% if @inbox.next_page %>
|
|
$('#pagination').html('<%= j will_paginate @inbox, renderer: BootstrapPagination::Rails, page_links: false %>');
|
|
<% else %>
|
|
$('#pagination, #load-more-btn').remove();
|
|
<% end %>
|
|
<% Inbox.where(id: @inbox.pluck(:id)).update_all(new: false) %> |