all repos — legit @ 3e6a720154b70a9882af14399548e494b1d0089f

web frontend for git, written in go

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      <div class="log">
14        {{ range .commits }}
15        <div>
16          <div><a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ slice .Hash.String 0 8 }}</a></div>
17          <div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
18          <pre>{{ .Message }}</pre>
19        </div>
20        <div class="commit-info">{{ .Author.Name }} <span class="commit-email">{{ .Author.Email }}</span></div>
21        {{ end }}
22      </div>
23    </main>
24  </body>
25</html>
26{{ end }}