Skip to content

Commit

Permalink
Use card component in artists index
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo committed Feb 29, 2024
1 parent ab0d987 commit 91d93c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/views/artists/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ set_meta_tags(
<div class="grid">
<% @artists.order(:name).each do |artist| %>
<%= link_to(artist_path(artist)) do %>
<div class="jam-card stack">
<div class="frame"><%= card_image(artist.profile_picture) %></div>
<h3 class="jam-card__title"><%= artist.name %><%= artist.listed? ? '' : ' (unlisted)' %></h3>
</div>
<%= render 'shared/card',
image: artist.profile_picture,
title: "#{artist.name}#{artist.listed? ? '' : ' (unlisted)'}" %>
<% end %>
<% end %>
</div>
Expand Down

0 comments on commit 91d93c5

Please sign in to comment.