templates: unified repo-header
1 file changed, 3 insertions(+), 4 deletions(-)
changed files
M templates/commit.html → templates/commit.html
@@ -2,10 +2,7 @@ {{ define "commit" }} <html> {{ template "head" . }} - <header> - <h1>{{ .meta.Title }}</h1> - <h2>{{ .meta.Description }}</h2> - </header> + {{ template "repoheader" . }} <body> {{ template "nav" . }} <main>@@ -19,9 +16,11 @@ <p>commit: <a href="/{{ .name }}/commit/{{ .commit.This }}"> {{ .commit.This }} </a> </p> + {{ if .commit.Parent }} <p>parent: <a href="/{{ .name }}/commit/{{ .commit.Parent }}"> {{ .commit.Parent }} </a> + {{ end }} </p> <div class="diff-stat"> <div>