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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{.Parent}}</title>
</head>
<body>
{{- with .Commit}}
<header>
<h1><a href="/">{{.Project}}</a>: Diff: {{.Abbr}} {{$.Parent}}</h1>
</header>
{{- end}}
{{- with .Commit}}
<main>
<hr>
<h2>Branch: <a href="/branch/{{.Branch}}/">{{.Branch}}</a></h2>
<h3>Commit: <a href="/commit/{{.Hash}}/">{{.Hash}}</a></h3>
<dl>
<dt>Author</dt>
<dd>{{.Author.Name}} <{{.Author.Email}}></dd>
<dt>Date</dt>
<dd>{{.Date.Format "Jan. 02 '06 15:04:05"}}</dd>
<dt>Parent</dt>
<dd>
<a href="/commit/{{$.Parent}}">{{$.Parent}}</a>
</dd>
</dl>
<pre>{{$.Body}}</pre>
<hr>
</main>
{{- end }}
<footer>
<p>Made with <a href="https://github.com/thewhodidthis/gtx">gtx</a> ›</p>
</footer>
</body>
</html>
|