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-08-31 00:30:30 +00:00
|
|
|
<a href="/admin/createrelease" 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>
|
|
|
|
<a href="/admin/createartist" class="create-btn">Create New</a>
|
|
|
|
</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">
|
|
|
|
<a href="/admin/artists/{{$Artist.ID}}" class="artist-name">{{$Artist.Name}}</a>
|
|
|
|
</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>
|
|
|
|
<a href="/admin/createtrack" class="create-btn">Create New</a>
|
|
|
|
</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
|
|
|
{{if $Track.Release}}
|
|
|
|
<small class="track-album">{{$Track.Release.Title}}</small>
|
|
|
|
{{else}}
|
2024-08-05 00:23:17 +00:00
|
|
|
<small class="track-album empty">(no release)</small>
|
2024-08-03 23:23:55 +00:00
|
|
|
{{end}}
|
|
|
|
</h2>
|
2024-08-02 23:27:30 +00:00
|
|
|
{{if $Track.Description}}
|
|
|
|
<p class="track-description">{{$Track.Description}}</p>
|
|
|
|
{{else}}
|
|
|
|
<p class="track-description empty">No description provided.</p>
|
|
|
|
{{end}}
|
|
|
|
{{if $Track.Lyrics}}
|
|
|
|
<p class="track-lyrics">{{$Track.Lyrics}}</p>
|
|
|
|
{{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}}
|