adjust search

This commit is contained in:
Pete Matsyburka
2026-06-25 09:27:59 +03:00
parent 1eaf4e5bab
commit dc1c386d7e
7 changed files with 70 additions and 26 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
<% end %>
</h1>
<div class="flex space-x-2">
<% if params[:q].present? || @pagy.pages > 1 || @template_folders.present? %>
<% if params[:q].present? || @pagy.count.nil? || @pagy.count > 0 || @template_folders.present? %>
<%= render 'shared/search_input' %>
<% end %>
<% if can?(:create, ::Template) %>