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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/gitlist.qtpl') 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 {

{%s r.Description %}

- {%s r.LastCommit.Hash.String()[0:8] %} - {%s firstLine(r.LastCommit.Message) %} - {%s humanize.Time(r.LastCommit.Author.When) %} + {%s r.LastCommit.Commit().Hash.String()[0:8] %} + {%s firstLine(r.LastCommit.Commit().Message) %} + {%s humanize.Time(r.LastCommit.Commit().Author.When) %}

log -- cgit v1.2.3