2022-07-09 05:03:13 +00:00
|
|
|
<!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">
|
2022-07-11 04:40:18 +00:00
|
|
|
<link rel="stylesheet" href="/_/css/gistea.css">
|
2022-07-09 05:03:13 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
</head>
|
2022-07-11 04:40:18 +00:00
|
|
|
<body class="bg-dark">
|
2022-07-09 05:03:13 +00:00
|
|
|
<div class="container">
|
|
|
|
<header class="navbar">
|
|
|
|
<section class="navbar-section">
|
2022-07-11 04:40:18 +00:00
|
|
|
<a href="{{.Domain}}" class="navbar-brand mr-2">Gistea</a>
|
|
|
|
<a href="{{.GiteaURL}}" class="btn btn-link">Back to Gitea</a>
|
2022-07-16 04:36:38 +00:00
|
|
|
{{if .Session}}<a href="{{.Domain}}/{{.Session.User}}" class="btn btn-link">Your gists</a>{{end}}
|
2022-07-09 05:03:13 +00:00
|
|
|
</section>
|
2022-07-11 04:40:18 +00:00
|
|
|
<section class="navbar-section">
|
2022-07-16 04:36:38 +00:00
|
|
|
{{if .Session}}
|
|
|
|
<a href="{{.Domain}}/_/auth/logout" class="navbar-brand mr-2">Logout</a>
|
|
|
|
{{else}}
|
2022-07-11 04:40:18 +00:00
|
|
|
<a href="{{.Domain}}/_/auth/login" class="navbar-brand mr-2">Login</a>
|
2022-07-16 04:36:38 +00:00
|
|
|
{{end}}
|
2022-07-11 04:40:18 +00:00
|
|
|
</section>
|
2022-07-09 05:03:13 +00:00
|
|
|
</header>
|
|
|
|
<div class="divider"></div>
|
2022-07-11 04:40:18 +00:00
|
|
|
{{tmpl .Page .}}
|
2022-07-09 05:03:13 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|