all repos — legit @ 5ea7cae973e8329ae768c35bda41e656f974815d

web frontend for git, written in go

templates/log.html (view raw)

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