Update pagination to match template changes

This commit is contained in:
Karina Kwiatek 2022-07-20 22:00:34 +02:00 committed by Karina Kwiatek
parent 0e2e2f35e1
commit fa712a547f
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
$('#notifications').append('<% @notifications.each do |notification|
%><li class="list-group-item"><div class="media"><%= j render "notifications/type/#{notification.target_type.downcase}", notification: notification
%></div></li><% end %>');
%><li class="card"><div class="card-body"><div class="media"><%= j render "notifications/type/#{notification.target_type.downcase}", notification: notification
%></div></div></li><% 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 %>