aboutsummaryrefslogtreecommitdiff
path: root/templates/gitlist.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-02-08 22:07:17 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-02-08 22:07:17 +0100
commitb9bfb5a86e364838355c99402977fff38db24285 (patch)
tree63af4032b18436cd180b9255ef32e1ce5747be1a /templates/gitlist.qtpl
parent178c7159af429496ac5e14b59f0822febe408760 (diff)
downloadcerrado-b9bfb5a86e364838355c99402977fff38db24285.tar.gz
cerrado-b9bfb5a86e364838355c99402977fff38db24285.tar.bz2
cerrado-b9bfb5a86e364838355c99402977fff38db24285.zip
feat: Add time to commit logs
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r--templates/gitlist.qtpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl
index 4f25fc6..bb07e7f 100644
--- a/templates/gitlist.qtpl
+++ b/templates/gitlist.qtpl
@@ -1,3 +1,4 @@
+{% import "git.gabrielgio.me/cerrado/pkg/humanize" %}
{% import "git.gabrielgio.me/cerrado/pkg/service" %}
{% import "context" %}
{% import "strings" %}
@@ -39,10 +40,11 @@ type GitListPage struct {
</div>
</hr>
<p>{%s r.Description %}</p>
- <p style="background: #dadada">
- <a 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 title="{%s r.LastCommit.Author.Email %}">{%s r.LastCommit.Author.Name %}</a> -
- {%s firstLine(r.LastCommit.Message) %}</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.Format("2006-01-02 15:04:05 UTC")%}">{%s humanize.Time(r.LastCommit.Author.When) %}</a>
+ </div>
<p>
<a href="/{%s r.Name %}/log/{%s r.Ref %}/">log</a>
<a href="/{%s r.Name %}/tree/{%s r.Ref %}/">tree</a>