show archived shared templates

This commit is contained in:
Pete Matsyburka
2026-06-24 19:08:15 +03:00
parent 2840359396
commit b2790776ef
8 changed files with 38 additions and 13 deletions
+1 -1
View File
@@ -91,7 +91,7 @@
<% end %>
<% end %>
<% if template.archived_at? %>
<% if can?(:create, template) %>
<% if can?(:destroy, template) %>
<%= button_to button_title(title: t('restore'), disabled_with: t('restoring')[..-4], icon: svg_icon('rotate', class: 'w-6 h-6')), template_restore_index_path(template), class: 'btn btn-outline btn-sm flex-1' %>
<% end %>
<%= link_to template_preview_path(template), class: 'btn btn-outline btn-sm flex-1' do %>