<%= render partial: 'template_folders/folder', collection: @template_folders, as: :folder %>
<% end %>
<% if @pagy.count.nil? || @pagy.count > 0 %>
<%= t('templates_not_found') %>
<% if @related_submissions.present? %>
<%= render partial: 'templates/submission', collection: @related_submissions, locals: { with_template: true } %>
<%= render 'shared/pagination', pagy: @related_submissions_pagy, items_name: 'submissions', next_page_path: submissions_path(q: params[:q], folder: @template_folder.full_name) %>
<% end %>
<% end %>