gistea/static/templates/base.tmpl

32 lines
1.2 KiB
Cheetah
Raw Permalink Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<title>Gistea</title>
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-icons.min.css">
<link rel="stylesheet" href="/_/css/gistea.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="bg-dark">
<div class="container">
<header class="navbar">
<section class="navbar-section">
<a href="{{.Domain}}" class="navbar-brand mr-2">Gistea</a>
<a href="{{.GiteaURL}}" class="btn btn-link">Back to Gitea</a>
{{if .Session}}<a href="{{.Domain}}/{{.Session.User}}" class="btn btn-link">Your gists</a>{{end}}
</section>
<section class="navbar-section">
{{if .Session}}
<a href="{{.Domain}}/_/auth/logout" class="navbar-brand mr-2">Logout</a>
{{else}}
<a href="{{.Domain}}/_/auth/login" class="navbar-brand mr-2">Login</a>
{{end}}
</section>
</header>
<div class="divider"></div>
{{tmpl .Page .}}
</div>
</body>
</html>