From 3d6a1af29478e62fcd6e2791991fce434fff3fe9 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Mon, 16 Jun 2025 18:44:32 -0500 Subject: [PATCH] Add cards from the home screen --- app/assets/images/add.svg | 2 +- app/views/events/index.html.erb | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/assets/images/add.svg b/app/assets/images/add.svg index 1a598b952..95ec3ea2a 100644 --- a/app/assets/images/add.svg +++ b/app/assets/images/add.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 75f9fdf63..21ef9a7f5 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -9,7 +9,7 @@ <% end %>
-

+

<% if @filter.collections.any? %> <%= filter_selected_collections_label(@filter) %> @@ -27,6 +27,12 @@ <% end %> <% end %>

+ <% if collection = @filter.single_collection || Current.user.collections.first %> + <%= button_to collection_cards_path(collection), method: :post, class: "btn btn--link txt-x-small margin-block-end", form_class: "center" do %> + <%= icon_tag "add" %> + Add a card + <% end %> + <% end %>
<%= render "events/day", day_timeline: @day_timeline %>