all repos — legit @ 1574bbecb5b2856b2018d064a32d2e7f484a58b1

web frontend for git, written in go

templates/log.html (view raw)

 1{{ define "log" }}
 2<html>
 3{{ template "head" . }}
 4
 5  {{ template "repoheader" . }}
 6  <body>
 7    {{ template "nav" . }}
 8    <main>
 9      {{ $repo := .name }}
10      <div class="log">
11        {{ range .commits }}
12        <div>
13          <div><a href="/{{ $repo }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div>
14          <pre>{{ .Message }}</pre>
15        </div>
16        <div class="commit-info">
17          {{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a>
18          <div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
19        </div>
20        {{ end }}
21      </div>
22    </main>
23  </body>
24</html>
25{{ end }}