From ab0d987f0a17aa6cad8f0de0ec1d26fec160ffc5 Mon Sep 17 00:00:00 2001 From: Chris Lowis Date: Thu, 29 Feb 2024 19:01:30 +0000 Subject: [PATCH] Make subtitle optional in card component --- app/views/shared/_card.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_card.html.erb b/app/views/shared/_card.html.erb index 879ef0f9..6cd44c9c 100644 --- a/app/views/shared/_card.html.erb +++ b/app/views/shared/_card.html.erb @@ -1,5 +1,7 @@
<%= card_image(image) %>

<%= title %>

-

<%= subtitle %>

+ <% if local_assigns[:subtitle] %> +

<%= subtitle %>

+ <% end %>