2015-01-08 09:22:27 -08:00
|
|
|
$('#notifications').append('<% @notifications.each do |notification|
|
|
|
|
%><%= j render 'notifications/notification', notification: notification
|
|
|
|
%><% end %>');
|
2020-04-20 14:03:57 -07:00
|
|
|
<% if @more_data_available %>
|
|
|
|
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @notifications_last_id, permitted_params: %i[type] %>');
|
2015-01-08 09:22:27 -08:00
|
|
|
<% else %>
|
|
|
|
$('#pagination, #load-more-btn').remove();
|
2020-04-20 14:03:57 -07:00
|
|
|
<% end %>
|