Add explicit login functionality
This commit is contained in:
@@ -9,7 +9,15 @@
|
||||
<body data-base="{{.Base}}">
|
||||
<header>
|
||||
<a class="brand" href="{{.Base}}">Uncensored Send</a>
|
||||
{{if .Admin}}<nav><a href="{{.Base}}admin">Administration</a></nav>{{end}}
|
||||
<nav>
|
||||
{{if .User}}
|
||||
{{if .Admin}}<a href="{{.Base}}admin">Administration</a>{{end}}
|
||||
<span class="who">{{.User}}</span>
|
||||
<form method="post" action="{{.Base}}logout"><button type="submit" class="link">Log out</button></form>
|
||||
{{else}}
|
||||
<a href="{{.Base}}login">Log in</a>
|
||||
{{end}}
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
{{template "content" .}}
|
||||
|
||||
Reference in New Issue
Block a user