From dab7212fad44a252a1acf8da71b254b1a6715121 Mon Sep 17 00:00:00 2001 From: Earl Warren <contact@earl-warren.org> Date: Mon, 6 Nov 2023 18:17:56 +0100 Subject: [PATCH] [GITEA] notifies admins on new user registration (squash) ctx.Locale --- templates/mail/notify/admin_new_user.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/mail/notify/admin_new_user.tmpl b/templates/mail/notify/admin_new_user.tmpl index 58b5c264e7..03ef4abe21 100644 --- a/templates/mail/notify/admin_new_user.tmpl +++ b/templates/mail/notify/admin_new_user.tmpl @@ -13,9 +13,9 @@ <body> <ul> - <h3>{{.locale.Tr "mail.admin.new_user.user_info"}}</h3> - <li>{{.locale.Tr "admin.users.created"}}: {{DateTime "full" .NewUser.LastLoginUnix}}</li> - <li>{{.locale.Tr "admin.users.last_login"}}: {{DateTime "full" .NewUser.CreatedUnix}}</li> + <h3>{{ctx.Locale.Tr "mail.admin.new_user.user_info"}}</h3> + <li>{{ctx.Locale.Tr "admin.users.created"}}: {{DateTime "full" .NewUser.LastLoginUnix}}</li> + <li>{{ctx.Locale.Tr "admin.users.last_login"}}: {{DateTime "full" .NewUser.CreatedUnix}}</li> </ul> <p> {{.Body | Str2html}} </p> </body>