From 27f57cc68cd47da9cba7678c7df17276ce70f282 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 15 Sep 2024 20:19:49 +0100 Subject: [PATCH] Display artists in list --- lib/music_library_web/live/record_live/index.html.heex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/music_library_web/live/record_live/index.html.heex b/lib/music_library_web/live/record_live/index.html.heex index ab248759..3994735a 100644 --- a/lib/music_library_web/live/record_live/index.html.heex +++ b/lib/music_library_web/live/record_live/index.html.heex @@ -13,6 +13,9 @@ row_click={fn {_id, record} -> JS.navigate(~p"/records/#{record}") end} > <:col :let={{_id, record}} label="Type"><%= record.type %> + <:col :let={{_id, record}} label="Artists"> + <%= Enum.map(record.artists, fn a -> a.name end) %> + <:col :let={{_id, record}} label="Image"> {record.title}