2015-02-12 13:09:11 -08:00
|
|
|
$('#entries').append('<% @inbox.each do |i|
|
|
|
|
%><%= j render 'inbox/entry', i: i
|
2015-02-12 12:59:46 -08:00
|
|
|
%><% end %>');
|
|
|
|
<% if @timeline.next_page %>
|
|
|
|
$('#pagination').html('<%= j will_paginate @inbox, renderer: BootstrapPagination::Rails, page_links: false %>');
|
|
|
|
<% else %>
|
|
|
|
$('#pagination, #load-more-btn').remove();
|
2015-02-12 13:09:11 -08:00
|
|
|
<% end %>
|
|
|
|
<% @inbox.update_all(new: false) %>
|