all repos — elgit @ e4d12fc667c9830dd5f08f827b2a70adff58a09b

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

templates: unified repo-header

commit

e4d12fc667c9830dd5f08f827b2a70adff58a09b

parent

3e6a720154b70a9882af14399548e494b1d0089f

1 file changed, 3 insertions(+), 4 deletions(-)

changed files
M templates/commit.htmltemplates/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>