all repos — elgit @ ce71721c6dc80db8af63f2098a1548308e2621b2

fork of legit: web frontend for git, written in go

routes, templates: tree and log views

commit

ce71721c6dc80db8af63f2098a1548308e2621b2

parent

e0f34796a37666058dce61277bc546add707fb2e

1 file changed, 21 insertions(+), 0 deletions(-)

changed files
A 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 }}