From 86bb2538bb299ce06d87644900ef9e2c73563f4b Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Wed, 3 Jun 2026 20:18:40 +0800 Subject: [PATCH] fix(templates): cross-validate against official Gitea mail templates - Fix INK theme: replace .ActiveCodeLives with correct field, remove from non-auth contexts (8 files) - Fix hardcoded button text: use locale key mail.view_it_on in ember, heritage, ink, mono, terminal, terra (30+ files) - Add missing {{if .CanReply}}mail.reply{{end}} block to all 10 themes default.tmpl - Add missing mail.release.note locale label to all 10 themes release.tmpl - Add missing mail.team_invite.text_3 to ink and terra team_invite.tmpl - Add missing blockquote CSS to aurora, ink, mono, neon, terra default.tmpl Verified: all 110 templates compile successfully with Go build-preview. Co-Authored-By: Claude Opus 4.8 --- themes/aurora/mail/repo/issue/default.tmpl | 5 +++-- themes/aurora/mail/repo/release.tmpl | 10 +++++----- themes/bloom/mail/repo/issue/default.tmpl | 3 ++- themes/bloom/mail/repo/release.tmpl | 1 + themes/ember/mail/repo/actions/workflow_run.tmpl | 2 +- themes/ember/mail/repo/collaborator.tmpl | 2 +- themes/ember/mail/repo/issue/assigned.tmpl | 2 +- themes/ember/mail/repo/issue/default.tmpl | 4 ++-- themes/ember/mail/repo/release.tmpl | 3 ++- themes/ember/mail/repo/transfer.tmpl | 2 +- themes/heritage/mail/repo/actions/workflow_run.tmpl | 2 +- themes/heritage/mail/repo/collaborator.tmpl | 2 +- themes/heritage/mail/repo/issue/assigned.tmpl | 2 +- themes/heritage/mail/repo/issue/default.tmpl | 4 ++-- themes/heritage/mail/repo/release.tmpl | 3 ++- themes/heritage/mail/repo/transfer.tmpl | 2 +- themes/horizon/mail/repo/issue/default.tmpl | 5 +++-- themes/horizon/mail/repo/release.tmpl | 3 ++- themes/ink/mail/org/team_invite.tmpl | 4 ++-- themes/ink/mail/repo/actions/workflow_run.tmpl | 3 +-- themes/ink/mail/repo/collaborator.tmpl | 3 +-- themes/ink/mail/repo/issue/assigned.tmpl | 3 +-- themes/ink/mail/repo/issue/default.tmpl | 6 +++--- themes/ink/mail/repo/release.tmpl | 6 +++--- themes/ink/mail/repo/transfer.tmpl | 3 +-- themes/ink/mail/user/auth/register_notify.tmpl | 3 +-- themes/ink/mail/user/auth/reset_passwd.tmpl | 4 ++-- themes/mono/mail/repo/actions/workflow_run.tmpl | 4 ++-- themes/mono/mail/repo/collaborator.tmpl | 4 ++-- themes/mono/mail/repo/issue/assigned.tmpl | 4 ++-- themes/mono/mail/repo/issue/default.tmpl | 5 +++-- themes/mono/mail/repo/release.tmpl | 6 +++--- themes/mono/mail/repo/transfer.tmpl | 4 ++-- themes/neon/mail/repo/issue/default.tmpl | 5 +++-- themes/neon/mail/repo/release.tmpl | 10 +++++----- themes/terminal/mail/repo/actions/workflow_run.tmpl | 2 +- themes/terminal/mail/repo/collaborator.tmpl | 2 +- themes/terminal/mail/repo/issue/assigned.tmpl | 2 +- themes/terminal/mail/repo/issue/default.tmpl | 4 ++-- themes/terminal/mail/repo/release.tmpl | 3 ++- themes/terminal/mail/repo/transfer.tmpl | 2 +- themes/terra/mail/org/team_invite.tmpl | 3 ++- themes/terra/mail/repo/actions/workflow_run.tmpl | 4 ++-- themes/terra/mail/repo/collaborator.tmpl | 4 ++-- themes/terra/mail/repo/issue/assigned.tmpl | 4 ++-- themes/terra/mail/repo/issue/default.tmpl | 4 ++-- themes/terra/mail/repo/release.tmpl | 4 ++-- themes/terra/mail/repo/transfer.tmpl | 4 ++-- 48 files changed, 91 insertions(+), 85 deletions(-) diff --git a/themes/aurora/mail/repo/issue/default.tmpl b/themes/aurora/mail/repo/issue/default.tmpl index 42c8eb4..132d254 100644 --- a/themes/aurora/mail/repo/issue/default.tmpl +++ b/themes/aurora/mail/repo/issue/default.tmpl @@ -7,6 +7,7 @@ {{.Subject}} @@ -38,9 +39,9 @@ - +
- ACTIVATE + {{.locale.Tr "mail.view_it_on" AppName}}{{if .CanReply}} {{.locale.Tr "mail.reply"}}{{end}}

{{.locale.Tr "mail.link_not_working_do_paste"}}

diff --git a/themes/mono/mail/repo/release.tmpl b/themes/mono/mail/repo/release.tmpl index 7b06bc8..cc2dbb6 100644 --- a/themes/mono/mail/repo/release.tmpl +++ b/themes/mono/mail/repo/release.tmpl @@ -31,7 +31,7 @@

{{$release_url := HTMLFormat "%s" .Release.HTMLURL .Release.TagName}}{{$repo_url := HTMLFormat "%s" .Release.Repo.HTMLURL .Release.Repo.FullName}}{{.locale.Tr "mail.release.new.text" .Release.Publisher.Name $release_url $repo_url}}

{{.locale.Tr "mail.release.title" .Release.Title}}

-{{if .Release.RenderedNote}}
{{.Release.RenderedNote}}
{{end}} +{{if .Release.RenderedNote}}{{.locale.Tr "mail.release.note"}}
{{.Release.RenderedNote}}
{{end}}

{{.locale.Tr "mail.release.downloads"}}

@@ -42,9 +42,9 @@
- +
- ACTIVATE + {{.locale.Tr "mail.view_it_on" AppName}}

{{.locale.Tr "mail.link_not_working_do_paste"}}

diff --git a/themes/mono/mail/repo/transfer.tmpl b/themes/mono/mail/repo/transfer.tmpl index c8ee559..f621032 100644 --- a/themes/mono/mail/repo/transfer.tmpl +++ b/themes/mono/mail/repo/transfer.tmpl @@ -38,9 +38,9 @@
- +
- ACTIVATE + {{.locale.Tr "mail.view_it_on" AppName}}

{{.locale.Tr "mail.link_not_working_do_paste"}}

diff --git a/themes/neon/mail/repo/issue/default.tmpl b/themes/neon/mail/repo/issue/default.tmpl index e63c610..8a8f21e 100644 --- a/themes/neon/mail/repo/issue/default.tmpl +++ b/themes/neon/mail/repo/issue/default.tmpl @@ -7,6 +7,7 @@ {{.Subject}}