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