summaryrefslogtreecommitdiffstats
path: root/templates/mail
diff options
context:
space:
mode:
authorMeano <Meano@foxmail.com>2021-07-11 01:40:14 +0800
committerGitHub <noreply@github.com>2021-07-10 19:40:14 +0200
commit07284792d40c556ec4c9e1c92379a922e746e12b (patch)
tree8b4eeced522f8dc8a3fe354db027eb2cccd7ac01 /templates/mail
parent7a402067ce086fea94685df0ae7db594d9a0f179 (diff)
downloadgitea-07284792d40c556ec4c9e1c92379a922e746e12b.tar.gz
gitea-07284792d40c556ec4c9e1c92379a922e746e12b.zip
Fix invalid params and typo of email templates (#16394)
Signed-off-by: Meano <meanocat@gmail.com>
Diffstat (limited to 'templates/mail')
-rw-r--r--templates/mail/auth/activate.tmpl6
-rw-r--r--templates/mail/auth/activate_email.tmpl2
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/mail/auth/activate.tmpl b/templates/mail/auth/activate.tmpl
index 1f02041578..ad34d9eebe 100644
--- a/templates/mail/auth/activate.tmpl
+++ b/templates/mail/auth/activate.tmpl
@@ -7,9 +7,9 @@
{{ $activate_url := printf "%suser/activate?code=%s" AppUrl .Code}}
<body>
- <p>{{.i18n.Tr "mail.activate_account.test_1" .DisplayName AppName | Str2html}}</p><br>
- <p>{{.i18n.Tr "mail.activate_account.test_2" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
- <p>{{.i18n.Tr "mail.link_not_working_do_paste" .DisplayName AppName | Str2html}}</p>
+ <p>{{.i18n.Tr "mail.activate_account.text_1" .DisplayName AppName | Str2html}}</p><br>
+ <p>{{.i18n.Tr "mail.activate_account.text_2" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
+ <p>{{.i18n.Tr "mail.link_not_working_do_paste"}}</p>
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
</body>
diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl
index 27cff3ba4c..6a8de50112 100644
--- a/templates/mail/auth/activate_email.tmpl
+++ b/templates/mail/auth/activate_email.tmpl
@@ -9,7 +9,7 @@
<body>
<p>{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}</p><br>
<p>{{.i18n.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
- <p>{{.i18n.Tr "mail.link_not_working_do_paste" .DisplayName AppName | Str2html}}</p>
+ <p>{{.i18n.Tr "mail.link_not_working_do_paste"}}</p>
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
</body>