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>…</p> {{- end}} <hr> </main> <footer> - <p>Generated by <a href="https://github.com/thewhodidthis/gtx">gtx</a> ›</p> + <p>Made with <a href="https://github.com/thewhodidthis/gtx">gtx</a> ›</p> </footer> </body> </html>
home › develop › 95c8a88 › ddd978b