mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 20:36:04 +01:00
8 lines
437 B
Text
8 lines
437 B
Text
$('#notifications').append('<% @notifications.each do |notification|
|
|
%><%= j render 'notifications/notification', notification: notification
|
|
%><% end %>');
|
|
<% 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] %>');
|
|
<% else %>
|
|
$('#pagination, #load-more-btn').remove();
|
|
<% end %>
|