e132530597
cmd/tailpaste: - better handle the error cases from web cmd/web: - Implement list of pastes - Add contextual navbar for paste list and meta help - Add error page rendering - Add paginated paste listing - Add created_at column - Make paster information less janky on per-paste views Signed-off-by: Xe Iaso <xe@tailscale.com>
27 lines
798 B
Cheetah
27 lines
798 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="/">Paste</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}}
|