use template links with 2+ submitters

This commit is contained in:
Pete Matsyburka
2023-12-03 00:06:03 +02:00
parent 172513b96c
commit 3b03e61ae3
4 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
</div>
</div>
<div class="flex md:justify-between space-x-2 flex-none pt-1">
<% if template.submitters.to_a.size == 1 && !template.deleted_at? %>
<% if !template.deleted_at? %>
<%= render 'shared/clipboard_copy', text: start_form_url(slug: @template.slug), class: 'btn btn-sm btn-neutral text-white', icon_class: 'w-6 h-6 text-white', copy_title: 'Copy Link', copied_title: 'Copied', copy_title_md: 'Link', copied_title_md: 'Copied' %>
<% end %>
<% if !template.deleted_at? && can?(:destroy, template) %>