89 lines
3.6 KiB
HTML
89 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>NaviWatcher — {{ .Name }}</title>
|
|
<style>
|
|
body { font-family: system-ui, sans-serif; margin: 2rem; color: #1a1a1a; }
|
|
h1 { margin-bottom: 0.25rem; }
|
|
.sub { color: #666; margin-bottom: 1.5rem; }
|
|
a { color: #1565c0; }
|
|
table { border-collapse: collapse; width: 100%; margin-bottom: 2rem; }
|
|
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #e2e2e2; }
|
|
th { background: #f6f6f6; }
|
|
.empty { color: #888; font-style: italic; }
|
|
.missing { color: #c62828; }
|
|
.ignored { color: #888; text-decoration: line-through; }
|
|
.toggle { display: inline-block; margin-bottom: 1rem; }
|
|
form { display: inline; }
|
|
button { cursor: pointer; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p><a href="/">← Dashboard</a></p>
|
|
<h1>{{ .Name }}</h1>
|
|
<div class="sub">MusicBrainz: {{ if .MBID }}{{ .MBID }}{{ else }}<span class="empty">—</span>{{ end }}</div>
|
|
|
|
<form class="toggle" method="POST" action="/artist/{{ .ID }}/ignore-singles">
|
|
<button type="submit">{{ if .IgnoreSingles }}Enable singles{{ else }}Ignore all singles{{ end }}</button>
|
|
{{ if .IgnoreSingles }}<span class="sub"> (singles currently ignored)</span>{{ end }}
|
|
</form>
|
|
|
|
<form class="toggle" method="POST" action="/artist/{{ .ID }}/ignore-compilations">
|
|
<button type="submit">{{ if .IgnoreCompilations }}Enable compilations{{ else }}Ignore all compilations{{ end }}</button>
|
|
{{ if .IgnoreCompilations }}<span class="sub"> (compilations currently ignored)</span>{{ end }}
|
|
</form>
|
|
|
|
<form class="toggle" method="POST" action="/artist/{{ .ID }}/ignore-live">
|
|
<button type="submit">{{ if .IgnoreLive }}Enable live{{ else }}Ignore all live{{ end }}</button>
|
|
{{ if .IgnoreLive }}<span class="sub"> (live recordings currently ignored)</span>{{ end }}
|
|
</form>
|
|
|
|
<form class="toggle" method="POST" action="/artist/{{ .ID }}/ignore-remix">
|
|
<button type="submit">{{ if .IgnoreRemix }}Enable remixes{{ else }}Ignore all remixes{{ end }}</button>
|
|
{{ if .IgnoreRemix }}<span class="sub"> (remixes currently ignored)</span>{{ end }}
|
|
</form>
|
|
|
|
<h2>Local albums (Subsonic)</h2>
|
|
{{ if .LocalAlbums }}
|
|
<table>
|
|
<thead><tr><th>Title</th></tr></thead>
|
|
<tbody>
|
|
{{ range .LocalAlbums }}
|
|
<tr><td>{{ .Title }}</td></tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
{{ else }}
|
|
<p class="empty">No local albums synced for this artist.</p>
|
|
{{ end }}
|
|
|
|
<h2>Found missing (MusicBrainz)</h2>
|
|
{{ if .Missing }}
|
|
<table>
|
|
<thead>
|
|
<tr><th>Title</th><th>Type</th><th>Date</th><th>Action</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range .Missing }}
|
|
<tr class="{{ if .Ignored }}ignored{{ else }}missing{{ end }}">
|
|
<td>{{ .Title }}</td>
|
|
<td>{{ if .Type }}{{ .Type }}{{ else }}<span class="empty">—</span>{{ end }}</td>
|
|
<td>{{ if .ReleaseDate }}{{ .ReleaseDate }}{{ else }}<span class="empty">—</span>{{ end }}</td>
|
|
<td>
|
|
<form method="POST" action="/artist/{{ $.ID }}/ignore">
|
|
<input type="hidden" name="rgid" value="{{ .RGID }}">
|
|
<button type="submit">Ignore</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
{{ else }}
|
|
<p class="empty">No missing releases for this artist.</p>
|
|
{{ end }}
|
|
</body>
|
|
</html>
|