adjust sort order

This commit is contained in:
Pete Matsyburka
2025-06-30 23:57:49 +03:00
parent 8fd9af3a6a
commit d3236ae4a1
5 changed files with 32 additions and 10 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
</div>
<% templates_order_select_html = capture do %>
<% if params[:q].blank? && @pagy.pages > 1 %>
<%= render('shared/templates_order_select', with_recently_used: @pagy.count.present? && @pagy.count < 10_000) %>
<%= render 'shared/templates_order_select', with_recently_used: @pagy.count.present? && @pagy.count < 10_000 && !can?(:manage, :countless), selected_order: %>
<% end %>
<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'templates', right_additional_html: templates_order_select_html %>