Include artist(s) name in album GET view

This also makes the entity_info struct very similar to the UnifiedResult struct, so we'll probably see a merge at some point. Would be nice if we used the fields from the entity_info result more commonly.
This commit is contained in:
mitteneer 2025-05-31 15:48:30 -04:00
parent 906ba6d2e5
commit 566edf1818
4 changed files with 29 additions and 12 deletions

View file

@ -9,7 +9,8 @@
</head>
<body>
@partial partials/header
<h1>{{.album.name}}</h1>
<h1>{{.album.album_name}}</h1>
<h2><a href="/artists/{{.album.artist_id}}">{{.album.artist_name}}</a></h2>
<div>{{.album.scrobbles}} scrobbles ({{.album.rank}} place)</div>
<div>{{.album.song_num}} songs</div>
@partial partials/firstlast_listens(firstlast: .firstlast)

View file

@ -9,7 +9,7 @@
</head>
<body>
@partial partials/header
<h1>{{.artist.name}}</h1>
<h1>{{.artist.artist_name}}</h1>
<div>
<div>{{.artist.scrobbles}} scrobbles ({{.artist.rank}} place)</div>
<div>{{.artist.song_num}} songs</div>

View file

@ -9,7 +9,7 @@
</head>
<body>
@partial partials/header
<h1>{{.song.name}}</h1>
<h1>{{.song.song_name}}</h1>
<div>{{.song.scrobbles}} scrobbles ({{.song.rank}} place)</div>
@partial partials/firstlast_listens(firstlast: .firstlast)
<h3>Yearly Performance</h3>