From 91d93c5b8105bcf979fb64a55e0b17328d58654a Mon Sep 17 00:00:00 2001 From: Chris Lowis Date: Thu, 29 Feb 2024 19:01:45 +0000 Subject: [PATCH] Use card component in artists index --- app/views/artists/index.html.erb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/artists/index.html.erb b/app/views/artists/index.html.erb index d338b494..72d64080 100644 --- a/app/views/artists/index.html.erb +++ b/app/views/artists/index.html.erb @@ -18,10 +18,9 @@ set_meta_tags(
<% @artists.order(:name).each do |artist| %> <%= link_to(artist_path(artist)) do %> -
-
<%= card_image(artist.profile_picture) %>
-

<%= artist.name %><%= artist.listed? ? '' : ' (unlisted)' %>

-
+ <%= render 'shared/card', + image: artist.profile_picture, + title: "#{artist.name}#{artist.listed? ? '' : ' (unlisted)'}" %> <% end %> <% end %>