all repos — legit @ c75aa9f52fd81f4591ed42882c44d26b04d5b0e2

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 }}