all repos — legit @ d58151dbb07a5d5dd7eaf6fc9f12566898823a46

web frontend for git, written in go

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          <pre>{{ .Message }}</pre>
19        </div>
20        <div class="commit-info">
21          {{ .Author.Name }} <span class="commit-email">{{ .Author.Email }}</span>
22          <div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
23        </div>
24        {{ end }}
25      </div>
26    </main>
27  </body>
28</html>
29{{ end }}