From c61e84d1b403100a32af0ab4fbe2c229492c4182 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 28 May 2026 08:40:05 +0300 Subject: [PATCH] adjust archive --- app/views/templates/_title.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/templates/_title.html.erb b/app/views/templates/_title.html.erb index b439fa7a..007e1be0 100644 --- a/app/views/templates/_title.html.erb +++ b/app/views/templates/_title.html.erb @@ -60,7 +60,7 @@
<% if !template.archived_at? && can?(:destroy, template) %> - <%= button_to button_title(title: t('archive'), disabled_with: t('archiving'), title_class: 'inline', icon: svg_icon('archive', class: 'w-6 h-6')), template_path(template), class: 'btn btn-outline btn-sm w-full', form_class: 'flex-1', method: :delete, data: { turbo_confirm: t('are_you_sure_') } %> + <%= button_to button_title(title: t('archive'), disabled_with: t('archiving')[..-4], title_class: 'inline', icon: svg_icon('archive', class: 'w-6 h-6')), template_path(template), class: 'btn btn-outline btn-sm w-full', form_class: 'flex-1', method: :delete %> <% end %> <% if can?(:create, current_account.templates.new(author: current_user)) %> <%= link_to new_template_clone_path(template), class: 'btn btn-outline btn-sm flex-1', data: { turbo_frame: :modal } do %> @@ -89,7 +89,7 @@ <% end %> <% if template.archived_at? %> <% if can?(:create, template) %> - <%= button_to button_title(title: t('restore'), disabled_with: t('restoring'), icon: svg_icon('rotate', class: 'w-6 h-6')), template_restore_index_path(template), class: 'btn btn-outline btn-sm flex-1' %> + <%= 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 %>