From 25d02cf0c3462805176f4193d675c4904221dca1 Mon Sep 17 00:00:00 2001 From: Thomas Karpiniec Date: Mon, 28 Oct 2024 21:36:06 +1100 Subject: [PATCH 1/1] Various UI improvements --- server/database.go | 2 +- server/templates/files.html | 11 +++++++---- server/templates/index.html | 13 +------------ server/templates/playlists.html | 9 +++++---- 4 files changed, 14 insertions(+), 21 deletions(-) diff --git a/server/database.go b/server/database.go index 5b1361c..c41b1ad 100644 --- a/server/database.go +++ b/server/database.go @@ -157,7 +157,7 @@ func (d *Database) DeletePlaylist(playlistId int) { func (d *Database) GetPlaylists() []Playlist { ret := make([]Playlist, 0) - rows, err := d.sqldb.Query("SELECT id, enabled, name, start_time FROM playlists ORDER BY id ASC") + rows, err := d.sqldb.Query("SELECT id, enabled, name, start_time FROM playlists ORDER BY start_time DESC") if err != nil { return ret } diff --git a/server/templates/files.html b/server/templates/files.html index c86c6ce..e205472 100644 --- a/server/templates/files.html +++ b/server/templates/files.html @@ -1,11 +1,14 @@ -

Files! List

+

Audio File Management

All files can be downloaded from the public file listing.

-