~gitpocket/gitpocket

1
266053a6e7bb9c2b05622beea635d12c2088a60d
mainfeed-discovery
gitpocket/templates/layout.html -rw-r--r--1.8 KiB ViewLogBlameView rawPermalink 266053a6e7 feat(basin): light theme, highlighting, latex, avatar crop, rate limits 3 days ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.Title}}</title>
<link rel="stylesheet" href="/static/style.css">
<link rel="stylesheet" href="/static/highlight.css">
{{if .Math}}<link rel="stylesheet" href="/static/katex/katex.min.css">
<script defer src="/static/katex/katex.min.js"></script>
<script defer src="/static/katex/auto-render.min.js"></script>
<script>document.addEventListener("DOMContentLoaded",function(){renderMathInElement(document.body,{delimiters:[{left:"\\(",right:"\\)",display:false},{left:"\\[",right:"\\]",display:true}],throwOnError:false})})</script>{{end}}
</head>
<body>
<header>
<nav class="site">
<a class="brand" href="/">{{.Host}}</a>
<span class="spacer"></span>
{{if .User}}<a href="/~{{.User.Name}}">~{{.User.Name}}</a><a href="/create">New repository</a><a href="/settings">Settings</a><form method="post" action="/logout"><button>Log out</button></form>{{else}}<a href="/login">Log in</a><a href="/register">Register</a>{{end}}
</nav>
{{with .Data}}{{with index . "Page"}}
<div class="repohead">
<h1><a href="/~{{.Repo.Owner.Name}}">~{{.Repo.Owner.Name}}</a>/<a href="/{{.Repo.Path}}">{{.Repo.Name}}</a>{{if .Repo.Private}} <span class="tag">private</span>{{end}}</h1>
{{if .Repo.Description}}<p class="desc">{{.Repo.Description}}</p>{{end}}
<nav class="tabs">
<a href="/{{.Repo.Path}}">Summary</a>
{{if not .Empty}}<a href="/{{.Repo.Path}}/tree/{{.Ref}}/">Tree</a><a href="/{{.Repo.Path}}/log/{{.Ref}}">Log</a><a href="/{{.Repo.Path}}/refs">Refs</a>{{end}}
{{if .Owner}}<a href="/{{.Repo.Path}}/settings">Settings</a>{{end}}
</nav>
</div>
{{end}}{{end}}
</header>
<main>
{{if .Error}}<p class="error">{{.Error}}</p>{{end}}
{{template "content" .}}
</main>
</body>
</html>