all repos — legit @ 5091695e75b2db30b8926d8aa17164c84031bc77

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 := .repo }}
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 style="color: var(--gray);">{{ .Author.Email }}</span></div>
21        {{ end }}
22      </div>
23    </main>
24  </body>
25</html>
26{{ end }}