diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-18 10:42:18 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-18 10:42:18 +0530 |
commit | e4d12fc667c9830dd5f08f827b2a70adff58a09b (patch) | |
tree | c052c87caf09ddc785c1a86454aeee00dcfcf774 /templates/commit.html | |
parent | 3e6a720154b70a9882af14399548e494b1d0089f (diff) | |
download | legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.gz legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.bz2 legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.zip |
templates: unified repo-header
Diffstat (limited to '')
-rw-r--r-- | templates/commit.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/commit.html b/templates/commit.html index b4061aa..9ab945a 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -2,10 +2,7 @@ <html> {{ template "head" . }} - <header> - <h1>{{ .meta.Title }}</h1> - <h2>{{ .meta.Description }}</h2> - </header> + {{ template "repoheader" . }} <body> {{ template "nav" . }} <main> @@ -19,9 +16,11 @@ {{ .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> |