From 27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 15 Feb 2025 17:33:24 +0100 Subject: feat: Add wrapper for commit Add a wrapper to the commit log that also contains possible reference. This will be useful once to later display the reference in the commit log. --- templates/gitlist.qtpl.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/gitlist.qtpl.go') diff --git a/templates/gitlist.qtpl.go b/templates/gitlist.qtpl.go index 1c0fdac..d2b28d9 100644 --- a/templates/gitlist.qtpl.go +++ b/templates/gitlist.qtpl.go @@ -156,7 +156,7 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Conte
`) //line templates/gitlist.qtpl:44 - qw422016.E().S(r.LastCommit.Hash.String()[0:8]) + qw422016.E().S(r.LastCommit.Commit().Hash.String()[0:8]) //line templates/gitlist.qtpl:44 qw422016.N().S(` `) //line templates/gitlist.qtpl:45 - qw422016.E().S(firstLine(r.LastCommit.Message)) + qw422016.E().S(firstLine(r.LastCommit.Commit().Message)) //line templates/gitlist.qtpl:45 qw422016.N().S(` `) //line templates/gitlist.qtpl:46 - qw422016.E().S(humanize.Time(r.LastCommit.Author.When)) + qw422016.E().S(humanize.Time(r.LastCommit.Commit().Author.When)) //line templates/gitlist.qtpl:46 qw422016.N().S(`
-- cgit v1.2.3