Add better template
This commit is contained in:
parent
369849a493
commit
4131f77e9f
|
@ -1,23 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Ekster</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ekster - Microsub server</h1>
|
||||
<p><a href="/settings">Settings</a></p>
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title">Ekster - Microsub server</h1>
|
||||
|
||||
{{ if .Session.LoggedIn }}
|
||||
<p><a href="/settings">Settings</a></p>
|
||||
|
||||
SUCCESS Me = {{ .Session.Me }}
|
||||
<h2>Logout</h2>
|
||||
<form action="/auth/logout" method="post">
|
||||
{{ if .Session.LoggedIn }}
|
||||
|
||||
SUCCESS Me = {{ .Session.Me }}
|
||||
|
||||
<h2 class="title">Logout</h2>
|
||||
|
||||
<form action="/auth/logout" method="post">
|
||||
<button type="submit">Logout</button>
|
||||
</form>
|
||||
{{ else }}
|
||||
<h2>Sign in to Ekster</h2>
|
||||
<form action="/auth" method="post">
|
||||
<input type="text" name="url" placeholder="https://example.com/">
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
</form>
|
||||
{{ else }}
|
||||
<h2 class="title">Sign in to Ekster</h2>
|
||||
|
||||
<form action="/auth" method="post">
|
||||
<div class="field">
|
||||
<label class="label" for="url"></label>
|
||||
<div class="control">
|
||||
<input type="text" name="url" id="url" placeholder="https://example.com/">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-grouped">
|
||||
<div class="control">
|
||||
<button type="submit" class="button">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue
Block a user