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

@@ -64,11 +64,13 @@
<%= render 'template_folders/shared_folder' %>
<% end %>
<%= render partial: 'template_folders/folder', collection: @template_folders, as: :folder %>
<%= render 'shared/infinite_scroll', pagy: @pagy if turbo_native_app? && @templates.blank? %>
</div>
<% end %>
<% if @templates.present? %>
<div class="grid gap-4 md:grid-cols-3">
<%= render partial: 'templates/template', collection: @templates %>
<%= render 'shared/infinite_scroll', pagy: @pagy if turbo_native_app? %>
<% if (show_dropzone && current_user.created_at > 2.weeks.ago && current_user == true_user) || params[:tour] == 'true' %>
<% user_config = current_user.user_configs.find_or_initialize_by(key: UserConfig::SHOW_APP_TOUR) %>
<% if user_config.new_record? || user_config.value || params[:tour] == 'true' %>