2024-08-02 22:48:26 +01:00
|
|
|
{{define "head"}}
|
2024-08-31 15:25:44 +01:00
|
|
|
<title>Admin - ari melody 💫</title>
|
2024-08-02 22:48:26 +01:00
|
|
|
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
|
2025-10-21 18:39:38 +01:00
|
|
|
<link rel="stylesheet" href="/admin/static/admin.css">
|
|
|
|
|
<link rel="stylesheet" href="/admin/static/releases.css">
|
|
|
|
|
<link rel="stylesheet" href="/admin/static/artists.css">
|
|
|
|
|
<link rel="stylesheet" href="/admin/static/tracks.css">
|
2024-08-02 22:48:26 +01:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
|
|
{{define "content"}}
|
2025-10-21 15:37:40 +01:00
|
|
|
<main class="dashboard">
|
|
|
|
|
<h1>Dashboard</h1>
|
2024-08-02 22:48:26 +01:00
|
|
|
|
2025-10-21 15:37:40 +01:00
|
|
|
<div class="cards">
|
|
|
|
|
<div class="card" id="releases">
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
<h2><a href="/admin/releases/">Releases</a> <small>({{.ReleaseCount}} total)</small></h2>
|
|
|
|
|
<a class="button new" id="create-release">Create New</a>
|
|
|
|
|
</div>
|
2025-10-21 18:39:38 +01:00
|
|
|
{{if .Artists}}
|
2025-10-21 15:37:40 +01:00
|
|
|
{{range .Releases}}
|
|
|
|
|
{{block "release" .}}{{end}}
|
|
|
|
|
{{end}}
|
2025-10-21 18:39:38 +01:00
|
|
|
{{else}}
|
2025-10-21 15:37:40 +01:00
|
|
|
<p>There are no releases.</p>
|
|
|
|
|
{{end}}
|
|
|
|
|
</div>
|
2024-08-03 00:27:30 +01:00
|
|
|
|
2025-10-21 15:37:40 +01:00
|
|
|
<div class="card" id="artists">
|
|
|
|
|
<div class="card-header">
|
2025-10-21 18:39:38 +01:00
|
|
|
<h2><a href="/admin/artists/">Artists</a> <small>({{.ArtistCount}} total)</small></h2>
|
2025-10-21 15:37:40 +01:00
|
|
|
<a class="button new" id="create-artist">Create New</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{if .Artists}}
|
|
|
|
|
<div class="artists-group">
|
2025-10-21 18:39:38 +01:00
|
|
|
{{range .Artists}}
|
|
|
|
|
{{block "artist" .}}{{end}}
|
2025-10-21 15:37:40 +01:00
|
|
|
{{end}}
|
|
|
|
|
</div>
|
2024-08-03 00:27:30 +01:00
|
|
|
{{else}}
|
2025-10-21 15:37:40 +01:00
|
|
|
<p>There are no artists.</p>
|
2024-08-03 00:27:30 +01:00
|
|
|
{{end}}
|
2025-10-21 15:37:40 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card" id="tracks">
|
|
|
|
|
<div class="card-header">
|
2025-10-21 18:39:38 +01:00
|
|
|
<h2><a href="/admin/tracks/">Tracks</a> <small>({{.TrackCount}} total)</small></h2>
|
2025-10-21 15:37:40 +01:00
|
|
|
<a class="button new" id="create-track">Create New</a>
|
|
|
|
|
</div>
|
|
|
|
|
<p><em>"Orphaned" tracks that have not yet been bound to a release.</em></p>
|
|
|
|
|
<br>
|
2025-10-21 18:39:38 +01:00
|
|
|
{{range .Tracks}}
|
|
|
|
|
{{block "track" .}}{{end}}
|
2024-08-03 00:27:30 +01:00
|
|
|
{{end}}
|
2025-10-21 15:37:40 +01:00
|
|
|
</div>
|
2024-08-02 22:48:26 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
2024-08-31 01:30:30 +01:00
|
|
|
<script type="module" src="/admin/static/admin.js"></script>
|
2025-10-21 18:39:38 +01:00
|
|
|
<script type="module" src="/admin/static/artists.js"></script>
|
2024-08-31 01:30:30 +01:00
|
|
|
<script type="module" src="/admin/static/index.js"></script>
|
2024-08-02 22:48:26 +01:00
|
|
|
{{end}}
|