mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 21:36:03 +01:00
8 lines
380 B
Text
8 lines
380 B
Text
|
$('#notifications').append('<% @notifications.each do |notification|
|
||
|
%><%= j render 'notifications/notification', notification: notification
|
||
|
%><% end %>');
|
||
|
<% if @notifications.next_page %>
|
||
|
$('#pagination').html('<%= j will_paginate @notifications, renderer: BootstrapPagination::Rails, page_links: false %>');
|
||
|
<% else %>
|
||
|
$('#pagination, #load-more-btn').remove();
|
||
|
<% end %>
|