all repos — legit @ abe300762f2f01cddeabad1bc98b0dfee599a5e8

web frontend for git

templates/log.html (view raw)

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