fix pagination

This commit is contained in:
Pete Matsyburka
2026-01-27 10:34:18 +02:00
parent c7659563b8
commit 4adaa531b7
3 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -12,7 +12,7 @@
<%= local_assigns[:right_additional_html] %>
<div class="join">
<% if pagy.previous %>
<%= link_to '«', url_for(page: pagy.previous), class: 'join-item btn min-h-full h-10' %>
<%= link_to '«', url_for(params: request.query_parameters.merge('page' => pagy.previous)), class: 'join-item btn min-h-full h-10' %>
<% else %>
<span class="join-item btn btn-disabled !bg-base-200 min-h-full h-10">«</span>
<% end %>
@@ -22,7 +22,7 @@
<% if local_assigns[:next_page_path].present? %>
<%= link_to '»', local_assigns[:next_page_path], class: 'join-item btn min-h-full h-10' %>
<% elsif pagy.next %>
<%= link_to '»', url_for(page: pagy.next), class: 'join-item btn min-h-full h-10' %>
<%= link_to '»', url_for(params: request.query_parameters.merge('page' => pagy.next)), class: 'join-item btn min-h-full h-10' %>
<% else %>
<span class="join-item btn btn-disabled !bg-base-200 min-h-full h-10">»</span>
<% end %>
-3
View File
@@ -1,7 +1,4 @@
<form action="<%= url_for %>" method="get" class="items-center flex">
<% if params[:status].present? %>
<input name="status" value="<%= params[:status] %>" class="hidden">
<% end %>
<% Submissions::Filter::ALLOWED_PARAMS.each do |key| %>
<% if params[key].present? %>
<input name="<%= key %>" value="<%= params[key] %>" class="hidden">