all repos — legit @ 85d1bf73559536405d4eb22a6249a1e8d9030be3

web frontend for git

templates/log.html (view raw)

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