diff options
author | Přemysl Janouch <p@janouch.name> | 2019-04-13 22:50:08 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2019-04-13 23:54:24 +0200 |
commit | bcfb9fbc2bc035149a71df1ffef96f23e668e815 (patch) | |
tree | 3a2cad243a1f729cd212fd0432ddbfe7e1362a57 /sklad/base.tmpl | |
parent | f5790dbff9cec6d3fbd09952ba5453ef7a13baf9 (diff) | |
download | sklad-bcfb9fbc2bc035149a71df1ffef96f23e668e815.tar.gz sklad-bcfb9fbc2bc035149a71df1ffef96f23e668e815.tar.xz sklad-bcfb9fbc2bc035149a71df1ffef96f23e668e815.zip |
sklad: implement login and logout
So far there are no other pages, and nothing links to the logout.
Diffstat (limited to 'sklad/base.tmpl')
-rw-r--r-- | sklad/base.tmpl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sklad/base.tmpl b/sklad/base.tmpl new file mode 100644 index 0000000..2070d6e --- /dev/null +++ b/sklad/base.tmpl @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> +<head> + <title>{{ template "Title" }} - sklad</title> + <meta http-equiv=Content-Type content="text/html; charset=utf-8"> + <style> + html, body { min-height: 100vh; } + body { padding: 1em; box-sizing: border-box; + margin: 0 auto; max-width: 50em; + border-left: 1px solid gray; border-right: 1px solid gray; + font-family: sans-serif; } + </style> +</head> +<body> +<h1>sklad</h1> + +{{ if .LoggedIn }} +<form method=post action=/logout> +<input type=submit value="Odhlásit"> +</form> +{{ end }} + +{{ template "Content" . }} +</body> +</html> |