all repos — legit @ c165c447685d68c2b0b2293a31937a903394f943

legit - simple git web interface in go (fork)

templates/log.html (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ define "log" }}
<html>
{{ template "head" . }}

  <header>
    <h1>{{ .meta.Title }}</h1>
    <h2>{{ .meta.Description }}</h2>
  </header>
  <body>
    {{ template "nav" . }}
    <main>
      {{ $repo := .name }}
      {{ range .commits }}
      <p><a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ slice .Hash.String 0 8 }}<a>
        &mdash; {{ .Author.Name }}</p>
      <p><pre>{{ .Message }}</pre></p>
      {{ end }}
    </main>
  </body>
</html>
{{ end }}