From 21808049bdc76a3c7130e031ea955be59f40c3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Rossi?= Date: Mon, 8 Jun 2026 12:30:51 +0200 Subject: [PATCH] added gitea mail templates --- .../templates/mail/org/team_invite.tmpl | 99 +++++++++++ .../mail/repo/actions/workflow_run.tmpl | 92 ++++++++++ .../templates/mail/repo/collaborator.tmpl | 86 +++++++++ .../templates/mail/repo/issue/assigned.tmpl | 85 +++++++++ .../templates/mail/repo/issue/default.tmpl | 166 ++++++++++++++++++ .../templates/mail/repo/release.tmpl | 112 ++++++++++++ .../templates/mail/user/auth/activate.tmpl | 91 ++++++++++ .../mail/user/auth/activate_email.tmpl | 91 ++++++++++ .../mail/user/auth/register_notify.tmpl | 97 ++++++++++ .../mail/user/auth/reset_passwd.tmpl | 91 ++++++++++ 10 files changed, 1010 insertions(+) create mode 100644 gitea-mail-templates/templates/mail/org/team_invite.tmpl create mode 100644 gitea-mail-templates/templates/mail/repo/actions/workflow_run.tmpl create mode 100644 gitea-mail-templates/templates/mail/repo/collaborator.tmpl create mode 100644 gitea-mail-templates/templates/mail/repo/issue/assigned.tmpl create mode 100644 gitea-mail-templates/templates/mail/repo/issue/default.tmpl create mode 100644 gitea-mail-templates/templates/mail/repo/release.tmpl create mode 100644 gitea-mail-templates/templates/mail/user/auth/activate.tmpl create mode 100644 gitea-mail-templates/templates/mail/user/auth/activate_email.tmpl create mode 100644 gitea-mail-templates/templates/mail/user/auth/register_notify.tmpl create mode 100644 gitea-mail-templates/templates/mail/user/auth/reset_passwd.tmpl diff --git a/gitea-mail-templates/templates/mail/org/team_invite.tmpl b/gitea-mail-templates/templates/mail/org/team_invite.tmpl new file mode 100644 index 0000000..6cbe8fa --- /dev/null +++ b/gitea-mail-templates/templates/mail/org/team_invite.tmpl @@ -0,0 +1,99 @@ +{{.AppName}} - Invito al team "{{.Team}}" di {{.Organization}} +--- + + + + + +Invito al Team + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + +
+Invito al Team +
+{{.Inviter}} ti ha invitato a far parte del team {{.Team}} nell'organizzazione {{.Organization}} su {{.AppName}}. +
+ + + + + +
+ + + + + + + + + + + + + +
Organizzazione
{{.Organization}}
Team
{{.Team}}
+
+ + + + + +
+Accetta Invito +
+ + + + + +
+Se il pulsante non funziona, copia e incolla questo link nel tuo browser:
+{{.InviteURL}} +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/repo/actions/workflow_run.tmpl b/gitea-mail-templates/templates/mail/repo/actions/workflow_run.tmpl new file mode 100644 index 0000000..ad0588a --- /dev/null +++ b/gitea-mail-templates/templates/mail/repo/actions/workflow_run.tmpl @@ -0,0 +1,92 @@ +{{.Repo.FullName}} — {{.Run.WorkflowID}}: {{.RunStatusText}} +--- + + + + + + +{{.Subject}} + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + + +
+{{.Repo.FullName}} +
+Workflow {{.Run.WorkflowID}} — {{.RunStatusText}} +
+ +{{range $job := .Jobs}} + + + + +
+ + + + + +
+ +{{$job.Name}}{{if gt $job.Attempt 1}} (tentativo #{{$job.Attempt}}){{end}} + + +{{$job.Status}} · {{$job.Duration}} +
+
+{{end}} + + + + + +
+Visualizza Workflow +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/repo/collaborator.tmpl b/gitea-mail-templates/templates/mail/repo/collaborator.tmpl new file mode 100644 index 0000000..39facd6 --- /dev/null +++ b/gitea-mail-templates/templates/mail/repo/collaborator.tmpl @@ -0,0 +1,86 @@ +{{.AppName}} - Sei stato aggiunto come collaboratore a {{.Repo.FullName}} +--- + + + + + +Collaboratore aggiunto + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + +
+Nuovo Collaboratore +
+{{.Doer.Name}} ti ha aggiunto come collaboratore alla repository: +
+ + + + + +
+ + + + + + + +
Repository
+{{.Repo.FullName}} +
+
+ + + + + +
+Vai alla Repository +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/repo/issue/assigned.tmpl b/gitea-mail-templates/templates/mail/repo/issue/assigned.tmpl new file mode 100644 index 0000000..dd531b1 --- /dev/null +++ b/gitea-mail-templates/templates/mail/repo/issue/assigned.tmpl @@ -0,0 +1,85 @@ +{{.Issue.FullName}} - You have been assigned +--- + + + + + +Issue Assignment + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + +
+Assegnazione Issue +
+{{.Doer.Name}} ti ha assegnato a +{{.Issue.FullName}}. +
+ + + + + +
+ + + + + + + +
Issue
{{.Issue.FullName}}
+
+ + + + + +
+Visualizza Issue +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/repo/issue/default.tmpl b/gitea-mail-templates/templates/mail/repo/issue/default.tmpl new file mode 100644 index 0000000..86271f5 --- /dev/null +++ b/gitea-mail-templates/templates/mail/repo/issue/default.tmpl @@ -0,0 +1,166 @@ + + + + + + + +{{.Subject}} + + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ +{{if .IsMention}} + + + + +
+{{.locale.Tr "mail.issue.x_mentioned_you" .Doer.Name }} +
+{{end}} + + + + + +
+{{if eq .ActionName "push"}} + {{if .Comment.IsForcePush}} + {{$oldCommitLink := printf "%s" .Comment.Issue.PullRequest.BaseRepo.HTMLURL .Comment.OldCommit (ShortSha .Comment.OldCommit)}} + {{$newCommitLink := printf "%s" .Comment.Issue.PullRequest.BaseRepo.HTMLURL .Comment.NewCommit (ShortSha .Comment.NewCommit)}} + {{.locale.Tr "mail.issue.action.force_push" .Doer.Name .Comment.Issue.PullRequest.HeadBranch $oldCommitLink $newCommitLink }} + {{else}} + {{.locale.TrN (len .Comment.Commits) "mail.issue.action.push_1" "mail.issue.action.push_n" .Doer.Name .Comment.Issue.PullRequest.HeadBranch (len .Comment.Commits) }} + {{end}} +{{else if eq .ActionName "close"}} + {{.locale.Tr "mail.issue.action.close" .Doer.Name .Issue.Index }} +{{else if eq .ActionName "reopen"}} + {{.locale.Tr "mail.issue.action.reopen" .Doer.Name .Issue.Index }} +{{else if eq .ActionName "merge"}} + {{.locale.Tr "mail.issue.action.merge" .Doer.Name .Issue.Index .Issue.PullRequest.BaseBranch }} +{{else if eq .ActionName "approve"}} + {{.locale.Tr "mail.issue.action.approve" .Doer.Name }} +{{else if eq .ActionName "reject"}} + {{.locale.Tr "mail.issue.action.reject" .Doer.Name }} +{{else if eq .ActionName "review"}} + {{.locale.Tr "mail.issue.action.review" .Doer.Name }} +{{else if eq .ActionName "review_dismissed"}} + {{.locale.Tr "mail.issue.action.review_dismissed" .Doer.Name .Comment.Review.Reviewer.Name }} +{{else if eq .ActionName "ready_for_review"}} + {{.locale.Tr "mail.issue.action.ready_for_review" .Doer.Name }} +{{end}} +
+ +{{if ne .Body ""}} + + + + +
+{{.Body }} +
+{{else if eq .ActionName "new"}} + + + + +
+{{.locale.Tr "mail.issue.action.new" .Doer.Name .Issue.Index }} +
+{{end}} + +{{- range .ReviewComments}} + + + + + + + +
+{{$.locale.Tr "mail.issue.in_tree_path" .TreePath}} +
+
{{.Patch}}
+
{{.RenderedContent | SanitizeHTML}}
+
+{{end -}} + +{{if eq .ActionName "push"}} + + + + +
+{{range .Comment.Commits}} + + + + +
+{{ShortSha .ID.String}} + — {{.Summary}} +
+{{end}} +
+{{end}} + + + + + +{{if .CanReply}} + + + +{{end}} +
+Visualizza su Gitea +
+{{.locale.Tr "mail.reply"}} +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/repo/release.tmpl b/gitea-mail-templates/templates/mail/repo/release.tmpl new file mode 100644 index 0000000..473a6ff --- /dev/null +++ b/gitea-mail-templates/templates/mail/repo/release.tmpl @@ -0,0 +1,112 @@ +{{.Release.Repo.FullName}}: New release "{{.Release.Title}}" ({{.Release.TagName}}) +--- + + + + + +New Release + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + +
+Nuova Release +
+{{.Release.Publisher.Name}} ha pubblicato una nuova release per {{.Release.Repo.FullName}}. +
+ + + + + +
+ + + + + + + +
{{.Release.Title}}
+Tag: {{.Release.TagName}} +
+
+ +{{if .Release.Note}} + + + + + + + +
Release Notes
+{{.Release.Note}} +
+{{end}} + + + + + + + + +
Download
+📦 Source Code (tar.gz)
+📦 Source Code (zip) +{{range .Release.Attachments}}
📎 {{.Name}} ({{.Size}}){{end}} +
+ + + + + +
+Visualizza Release +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/user/auth/activate.tmpl b/gitea-mail-templates/templates/mail/user/auth/activate.tmpl new file mode 100644 index 0000000..47bba05 --- /dev/null +++ b/gitea-mail-templates/templates/mail/user/auth/activate.tmpl @@ -0,0 +1,91 @@ +{{.AppName}} - Attiva il tuo account +--- + + + + + +Attivazione Account + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + + + + +
+Attivazione Account +
+Ciao {{.DisplayName}}, +
+Grazie per esserti registrato su {{.AppName}}. Per completare la registrazione e attivare il tuo account, clicca sul pulsante qui sotto. +
+ + + + + +
+Questo link di attivazione scade tra {{.ActiveCodeLives}}. Se il link scade, dovrai richiederne uno nuovo. +
+ + + + + +
+Attiva Account +
+ + + + + +
+Se il pulsante non funziona, copia e incolla questo link nel tuo browser:
+{{.AppUrl}}user/activate?code={{.Code}} +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/user/auth/activate_email.tmpl b/gitea-mail-templates/templates/mail/user/auth/activate_email.tmpl new file mode 100644 index 0000000..d7259ec --- /dev/null +++ b/gitea-mail-templates/templates/mail/user/auth/activate_email.tmpl @@ -0,0 +1,91 @@ +{{.AppName}} - Conferma il tuo indirizzo email +--- + + + + + +Conferma Email + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + + + + +
+Conferma Email +
+Ciao {{.DisplayName}}, +
+Per confermare l'indirizzo email {{.Email}} associato al tuo account su {{.AppName}}, clicca sul pulsante qui sotto. +
+ + + + + +
+Questo link di conferma scade tra {{.ActiveCodeLives}}. Se il link scade, dovrai richiederne uno nuovo. +
+ + + + + +
+Conferma Email +
+ + + + + +
+Se il pulsante non funziona, copia e incolla questo link nel tuo browser:
+{{.AppUrl}}user/activate_email?code={{.Code}}&email={{.Email}} +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/user/auth/register_notify.tmpl b/gitea-mail-templates/templates/mail/user/auth/register_notify.tmpl new file mode 100644 index 0000000..966d7e6 --- /dev/null +++ b/gitea-mail-templates/templates/mail/user/auth/register_notify.tmpl @@ -0,0 +1,97 @@ +{{.AppName}} - Benvenuto, {{.DisplayName}}! +--- + + + + + +Registrazione completata + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + + + + +
+Benvenuto su {{.AppName}}! +
+Ciao {{.DisplayName}}, +
+Il tuo account e' stato creato con successo. Ecco i dettagli del tuo account: +
+ + + + + +
+ + + + + + + + + + + + + +
Username
{{.Username}}
Istanza
+{{.AppUrl}} +
+
+ + + + + +
+Accedi a {{.AppName}} +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ + diff --git a/gitea-mail-templates/templates/mail/user/auth/reset_passwd.tmpl b/gitea-mail-templates/templates/mail/user/auth/reset_passwd.tmpl new file mode 100644 index 0000000..c905d2f --- /dev/null +++ b/gitea-mail-templates/templates/mail/user/auth/reset_passwd.tmpl @@ -0,0 +1,91 @@ +{{.AppName}} - Recupero password +--- + + + + + +Recupero Password + + + + + + +
+ + + + + + + + + + + + + + +
+Biters +
+ + + + + + + + + + +
+Recupero Password +
+Ciao {{.DisplayName}}, +
+Abbiamo ricevuto una richiesta di reimpostazione della password per il tuo account su {{.AppName}}. Clicca sul pulsante qui sotto per impostare una nuova password. +
+ + + + + +
+Questo link di recupero scade tra {{.ResetPwdCodeLives}}. Se non hai richiesto tu il reset della password, puoi ignorare questa email. +
+ + + + + +
+Reimposta Password +
+ + + + + +
+Se il pulsante non funziona, copia e incolla questo link nel tuo browser:
+{{.AppUrl}}user/recover_account?code={{.Code}} +
+
+ + + + + + + +
+Biters +
+Powered by Biters +
+
+
+ +