all repos — legit @ a13ced49e12440e25a4553fd897ca0d009bad11e

web frontend for git

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