declare search for native app

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2026-09-23 10:59:54 +03:00
1 parent 2b9e5a86b6
commit 359f695eb5
9 files changed
+133 -102

No files matched your search

+7 -7
View File
@@ -7,16 +7,16 @@
<% end %>
</div>
<% end %>
<% unless turbo_native_app? %>
<div class="group/header flex justify-between mb-4 items-center">
<div class="group/header flex justify-between items-center <%= 'mb-4' unless turbo_native_app? %>">
<% unless turbo_native_app? %>
<div class="max-md:group-has-[search-input:focus-within]/header:hidden">
<h1 class="text-2xl md:text-3xl font-bold md:block <%= 'hidden' if params[:q].present? %>"><%= t('document_templates_html') %> <span class="badge badge-outline badge-lg align-middle"><%= t('archived') %></span></h1>
</div>
<% if params[:q].present? || @pagy.pages > 1 %>
<%= render 'shared/search_input', placeholder: "#{t('search')}..." %>
<% end %>
</div>
<% end %>
<% end %>
<% if params[:q].present? || @pagy.pages > 1 %>
<%= render 'shared/search_input', placeholder: "#{t('search')}..." %>
<% end %>
</div>
<% if @pagy.count.nil? || @pagy.count > 0 %>
<div class="grid gap-4 md:grid-cols-3">
<%= render partial: 'templates/template', collection: @templates, locals: { with_folder: true } %>