diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-22 10:58:41 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-22 10:58:41 +0530 |
commit | 86eb64311cb85fddcef842f496a8b2e80c7f125b (patch) | |
tree | 6edab19776e239916a27a0a0ff59b010a66568e7 /templates | |
parent | 1375740735b2085d638b53d116c9efeb199ed4d6 (diff) | |
download | legit-86eb64311cb85fddcef842f496a8b2e80c7f125b.tar.gz legit-86eb64311cb85fddcef842f496a8b2e80c7f125b.tar.bz2 legit-86eb64311cb85fddcef842f496a8b2e80c7f125b.zip |
templates: improve this & parent commit
Diffstat (limited to '')
-rw-r--r-- | templates/commit.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/templates/commit.html b/templates/commit.html index 440204b..bf8da15 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -15,16 +15,23 @@ <div>{{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div> </div> - <p>commit: <a href="/{{ .name }}/commit/{{ .commit.This }}"> + <div> + <strong>commit</strong> + <p><a href="/{{ .name }}/commit/{{ .commit.This }}"> {{ .commit.This }} </a> </p> + </div> + {{ if .commit.Parent }} - <p>parent: <a href="/{{ .name }}/commit/{{ .commit.Parent }}"> + <div> + <strong>parent</strong> + <p><a href="/{{ .name }}/commit/{{ .commit.Parent }}"> {{ .commit.Parent }} - </a> + </a></p> + </div> + {{ end }} - </p> <div class="diff-stat"> <div> {{ .stat.FilesChanged }} files changed, |