show archived shared templates

This commit is contained in:
Pete Matsyburka committed 2026-06-24 19:29:07 +03:00
1 parent 2840359396
commit b2790776ef
8 files changed
+38 -13

No files matched your search

+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 %>