Web UI: setup wizard, auth pages, library browsing, player, admin, streaming, cover art

This commit is contained in:
2026-08-22 23:42:09 -05:00
parent aa29f13846
commit e0bd8bc3cb
42 changed files with 3012 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
{{define "playlist"}}{{template "header" .}}
<div class="d-flex justify-content-between align-items-center mb-3">
<div>
<h2 class="h5 mb-0">{{.Data.Playlist.Name}}</h2>
{{if .Data.Playlist.Description}}<div class="text-secondary small">{{.Data.Playlist.Description}}</div>{{end}}
</div>
{{if .Data.Owned}}
<form method="post" action="/playlists/{{.Data.Playlist.ID}}/delete" onsubmit="return confirm('Delete this playlist?');">
{{template "csrf_field" .CSRFToken}}
<button type="submit" class="btn btn-outline-danger btn-sm"><i class="bi bi-trash"></i> Delete</button>
</form>
{{end}}
</div>
{{if .Data.Songs}}{{template "song_rows" .Data.Songs}}{{else}}<p class="text-secondary">This playlist is empty.</p>{{end}}
{{template "footer" .}}{{end}}