2015-01-08 09:22:27 -08:00
|
|
|
$('#notifications').append('<% @notifications.each do |notification|
|
2022-07-20 13:00:34 -07:00
|
|
|
%><li class="card"><div class="card-body"><div class="media"><%= j render "notifications/type/#{notification.target_type.downcase}", notification: notification
|
|
|
|
%></div></div></li><% 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 %>
|