blob: ab9e633106d3a9cd20a9139a788b026891c176f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- the meta tags must come first -->
<title>{{.title | html}}</title>
<link href="/style.css" rel="stylesheet">
{{.head}}
</head>
<body>
<header>
{{if eq .userid ""}}
<p>You are not logged in</p>
{{else}}
<p>You are logged in as {{.session.userid | html}}</p>
<form action="/session" method="POST">
<input type="hidden" name="_method" value="DELETE" />
<input type="hidden" name="_xsrf_token" value="{{.session.id | html}}" />
<input type="submit" value="Log out" />
</form>
{{endif}}
</header>
<article>
{{.body}}
</article>
</body>
</html>
|