diff --git a/diff.html.tmpl b/diff.html.tmpl index 3c8151e..cd6b385 100644 --- a/diff.html.tmpl +++ b/diff.html.tmpl @@ -2,29 +2,35 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title>{{.Title}}</title> + <title>{{.Parent}}</title> </head> <body> + {{- with .Commit}} <header> - <h1><a href="./">{{.Title}}</a></h1> + <h1><a href="/">{{.Project}}</a>: Diff: {{.Abbr}} {{$.Parent}}</h1> </header> + {{- end}} + {{- with .Commit}} <main> <hr> - {{- range $i, $info := .List}} + <h2>Branch: <a href="/branch/{{.Branch}}/">{{.Branch}}</a></h2> + <h3>Commit: <a href="/commit/{{.Hash}}/">{{.Hash}}</a></h3> <dl> - <dt> - <a href="mailto:{{.Committer.Email}}">{{.Committer.Name}}</a> - </dt> - <dd>{{.Committer.When.Format "Jan. 02 '06 15:04:05"}}</dd> - <dd><pre>{{.Message}}</pre></dd> + <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> - {{- else}} - <p>…</p> - {{- end}} + <pre>{{$.Body}}</pre> <hr> </main> + {{- end }} <footer> - <p>Generated by <a href="http://hssl.cs.jhu.edu/~neal/git2html">git2html</a> ›</p> + <p>Made with <a href="https://github.com/thewhodidthis/gtx">gtx</a> ›</p> </footer> </body> </html>
home › develop › b9c9a8e › 1561dcd