From 543469965afcc58acc4123abf38e8ea8cdd327cc Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Tue, 7 Oct 2025 08:50:33 +0200 Subject: [PATCH] Make all the pagination automatic --- app/views/collections/columns/closeds/show.html.erb | 2 +- app/views/collections/columns/not_nows/show.html.erb | 2 +- app/views/collections/columns/show.html.erb | 2 +- app/views/collections/columns/streams/show.html.erb | 4 ++-- app/views/collections/show/_stream.html.erb | 2 +- app/views/public/collections/columns/closeds/show.html.erb | 4 ++-- app/views/public/collections/columns/not_nows/show.html.erb | 4 ++-- app/views/public/collections/columns/show.html.erb | 4 ++-- app/views/public/collections/columns/streams/show.html.erb | 4 ++-- app/views/public/collections/show/_stream.html.erb | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/views/collections/columns/closeds/show.html.erb b/app/views/collections/columns/closeds/show.html.erb index ff2fce6c7..06f9b82fc 100644 --- a/app/views/collections/columns/closeds/show.html.erb +++ b/app/views/collections/columns/closeds/show.html.erb @@ -20,7 +20,7 @@
<%= 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 %> diff --git a/app/views/collections/columns/not_nows/show.html.erb b/app/views/collections/columns/not_nows/show.html.erb index 923c83186..d668934e4 100644 --- a/app/views/collections/columns/not_nows/show.html.erb +++ b/app/views/collections/columns/not_nows/show.html.erb @@ -20,7 +20,7 @@
<%= 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 %> diff --git a/app/views/collections/columns/show.html.erb b/app/views/collections/columns/show.html.erb index dc8702340..b21a9aa87 100644 --- a/app/views/collections/columns/show.html.erb +++ b/app/views/collections/columns/show.html.erb @@ -20,7 +20,7 @@
<%= 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 %> diff --git a/app/views/collections/columns/streams/show.html.erb b/app/views/collections/columns/streams/show.html.erb index 651cb4c03..0559c4b9f 100644 --- a/app/views/collections/columns/streams/show.html.erb +++ b/app/views/collections/columns/streams/show.html.erb @@ -20,7 +20,7 @@
<%= 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 @@ <% end %> <% end %> -
\ No newline at end of file +
diff --git a/app/views/collections/show/_stream.html.erb b/app/views/collections/show/_stream.html.erb index e55f33662..1a8e0842a 100644 --- a/app/views/collections/show/_stream.html.erb +++ b/app/views/collections/show/_stream.html.erb @@ -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 %> diff --git a/app/views/public/collections/columns/closeds/show.html.erb b/app/views/public/collections/columns/closeds/show.html.erb index ced3cc16a..1ffcd02da 100644 --- a/app/views/public/collections/columns/closeds/show.html.erb +++ b/app/views/public/collections/columns/closeds/show.html.erb @@ -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 @@

No cards here

<% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/public/collections/columns/not_nows/show.html.erb b/app/views/public/collections/columns/not_nows/show.html.erb index 1a2356aec..5258a9d64 100644 --- a/app/views/public/collections/columns/not_nows/show.html.erb +++ b/app/views/public/collections/columns/not_nows/show.html.erb @@ -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 @@

No cards here

<% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/public/collections/columns/show.html.erb b/app/views/public/collections/columns/show.html.erb index f0068a1b1..f039848f7 100644 --- a/app/views/public/collections/columns/show.html.erb +++ b/app/views/public/collections/columns/show.html.erb @@ -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 @@

No cards here

<% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/public/collections/columns/streams/show.html.erb b/app/views/public/collections/columns/streams/show.html.erb index ff8d3f5fe..39858cb71 100644 --- a/app/views/public/collections/columns/streams/show.html.erb +++ b/app/views/public/collections/columns/streams/show.html.erb @@ -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 @@

No cards here

<% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/public/collections/show/_stream.html.erb b/app/views/public/collections/show/_stream.html.erb index 5344029ab..6e045af5d 100644 --- a/app/views/public/collections/show/_stream.html.erb +++ b/app/views/public/collections/show/_stream.html.erb @@ -3,7 +3,7 @@
<% 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 %>