add infinite scroll

This commit is contained in:
Pete Matsyburka committed 2026-09-23 10:59:54 +03:00
1 parent d3cc2e1ca8
commit 8cb0a7a020
21 files changed
+179 -10

No files matched your search

@@ -70,6 +70,7 @@
<% if @pagy.count.nil? || @pagy.count > 0 %>
<div class="space-y-4">
<%= render partial: 'templates/submission', collection: @submissions, locals: { with_template: true } %>
<%= render 'shared/infinite_scroll', pagy: @pagy if turbo_native_app? %>
</div>
<% end %>
<% if params[:q].blank? && params[:status].blank? && filter_params.blank? && @pagy.count.present? && @pagy.count < 5 %>