From 65c98a5d6518dc9ca98e7c01ee66ac0e16eda0ba Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Mon, 3 Nov 2025 17:06:59 +0100 Subject: [PATCH] This is not cache-friendly https://chat.37signals.com/rooms/440/@45201 --- .../cards/display/perma/_collection.html.erb | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/app/views/cards/display/perma/_collection.html.erb b/app/views/cards/display/perma/_collection.html.erb index d660f252d..aecf85628 100644 --- a/app/views/cards/display/perma/_collection.html.erb +++ b/app/views/cards/display/perma/_collection.html.erb @@ -1,14 +1,12 @@ <%= render "cards/display/common/collection", card: card do %> - <% if Current.user.collections.count > 1 %> -
> - +
> + - - <%= turbo_frame_tag "collection_picker", src: edit_card_collection_path(card), target: "_top", refresh: "morph" %> - -
- <% end %> + + <%= turbo_frame_tag "collection_picker", src: edit_card_collection_path(card), target: "_top", refresh: "morph" %> + +
<% end %>