22 lines
575 B
HTML
22 lines
575 B
HTML
{{ 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>
|
|
— {{ .Author.Name }}
|
|
<span title="{{ .Author.When }}">{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</span></p>
|
|
<p><pre>{{ .Message }}</pre></p>
|
|
{{ end }}
|
|
</main>
|
|
</body>
|
|
</html>
|
|
{{ end }}
|