$('#notifications').append('<% @notifications.each do |notification|
%>
<%= j render "notifications/type/#{notification.target_type.downcase}", 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 %>