<%= link_to root_path do %> ← <%= t('back_to_active') %> <% end %>

<%= t('document_templates_html') %> <%= t('archived') %>

<% if params[:q].present? || @pagy.pages > 1 %> <%= render 'shared/search_input', placeholder: "#{t('search')}..." %> <% end %>
<% if @pagy.count.nil? || @pagy.count > 0 %>
<%= render partial: 'templates/template', collection: @templates %>
<% elsif params[:q].present? %>
<%= t('templates_not_found') %>
<% end %> <%= render 'shared/pagination', pagy: @pagy, items_name: 'templates' %>