diff --git a/web/index.templ b/web/index.templ index c8216b1..490cb10 100644 --- a/web/index.templ +++ b/web/index.templ @@ -67,23 +67,27 @@ templ Index(curSong *radio.Song, sl []radio.Song, slLen int64, lstnrs *radio.Lis Your browser doesn't support an audio element, it's sad... But you always can take the playlist!
- { strconv.FormatInt(lstnrs.Current(), 10) } - { curSong.DurationString() } + + { strconv.FormatInt(lstnrs.Current(), 10) } + + + + if curSong != nil && curSong.Artist != "" { + { curSong.DurationString() } + } else { + 0:00 + } +
- { curSong.Artist } - { curSong.Title } + + + if curSong != nil && curSong.Artist != "" { + { curSong.Artist } - { curSong.Title } + } +
- } else { -- { strconv.FormatInt(lstnrs.Current(), 10) } - 0:00 -
-- -
- }