diff --git a/app/views/cards/display/_public_preview.html.erb b/app/views/cards/display/_public_preview.html.erb index 967879dbf..f3e534008 100644 --- a/app/views/cards/display/_public_preview.html.erb +++ b/app/views/cards/display/_public_preview.html.erb @@ -1,44 +1,42 @@ -<% cache card_preview_cache_parts(card) do %> - <%= card_article_tag card, class: "card" do %> -
-
-
+<%= card_article_tag card, class: "card" do %> +
+
+
Card number <%= card.id %> - - + <%= card.collection.name %> -
- - <%= render "cards/display/preview/tags", card: card %> -
- -
-
-

- <%= card.title %> -

-
- - <%= render "cards/display/public_preview/columns", card: card if card.triaged? %>
+ + <%= render "cards/display/preview/tags", card: card %> +
+ +
+
+

+ <%= card.title %> +

+
+ + <%= render "cards/display/public_preview/columns", card: card if card.triaged? %>
+
- + - <%= render "cards/display/common/background", card: card %> + <%= render "cards/display/common/background", card: card %> - <%= link_to published_card_path(card), class: "card__link", title: card_title_tag(card), data: { turbo_frame: "_top" } do %> - <%= card.title %> - <% end %> + <%= link_to published_card_path(card), class: "card__link", title: card_title_tag(card), data: { turbo_frame: "_top" } do %> + <%= card.title %> + <% end %> - <% if card.entropic? %> - <%= render "cards/display/preview/bubble", card: card %> - <% end %> + <% if card.entropic? %> + <%= render "cards/display/preview/bubble", card: card %> + <% end %> <% end %> diff --git a/app/views/public/collections/show/_considering.html.erb b/app/views/public/collections/show/_considering.html.erb index be408e633..a2d14cb1e 100644 --- a/app/views/public/collections/show/_considering.html.erb +++ b/app/views/public/collections/show/_considering.html.erb @@ -1,6 +1,6 @@
<% if page.used? %> - <%= render partial: "cards/display/public_preview", collection: page.records, as: :card, cached: true %> + <%= render partial: "cards/display/public_preview", collection: page.records, as: :card, cached: ->(card) { card_preview_cache_parts(card) } %> <% unless page.last? %>