Display record thumbnail in list
This commit is contained in:
@@ -17,7 +17,9 @@
|
|||||||
<:col :let={{_id, record}} label="Musicbrainz"><%= record.musicbrainz_id %></:col>
|
<:col :let={{_id, record}} label="Musicbrainz"><%= record.musicbrainz_id %></:col>
|
||||||
<:col :let={{_id, record}} label="Year"><%= record.year %></:col>
|
<:col :let={{_id, record}} label="Year"><%= record.year %></:col>
|
||||||
<:col :let={{_id, record}} label="Genres"><%= record.genres %></:col>
|
<:col :let={{_id, record}} label="Genres"><%= record.genres %></:col>
|
||||||
<:col :let={{_id, record}} label="Image"><%= record.image %></:col>
|
<:col :let={{_id, record}} label="Image">
|
||||||
|
<img src={record.image} alt={record.title} />
|
||||||
|
</:col>
|
||||||
<:action :let={{_id, record}}>
|
<:action :let={{_id, record}}>
|
||||||
<div class="sr-only">
|
<div class="sr-only">
|
||||||
<.link navigate={~p"/records/#{record}"}>Show</.link>
|
<.link navigate={~p"/records/#{record}"}>Show</.link>
|
||||||
|
|||||||
Reference in New Issue
Block a user