tclip/cmd/web/tmpl/base.tmpl
Xe Iaso 2d60fbc5cb rename to infinipaste
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 16:07:36 +00:00

27 lines
804 B
Cheetah

{{define "header"}}
<!DOCTYPE html>
<html>
<head>
<title>{{.Title}}</title>
<link rel="stylesheet" href="/static/css/xess.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body id="top">
<main>
<nav>
<a href="/">Infinipaste</a>{{if .UserInfo}} - <a href="/paste/list">List</a> - <a href="/help">Help</a>{{end}}
{{if .UserInfo}}<div class="right">{{.UserInfo.DisplayName}} <img style="width:32px;height:32px" src="{{.UserInfo.ProfilePicURL}}" /></div>{{end}}
</nav>
<h1>{{.Title}}</h1>
{{end}}
{{define "footer"}}
<footer>
<p>Made with love by Tailscale.</p>
</footer>
</main>
</body>
</html>
{{end}}