2024-08-02 21:48:26 +00:00
|
|
|
{{define "head"}}
|
2024-08-31 14:25:44 +00:00
|
|
|
<title>Admin - ari melody 💫</title>
|
2024-08-02 21:48:26 +00:00
|
|
|
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
|
2024-08-05 00:23:17 +00:00
|
|
|
<link rel="stylesheet" href="/admin/static/index.css">
|
2024-08-02 21:48:26 +00:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<main>
|
|
|
|
|
2024-08-03 14:02:01 +00:00
|
|
|
<div class="card-title">
|
|
|
|
<h1>Releases</h1>
|
2024-09-01 03:43:32 +00:00
|
|
|
<a class="create-btn" id="create-release">Create New</a>
|
2024-08-03 14:02:01 +00:00
|
|
|
</div>
|
2024-08-02 21:48:26 +00:00
|
|
|
<div class="card releases">
|
2024-08-31 14:25:44 +00:00
|
|
|
{{range .Releases}}
|
|
|
|
{{block "release" .}}{{end}}
|
2024-08-02 21:48:26 +00:00
|
|
|
{{end}}
|
|
|
|
{{if not .Releases}}
|
|
|
|
<p>There are no releases.</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
2024-08-03 14:02:01 +00:00
|
|
|
<div class="card-title">
|
|
|
|
<h1>Artists</h1>
|
2024-09-03 07:07:45 +00:00
|
|
|
<a class="create-btn" id="create-artist">Create New</a>
|
2024-08-03 14:02:01 +00:00
|
|
|
</div>
|
2024-08-02 21:48:26 +00:00
|
|
|
<div class="card artists">
|
|
|
|
{{range $Artist := .Artists}}
|
|
|
|
<div class="artist">
|
2024-08-02 23:27:30 +00:00
|
|
|
<img src="{{$Artist.GetAvatar}}" alt="" width="64" loading="lazy" class="artist-avatar">
|
2024-09-03 07:07:45 +00:00
|
|
|
<a href="/admin/artist/{{$Artist.ID}}" class="artist-name">{{$Artist.Name}}</a>
|
2024-08-02 23:27:30 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if not .Artists}}
|
|
|
|
<p>There are no artists.</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
2024-08-03 14:02:01 +00:00
|
|
|
<div class="card-title">
|
|
|
|
<h1>Tracks</h1>
|
2024-09-01 03:43:32 +00:00
|
|
|
<a class="create-btn" id="create-track">Create New</a>
|
2024-08-03 14:02:01 +00:00
|
|
|
</div>
|
2024-08-02 23:27:30 +00:00
|
|
|
<div class="card tracks">
|
2024-08-05 00:23:17 +00:00
|
|
|
<p><em>"Orphaned" tracks that have not yet been bound to a release.</em></p>
|
|
|
|
<br>
|
2024-08-02 23:27:30 +00:00
|
|
|
{{range $Track := .Tracks}}
|
|
|
|
<div class="track">
|
2024-08-03 23:23:55 +00:00
|
|
|
<h2 class="track-title">
|
2024-08-31 14:25:44 +00:00
|
|
|
<a href="/admin/track/{{$Track.ID}}">{{$Track.Title}}</a>
|
2024-08-03 23:23:55 +00:00
|
|
|
</h2>
|
2024-08-02 23:27:30 +00:00
|
|
|
{{if $Track.Description}}
|
2024-09-03 07:07:45 +00:00
|
|
|
<p class="track-description">{{$Track.GetDescriptionHTML}}</p>
|
2024-08-02 23:27:30 +00:00
|
|
|
{{else}}
|
|
|
|
<p class="track-description empty">No description provided.</p>
|
|
|
|
{{end}}
|
|
|
|
{{if $Track.Lyrics}}
|
2024-09-03 07:07:45 +00:00
|
|
|
<p class="track-lyrics">{{$Track.GetLyricsHTML}}</p>
|
2024-08-02 23:27:30 +00:00
|
|
|
{{else}}
|
|
|
|
<p class="track-lyrics empty">There are no lyrics.</p>
|
|
|
|
{{end}}
|
2024-08-02 21:48:26 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if not .Artists}}
|
|
|
|
<p>There are no artists.</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
2024-08-31 00:30:30 +00:00
|
|
|
<script type="module" src="/admin/static/admin.js"></script>
|
|
|
|
<script type="module" src="/admin/static/index.js"></script>
|
2024-08-02 21:48:26 +00:00
|
|
|
{{end}}
|