summaryrefslogtreecommitdiffstats
path: root/templates/log.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/log.html')
-rw-r--r--templates/log.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/log.html b/templates/log.html
new file mode 100644
index 0000000..357a5a8
--- /dev/null
+++ b/templates/log.html
@@ -0,0 +1,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 }}