Fixed Last N songs section.
This commit is contained in:
parent
056f2c022b
commit
5d042cdb3a
@ -84,7 +84,6 @@ templ Index(curSong *radio.Song, sl []radio.Song, slLen int64, lstnrs *radio.Lis
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
if sl != nil && len(sl) != 0 {
|
||||
<section>
|
||||
<h2>Last { strconv.FormatInt(slLen, 10) } songs</h2>
|
||||
<table id="last-songs">
|
||||
@ -96,6 +95,7 @@ if sl != nil && len(sl) != 0 {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
if sl != nil && len(sl) != 0 {
|
||||
for i := 0; i < len(sl); i++ {
|
||||
<tr>
|
||||
<td>{ utils.ToClientTimezone(sl[i].StartAt, r).Format("15:04") }</td>
|
||||
@ -107,10 +107,10 @@ if sl != nil && len(sl) != 0 {
|
||||
<td>{ sl[i].Artist } - { sl[i].Title }</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
}
|
||||
<footer>
|
||||
2017—2024 Alexander "Arav" Andreev <<a href="mailto:me@arav.su">me@arav.su</a>> <a href={ templ.SafeURL(utils.MainSite(r.Host) + "/privacy") }>Privacy statements</a>
|
||||
</footer>
|
||||
|
Loading…
Reference in New Issue
Block a user