frierena personal git archive

frieren

a self-hosted git server in one binary — everyone reads, only the owner writes

frieren / templates / commits.htmlmaster

534 B · raw

{{define "commits"}}{{template "pagehead" .}}
{{template "repohead" .}}
{{$p := .}}
{{if .Commits}}
<table class="commits">
  {{range .Commits}}
  <tr>
    <td class="hash"><a href="/{{$p.Repo.Name}}/commit/{{.Hash}}">{{.Short}}</a></td>
    <td class="subject"><a href="/{{$p.Repo.Name}}/commit/{{.Hash}}">{{.Subject}}</a></td>
    <td class="author">{{.Author}}</td>
    <td class="when">{{ago .When}}</td>
  </tr>
  {{end}}
</table>
{{else}}
<div class="empty"><p>No commits yet.</p></div>
{{end}}
{{template "pagefoot" .}}{{end}}