go-project-template/web/templates/base.html

33 lines
920 B
HTML
Raw Normal View History

2024-05-05 22:10:32 +00:00
<!DOCTYPE HTML>
<html>
<head>
<title>{{ block "title" .}}go-project-template{{ end }}</title>
2024-05-05 22:10:32 +00:00
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/static/main.css" />
</head>
<body>
<div id="wrapper">
2024-07-25 06:01:44 +00:00
<header>
<span class="brand">go-project-template</span>
<span class="right">
{{ if .Authenticated }}
Signed in as <span class="username">{{ .User.Username }}</span>
{{ else }}
<a href="/auth/begin" class="btn-login">login</a>
{{ end }}
</span>
</header>
2024-05-05 22:10:32 +00:00
<div id="main">
{{ block "body" .}}{{ end }}
</div>
<footer>
2024-07-25 06:01:44 +00:00
<span></span>
<span class="version">{{ .Version }}</span>
2024-05-05 22:10:32 +00:00
</footer>
</div>
</body>
</html>