gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Jan. 26 '23 17:55:47
Commit
1561dcd04cff1d101ff32c6812e3b05db4ce145f
Parent
b9c9a8e4cbd7f09f5acc541b66bf402df3098d79
Changes
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>&hellip;</p>
-      {{- end}}
+      <pre>{{$.Body}}</pre>
       <hr>
     </main>
+    {{- end }}
     <footer>
-      <p>Generated by <a href="http://hssl.cs.jhu.edu/~neal/git2html">git2html</a> &rsaquo;</p>
+      <p>Made with <a href="https://github.com/thewhodidthis/gtx">gtx</a> &rsaquo;</p>
     </footer>
   </body>
 </html>