From 8a27f2be403afe15dad4cf98f23bceb989311e2e Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 5 Dec 2025 09:43:23 +0100 Subject: [PATCH 1/6] Improve and unify anonymous user e-mail display --- templates/repo/commit_page.tmpl | 13 ++++++++----- templates/repo/commits_list.tmpl | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index 68ccf9d275f4a..aabfed35b3543 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -128,19 +128,22 @@
-
- {{if .Author}} + {{if .Author}} +
{{ctx.AvatarUtils.Avatar .Author 20}} {{if .Author.FullName}} {{.Author.FullName}} {{else}} {{.Commit.Author.Name}} {{end}} - {{else}} +
+ {{else}} +
{{ctx.AvatarUtils.AvatarByEmail .Commit.Author.Email .Commit.Author.Email 20}} {{.Commit.Author.Name}} - {{end}} -
+
+ {{end}} + {{DateUtils.TimeSince .Commit.Author.When}} diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 959f2a9398575..c38eaf90362fb 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -22,8 +22,8 @@ {{end}} {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-2"}}{{$userName}} {{else}} - {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-2"}} - {{$userName}} + {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Email 28 "tw-mr-2"}} + {{$userName}} {{end}}
From 0809e97bb27ed7a36e1dbb1d29f95aaed6be5a1b Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 5 Dec 2025 09:47:11 +0100 Subject: [PATCH 2/6] add to latest --- templates/repo/latest_commit.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/repo/latest_commit.tmpl b/templates/repo/latest_commit.tmpl index cff338949f219..a001b5ca4724a 100644 --- a/templates/repo/latest_commit.tmpl +++ b/templates/repo/latest_commit.tmpl @@ -12,7 +12,9 @@ {{else}} {{if .LatestCommit.Author}} {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24}} - {{.LatestCommit.Author.Name}} + + {{.LatestCommit.Author.Name}} + {{end}} {{end}} From 8c78ba8b43da588b02a02c103db55f238537ea8b Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 5 Dec 2025 09:49:13 +0100 Subject: [PATCH 3/6] revert whitespace --- templates/repo/latest_commit.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/repo/latest_commit.tmpl b/templates/repo/latest_commit.tmpl index a001b5ca4724a..a5a8820acdda1 100644 --- a/templates/repo/latest_commit.tmpl +++ b/templates/repo/latest_commit.tmpl @@ -12,9 +12,7 @@ {{else}} {{if .LatestCommit.Author}} {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24}} - - {{.LatestCommit.Author.Name}} - + {{.LatestCommit.Author.Name}} {{end}} {{end}} From 1ec7498c6aaade3b44ed379ebcc71ddde1ce8ac0 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 5 Dec 2025 09:49:52 +0100 Subject: [PATCH 4/6] fix --- templates/repo/latest_commit.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/latest_commit.tmpl b/templates/repo/latest_commit.tmpl index a5a8820acdda1..e328b48e844c5 100644 --- a/templates/repo/latest_commit.tmpl +++ b/templates/repo/latest_commit.tmpl @@ -12,7 +12,7 @@ {{else}} {{if .LatestCommit.Author}} {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24}} - {{.LatestCommit.Author.Name}} + {{.LatestCommit.Author.Name}} {{end}} {{end}} From d714d2ec0fdfe8b77a4143a01e0c5c9c36ae8661 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 5 Dec 2025 10:25:29 +0100 Subject: [PATCH 5/6] restart ci From b14c757a819f2641e18568032bbc997756752ba8 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 5 Dec 2025 10:50:01 +0100 Subject: [PATCH 6/6] lint --- templates/repo/commit_page.tmpl | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index aabfed35b3543..796566017ecbb 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -144,7 +144,6 @@ {{end}} - {{DateUtils.TimeSince .Commit.Author.When}}