From fc19a74e49059d96dfc389fe67885931ddbed453 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 12 Jun 2025 15:39:38 -0500 Subject: [PATCH] Add an obvious link to the collection --- app/assets/stylesheets/card-perma.css | 4 ++++ app/views/cards/index.html.erb | 6 +++--- app/views/cards/show.html.erb | 6 ++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/card-perma.css b/app/assets/stylesheets/card-perma.css index 47f4c4c8c..b7cf05d21 100644 --- a/app/assets/stylesheets/card-perma.css +++ b/app/assets/stylesheets/card-perma.css @@ -74,6 +74,10 @@ } } + .card-perma__collection-header { + margin-block-end: 4ch; + } + /* Child items /* ------------------------------------------------------------------------ */ diff --git a/app/views/cards/index.html.erb b/app/views/cards/index.html.erb index eba0049da..76a4b1100 100644 --- a/app/views/cards/index.html.erb +++ b/app/views/cards/index.html.erb @@ -6,10 +6,10 @@ <%= render "cards/index/header", filter: @filter %> <% end %> -
-

+
+ <%= filter_title @filter %> -

+ <%= render "filters/settings", filter: @filter %>
diff --git a/app/views/cards/show.html.erb b/app/views/cards/show.html.erb index ef0989929..d4829446c 100644 --- a/app/views/cards/show.html.erb +++ b/app/views/cards/show.html.erb @@ -29,6 +29,12 @@ <% end %> +
+ <%= link_to cards_path(collection_ids: [ @card.collection ]), class: "txt-large overflow-ellipsis margin-none txt-ink", style: "view-transistion-name: card-colleciton-title" do %> + ← <%= @card.collection.name %> + <% end %> +
+
<%= render "cards/container", card: @card %>