gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Jan. 25 '23 21:29:27
Commit
ddd978bdf49c3e7f16cfc03c556f43bfd1f8ec8c
Parent
95c8a88cbdbdc9d239a28a5987f3b1e42070fb23
Changes
diff --git a/branch.html.tmpl b/branch.html.tmpl
index 1e064cb..9faf9bb 100644
--- a/branch.html.tmpl
+++ b/branch.html.tmpl
@@ -6,27 +6,43 @@
   </head>
   <body>
     <header>
-      <h1><a href="./">{{.Name}}</a></h1>
+      <h1><a href="/">Project</a>: Branch: <a href="./">{{.Name}}</a></h1>
     </header>
     <main>
       <hr>
       {{- with $list := .Commits}}
-      <ul>
+      {{- with index $list 0 }}
+      <h2><a href="/commit/{{.Hash}}/">HEAD</a></h2>
+      {{- end}}
+      <table>
+        <thead>
+          <tr>
+            <th>Date</th>
+            <th>Commit</th>
+            <th>Subject</th>
+            <th>Author</th>
+          </tr>
+        </thead>
+        <tbody>
         {{- range $list}}
-        <li>
-          <a href="{{.Hash}}">{{.Subject}}</a>:
-          <span>{{.Author.Name}} <{{.Author.Email}}></span>
-          <time datetime="{{.Date.Format "2006-01-02"}}">{{.Date.Format "Jan. 02 '06 15:04:05"}}</time>
-        </li>
+          <tr>
+            <td>
+              <time datetime="{{.Date.Format "2006-01-02"}}">{{.Date.Format "01/02/06 15:04"}}</time>
+            </td>
+            <td><code>{{.Abbr}}</code></td>
+            <td><a href="/commit/{{.Hash}}/">{{.Subject}}</a></td>
+            <td><a href="mailto:{{.Author.Email}}">{{.Author.Name}}</a></td>
+          </tr>
         {{- end}}
-      </ul>
+        </tbody>
+      </table>
       {{- else}}
       <p>&hellip;</p>
       {{- end}}
       <hr>
     </main>
     <footer>
-      <p>Generated by <a href="https://github.com/thewhodidthis/gtx">gtx</a> &rsaquo;</p>
+      <p>Made with <a href="https://github.com/thewhodidthis/gtx">gtx</a> &rsaquo;</p>
     </footer>
   </body>
 </html>