mirror of
https://github.com/go-gitea/gitea
synced 2025-09-18 22:58:14 +00:00
Refactor and update mail templates (#35150)
- Moved mail templates to new directories. - Added new devtest ymls. - Embedded styles as much as possible. - Added new translation keys for actions email. --------- Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
13
templates/mail/org/team_invite.devtest.yml
Normal file
13
templates/mail/org/team_invite.devtest.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
Inviter:
|
||||
DisplayName: Inviter Display Name
|
||||
|
||||
Team:
|
||||
Name: Team name
|
||||
|
||||
Organization:
|
||||
DisplayName: Organization Display Name
|
||||
|
||||
InviteURL: http://localhost/org/team/invite
|
||||
|
||||
Invite:
|
||||
Email: invited@example.com
|
15
templates/mail/org/team_invite.tmpl
Normal file
15
templates/mail/org/team_invite.tmpl
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
|
||||
</head>
|
||||
<body>
|
||||
<p>{{.locale.Tr "mail.team_invite.text_1" (DotEscape .Inviter.DisplayName) (DotEscape .Team.Name) (DotEscape .Organization.DisplayName)}}</p>
|
||||
<p>{{.locale.Tr "mail.team_invite.text_2"}}</p><p><a href="{{.InviteURL}}">{{.InviteURL}}</a></p>
|
||||
<p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
|
||||
<p>{{.locale.Tr "mail.team_invite.text_3" .Invite.Email}}</p>
|
||||
|
||||
<p>© <a href="{{AppUrl}}">{{AppName}}</a></p>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user