From 86eb64311cb85fddcef842f496a8b2e80c7f125b Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Thu, 22 Dec 2022 10:58:41 +0530 Subject: templates: improve this & parent commit --- templates/commit.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'templates') 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 @@
{{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
-

commit: +

+ commit +

{{ .commit.This }}

+
+ {{ if .commit.Parent }} -

parent: +

+ parent +

{{ .commit.Parent }} - +

+
+ {{ end }} -

{{ .stat.FilesChanged }} files changed, -- cgit