tracks can be edited! + major template overhaul
This commit is contained in:
parent
99b6a21179
commit
63122eb428
21 changed files with 674 additions and 221 deletions
|
@ -1,5 +1,5 @@
|
|||
{{define "head"}}
|
||||
<title>login - ari melody 💫</title>
|
||||
<title>Login - ari melody 💫</title>
|
||||
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
|
||||
|
||||
<style>
|
||||
|
@ -15,21 +15,18 @@ a.discord {
|
|||
|
||||
{{define "content"}}
|
||||
<main>
|
||||
|
||||
{{if .Token}}
|
||||
|
||||
<meta http-equiv="refresh" content="5;url=/admin/" />
|
||||
<meta name="token" content="{{.Token}}" />
|
||||
<p>
|
||||
Logged in successfully.
|
||||
You should be redirected to <a href="/admin">/admin</a> in 5 seconds.
|
||||
<script>
|
||||
const token = document.querySelector("meta[name=token]").content;
|
||||
localStorage.setItem("arime-token", btoa(token));
|
||||
</script>
|
||||
</p>
|
||||
{{else}}
|
||||
<p>Log in with <a href="{{.DiscordURI}}" class="discord">Discord</a>.</p>
|
||||
{{end}}
|
||||
|
||||
{{else}}
|
||||
|
||||
<p>Log in with <a href="{{.DiscordURI}}" class="discord">Discord</a>.</p>
|
||||
|
||||
{{end}}
|
||||
</main>
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue