fix query

This commit is contained in:
Pete Matsyburka
2025-04-23 12:16:50 +03:00
parent 7fee82ded2
commit 4e5abb3c09
6 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
</div>
<% templates_order_select_html = capture do %>
<% if params[:q].blank? && @pagy.pages > 1 %>
<%= render('shared/templates_order_select') %>
<%= render('shared/templates_order_select', with_recently_used: @pagy.count < 10_000) %>
<% end %>
<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'templates', right_additional_html: templates_order_select_html %>