diff --git a/src/modules/album/album.templ b/src/modules/album/album.templ index e73ee06..be81cf5 100644 --- a/src/modules/album/album.templ +++ b/src/modules/album/album.templ @@ -3,6 +3,7 @@ package album import ( "acide/src/utils" "fmt" + "strconv" ) templ albumTempl(albumId string, album *utils.Album, songs []utils.Song) { @@ -15,10 +16,10 @@ templ albumTempl(albumId string, album *utils.Album, songs []utils.Song) {

{ album.Artist }

-
+
for _, song := range songs { -

+ + { strconv.Itoa(song.TrackNumber) } + { song.Title } -

+ }
diff --git a/src/utils/utils.templ b/src/utils/utils.templ index 0ac9a2e..47721d3 100644 --- a/src/utils/utils.templ +++ b/src/utils/utils.templ @@ -39,11 +39,14 @@ templ MusicPlayer() {

-

-

-
+
@playIcon(26) @pauseIcon(26)
-