diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2025-02-15 17:33:24 +0100 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2025-02-15 17:33:24 +0100 |
commit | 27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33 (patch) | |
tree | b1e4df482d7c78e1d7fc56e862b7c266ba2b8e8b /templates/gitlist.qtpl | |
parent | 4708ad8ffd96f3b457ff9d3a9660e7d0aa59a4b1 (diff) | |
download | cerrado-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')
-rw-r--r-- | templates/gitlist.qtpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl index 3cd133f..e62e68a 100644 --- a/templates/gitlist.qtpl +++ b/templates/gitlist.qtpl @@ -41,9 +41,9 @@ type GitListPage struct { </hr> <p>{%s r.Description %}</p> <div class="event-commit row"> - <a class="col-xl-2" title="{%s r.LastCommit.Hash.String() %}" href="/{%s r.Name %}/commit/{%s r.LastCommit.Hash.String() %}/">{%s r.LastCommit.Hash.String()[0:8] %}</a> - <a class="col-xl-7"> {%s firstLine(r.LastCommit.Message) %}</a> - <a class="col-xl-3" title="{%s r.LastCommit.Author.When.UTC().Format("2006-01-02 15:04:05")%} UTC">{%s humanize.Time(r.LastCommit.Author.When) %}</a> + <a class="col-xl-2" title="{%s r.LastCommit.Commit().Hash.String() %}" href="/{%s r.Name %}/commit/{%s r.LastCommit.Commit().Hash.String() %}/">{%s r.LastCommit.Commit().Hash.String()[0:8] %}</a> + <a class="col-xl-7"> {%s firstLine(r.LastCommit.Commit().Message) %}</a> + <a class="col-xl-3" title="{%s r.LastCommit.Commit().Author.When.UTC().Format("2006-01-02 15:04:05")%} UTC">{%s humanize.Time(r.LastCommit.Commit().Author.When) %}</a> </div> <p> <a href="/{%s r.Name %}/log/{%s r.Ref %}/">log</a> |