history.gohtml
4533 bytes
1{{ define "commits" }}<!doctype html>
2<html lang="en">
3<head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>Commits · {{ .Repository }} · {{ .ServerName }}</title>
7 <link rel="stylesheet" href="/@/assets/site.css">
8</head>
9<body>
10 {{ template "site-header" . }}
11 <main class="page-shell">
12 <nav class="breadcrumb" aria-label="Breadcrumb"><a href="{{ .OverviewURL }}">{{ .Repository }}</a><span aria-hidden="true">/</span><code>{{ .Ref }}</code></nav>
13 <section class="panel history-panel">
14 <div class="section-heading"><div><h1>Commits</h1></div></div>
15 <ol class="commit-list">{{ range .Entries }}
16 <li><article><h2><a href="{{ .URL }}">{{ .Subject }}</a></h2><p><code>{{ .ShortHash }}</code><span>·</span>{{ .Author }}<span>·</span><time>{{ .Date }}</time></p></article></li>
17 {{ else }}<li class="empty-state">No commits found.</li>{{ end }}</ol>
18 {{ if or .PreviousURL .NextURL }}<nav class="pagination" aria-label="Commit history pages">{{ if .PreviousURL }}<a class="button button-secondary" href="{{ .PreviousURL }}">{{ template "icon-arrow-left" }}<span>Previous</span></a>{{ end }}{{ if .NextURL }}<a class="button button-secondary" href="{{ .NextURL }}"><span>Next</span>{{ template "icon-arrow-right" }}</a>{{ end }}</nav>{{ end }}
19 </section>
20 </main>
21</body>
22</html>{{ end }}
23
24{{ define "commit" }}<!doctype html>
25<html lang="en">
26<head>
27 <meta charset="utf-8">
28 <meta name="viewport" content="width=device-width, initial-scale=1">
29 <title>Commit {{ .Hash }} · {{ .Repository }} · {{ .ServerName }}</title>
30 <link rel="stylesheet" href="/@/assets/site.css">
31</head>
32<body>
33 {{ template "site-header" . }}
34 <main class="page-shell">
35 <nav class="breadcrumb" aria-label="Breadcrumb"><a href="{{ .OverviewURL }}">{{ .Repository }}</a><span aria-hidden="true">/</span><span>Commit</span></nav>
36 <article class="panel commit-panel">
37 <h1><code>{{ .Hash }}</code></h1>
38 <dl class="commit-details"><dt>Author</dt><dd>{{ .Author }}</dd><dt>Committer</dt><dd>{{ .Committer }}</dd><dt>Date</dt><dd><time>{{ .Timestamp }}</time></dd></dl>
39 <section><h2>Message</h2><pre class="commit-message">{{ .Message }}</pre></section>
40 <section><h2>Diff</h2>{{ if .Truncated }}<p class="notice">This diff is truncated to protect this page.</p>{{ end }}<pre class="source"><code>{{ .Diff }}</code></pre></section>
41 </article>
42 </main>
43</body>
44</html>{{ end }}
45
46{{ define "refs" }}<!doctype html>
47<html lang="en">
48<head>
49 <meta charset="utf-8">
50 <meta name="viewport" content="width=device-width, initial-scale=1">
51 <title>Branches and tags · {{ .Repository }} · {{ .ServerName }}</title>
52 <link rel="stylesheet" href="/@/assets/site.css">
53</head>
54<body>
55 {{ template "site-header" . }}
56 <main class="page-shell">
57 <nav class="breadcrumb" aria-label="Breadcrumb"><a href="{{ .OverviewURL }}">{{ .Repository }}</a><span aria-hidden="true">/</span><span>Branches and tags</span></nav>
58 <section class="panel refs-panel">
59 <div class="section-heading"><div><h1>Branches and tags</h1></div></div>
60 <section aria-labelledby="branches-heading"><h2 id="branches-heading">Branches</h2><div class="table-wrap"><table><thead><tr><th scope="col">Name</th><th scope="col">Commit</th><th scope="col">Subject</th><th scope="col">Date</th></tr></thead><tbody>{{ range .Branches }}<tr><td><a class="file-link" href="{{ .TreeURL }}">{{ template "icon-branch" }}<span>{{ .Name }}</span></a></td><td>{{ if .CommitURL }}<a href="{{ .CommitURL }}"><code>{{ .ShortHash }}</code></a>{{ else }}<code>{{ .ShortHash }}</code>{{ end }}</td><td>{{ .Subject }}</td><td><time>{{ .Date }}</time></td></tr>{{ else }}<tr><td colspan="4">No branches.</td></tr>{{ end }}</tbody></table></div></section>
61 <section aria-labelledby="tags-heading"><h2 id="tags-heading">Tags</h2><div class="table-wrap"><table><thead><tr><th scope="col">Name</th><th scope="col">Commit</th><th scope="col">Subject</th><th scope="col">Date</th></tr></thead><tbody>{{ range .Tags }}<tr><td><a class="file-link" href="{{ .TreeURL }}">{{ template "icon-branch" }}<span>{{ .Name }}</span></a></td><td>{{ if .CommitURL }}<a href="{{ .CommitURL }}"><code>{{ .ShortHash }}</code></a>{{ else }}<code>{{ .ShortHash }}</code>{{ end }}</td><td>{{ .Subject }}</td><td><time>{{ .Date }}</time></td></tr>{{ else }}<tr><td colspan="4">No tags.</td></tr>{{ end }}</tbody></table></div></section>
62 </section>
63 </main>
64</body>
65</html>{{ end }}