<%= link_to root_path do %>
←
Back to Active
<% end %>
Document Templates Archived
<% if params[:q].present? || @pagy.pages > 1 %>
<%= render 'shared/search_input' %>
<% end %>
<% if @pagy.count > 0 %>
<%= render partial: 'templates/template', collection: @templates %>
<% elsif params[:q].present? %>
<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'templates' %>