Artist links and styling

This commit is contained in:
2024-11-22 22:13:43 +00:00
parent e5ce0eab76
commit 954cc0edce
2 changed files with 15 additions and 3 deletions

View File

@ -13,7 +13,7 @@ pub fn AlbumInfo(albumdata: AlbumData) -> impl IntoView {
{
albumdata.artists.iter().map(|artist| {
view! {
<p class="album-artist">{artist.name.clone()}</p>
<a class="album-artist" href={format!("/artist/{}", artist.id.unwrap())}>{artist.name.clone()}</a>
}
}).collect::<Vec<_>>()
}