Make all the pagination automatic

This commit is contained in:
Jorge Manrubia
2025-10-07 08:50:33 +02:00
parent 4e6866bd2e
commit 543469965a
10 changed files with 15 additions and 15 deletions
@@ -20,7 +20,7 @@
<section class="cards cards--grid">
<%= turbo_frame_tag :closed_column do %>
<% if @page.used? %>
<%= with_manual_pagination :closed_column, @page do %>
<%= with_automatic_pagination :closed_column, @page do %>
<%= render "collections/columns/list", cards: @page.records, draggable: true %>
<% end %>
<% else %>
@@ -20,7 +20,7 @@
<section class="cards cards--grid">
<%= turbo_frame_tag :not_now_column do %>
<% if @page.used? %>
<%= with_manual_pagination :not_now_column, @page do %>
<%= with_automatic_pagination :not_now_column, @page do %>
<%= render "collections/columns/list", cards: @page.records, draggable: true %>
<% end %>
<% else %>
+1 -1
View File
@@ -20,7 +20,7 @@
<section class="cards cards--grid">
<%= turbo_frame_tag dom_id(@column, :cards) do %>
<% if @page.used? %>
<%= with_manual_pagination dom_id(@column, :cards), @page do %>
<%= with_automatic_pagination dom_id(@column, :cards), @page do %>
<%= render "collections/columns/list", cards: @page.records, draggable: true %>
<% end %>
<% else %>
@@ -20,7 +20,7 @@
<section class="cards cards--grid">
<%= turbo_frame_tag :stream_column do %>
<% if @page.used? %>
<%= with_manual_pagination :stream_column, @page do %>
<%= with_automatic_pagination :stream_column, @page do %>
<%= render "collections/columns/list", cards: @page.records, draggable: true %>
<% end %>
<% else %>
@@ -29,4 +29,4 @@
</div>
<% end %>
<% end %>
</section>
</section>
+1 -1
View File
@@ -16,7 +16,7 @@
<%= render "columns/show/add_card_button", collection: collection %>
<% if page.used? %>
<%= with_manual_pagination "the-stream", @page do %>
<%= with_automatic_pagination "the-stream", @page do %>
<%= render "collections/columns/list", cards: page.records, draggable: true %>
<% end %>
<% end %>
@@ -1,6 +1,6 @@
<%= turbo_frame_tag :closed_column do %>
<% if @page.used? %>
<%= with_manual_pagination :closed_column, @page do %>
<%= with_automatic_pagination :closed_column, @page do %>
<%= render "public/collections/columns/list", cards: @page.records %>
<% end %>
<% else %>
@@ -8,4 +8,4 @@
<p class="txt-align-center txt-normal">No cards here</p>
</div>
<% end %>
<% end %>
<% end %>
@@ -1,6 +1,6 @@
<%= turbo_frame_tag :not_now_column do %>
<% if @page.used? %>
<%= with_manual_pagination :not_now_column, @page do %>
<%= with_automatic_pagination :not_now_column, @page do %>
<%= render "public/collections/columns/list", cards: @page.records %>
<% end %>
<% else %>
@@ -8,4 +8,4 @@
<p class="txt-align-center txt-normal">No cards here</p>
</div>
<% end %>
<% end %>
<% end %>
@@ -1,6 +1,6 @@
<%= turbo_frame_tag dom_id(@column, :cards) do %>
<% if @page.used? %>
<%= with_manual_pagination dom_id(@column, :cards), @page do %>
<%= with_automatic_pagination dom_id(@column, :cards), @page do %>
<%= render "public/collections/columns/list", cards: @page.records %>
<% end %>
<% else %>
@@ -8,4 +8,4 @@
<p class="txt-align-center txt-normal">No cards here</p>
</div>
<% end %>
<% end %>
<% end %>
@@ -1,6 +1,6 @@
<%= turbo_frame_tag :stream_column do %>
<% if @page.used? %>
<%= with_manual_pagination :stream_column, @page do %>
<%= with_automatic_pagination :stream_column, @page do %>
<%= render "public/collections/columns/list", cards: @page.records %>
<% end %>
<% else %>
@@ -8,4 +8,4 @@
<p class="txt-align-center txt-normal">No cards here</p>
</div>
<% end %>
<% end %>
<% end %>
@@ -3,7 +3,7 @@
<div class="cards__decoration"></div>
<% if page.used? %>
<%= with_manual_pagination "the-stream", @page do %>
<%= with_automatic_pagination "the-stream", @page do %>
<%= render "public/collections/columns/list", cards: page.records %>
<% end %>
<% end %>