app/views/records/artists/index.html.slim
- unless @artists.nil? || @artists.empty?
section.page-section.items-list.artists-list
- @artists.active.each do |artist|
article.item-column.marginless.column-1-2
= link_to records_artist_path(artist),
class: 'artist-box',
style: "background-image: url('#{artist.image.url(:large_medium)}');",
alt: artist.name,
title: artist.name do
h2.artist-name
= artist.name
/h3.artist-quote
/ = artist.quote
section.page-section.items-list.artists-list-inactive
div.section-heading
h2.section-title
= 'Inactive artists'
- @artists.inactive.each do |artist|
article.item-column.column-1-3
= link_to '',
records_artist_path(artist),
class: 'artist-box',
style: "background-image: url('#{artist.image.url(:medium)}');",
alt: artist.name,
title: artist.name
h3.artist-name
= link_to artist.name, records_artist_path(artist), title: artist.name