Add more artist links with correct style
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
<p class="text-sm max-sm:text-xs">
|
||||
<.link
|
||||
:for={artist <- record.artists}
|
||||
class=" hover:text-gray-500"
|
||||
patch={~p"/records?query=mbid:#{artist.musicbrainz_id}"}
|
||||
>
|
||||
<%= artist.name %>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
defmodule MusicLibraryWeb.RecordLive.Show do
|
||||
use MusicLibraryWeb, :live_view
|
||||
import MusicLibraryWeb.ArtistHelpers
|
||||
|
||||
alias MusicLibrary.Records
|
||||
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<.header>
|
||||
<%= format_artist_names(@record.artists) %>
|
||||
<.link
|
||||
:for={artist <- @record.artists}
|
||||
class=" hover:text-gray-500"
|
||||
patch={~p"/records?query=mbid:#{artist.musicbrainz_id}"}
|
||||
>
|
||||
<%= artist.name %>
|
||||
</.link>
|
||||
<:subtitle>
|
||||
<%= @record.title %>
|
||||
</:subtitle>
|
||||
|
||||
Reference in New Issue
Block a user