all repos — legit @ 4eaaf451295ce9b541769d1322543f2d982ef5b0

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