aboutsummaryrefslogtreecommitdiff
path: root/templates/gitlist.qtpl.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-02-15 17:33:24 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-02-15 17:33:24 +0100
commit27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33 (patch)
treeb1e4df482d7c78e1d7fc56e862b7c266ba2b8e8b /templates/gitlist.qtpl.go
parent4708ad8ffd96f3b457ff9d3a9660e7d0aa59a4b1 (diff)
downloadcerrado-27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33.tar.gz
cerrado-27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33.tar.bz2
cerrado-27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33.zip
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.
Diffstat (limited to 'templates/gitlist.qtpl.go')
-rw-r--r--templates/gitlist.qtpl.go12
1 files changed, 6 insertions, 6 deletions
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
<div class="event-commit row">
<a class="col-xl-2" title="`)
//line templates/gitlist.qtpl:44
- qw422016.E().S(r.LastCommit.Hash.String())
+ qw422016.E().S(r.LastCommit.Commit().Hash.String())
//line templates/gitlist.qtpl:44
qw422016.N().S(`" href="/`)
//line templates/gitlist.qtpl:44
@@ -164,25 +164,25 @@ func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer, ctx context.Conte
//line templates/gitlist.qtpl:44
qw422016.N().S(`/commit/`)
//line templates/gitlist.qtpl:44
- qw422016.E().S(r.LastCommit.Hash.String())
+ qw422016.E().S(r.LastCommit.Commit().Hash.String())
//line templates/gitlist.qtpl:44
qw422016.N().S(`/">`)
//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(`</a>
<a class="col-xl-7"> `)
//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(`</a>
<a class="col-xl-3" title="`)
//line templates/gitlist.qtpl:46
- qw422016.E().S(r.LastCommit.Author.When.UTC().Format("2006-01-02 15:04:05"))
+ qw422016.E().S(r.LastCommit.Commit().Author.When.UTC().Format("2006-01-02 15:04:05"))
//line templates/gitlist.qtpl:46
qw422016.N().S(` UTC">`)
//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(`</a>
</div>