From da2585c11e11023ffa7a8c69d21c6fecac520a8e Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Mon, 7 Dec 2015 23:30:52 +0100 Subject: Indent all templates with tabs This commit improves templates readability, since all of them use consistent indent with all template command blocks indented too. 1. Indents both HTML containers such as
,

and Go HTML template blocks such as {{if}} {{with}} 2. Cleans all trailing white-space 3. Adds trailing last line-break to each file --- templates/mail/auth/activate.tmpl | 16 ++++++++-------- templates/mail/auth/activate_email.tmpl | 18 +++++++++--------- templates/mail/auth/register_notify.tmpl | 14 +++++++------- templates/mail/auth/reset_passwd.tmpl | 18 +++++++++--------- 4 files changed, 33 insertions(+), 33 deletions(-) (limited to 'templates/mail/auth') diff --git a/templates/mail/auth/activate.tmpl b/templates/mail/auth/activate.tmpl index 5822770e..dfbc3ba8 100644 --- a/templates/mail/auth/activate.tmpl +++ b/templates/mail/auth/activate.tmpl @@ -1,15 +1,15 @@ - + - - {{.User.Name}}, please activate your account + + {{.User.Name}}, please activate your account -

Hi {{.User.Name}}, thanks for registering at {{.AppName}}!

-

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

-

{{.AppUrl}}user/activate?code={{.Code}}

-

Not working? Try copying and pasting it to your browser.

-

© 2015 Gogs: Go Git Service

+

Hi {{.User.Name}}, thanks for registering at {{.AppName}}!

+

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

+

{{.AppUrl}}user/activate?code={{.Code}}

+

Not working? Try copying and pasting it to your browser.

+

© 2015 Gogs: Go Git Service

diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl index 1a918fe2..73d7f616 100644 --- a/templates/mail/auth/activate_email.tmpl +++ b/templates/mail/auth/activate_email.tmpl @@ -1,15 +1,15 @@ - + - - {{.User.Name}}, please verify your e-mail address + + {{.User.Name}}, please verify your e-mail address -

Hi {{.User.Name}},

-

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

-

{{.AppUrl}}user/activate_email?code={{.Code}}&email={{.Email}}

-

Not working? Try copying and pasting it to your browser.

-

© 2015 Gogs: Go Git Service

+

Hi {{.User.Name}},

+

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

+

{{.AppUrl}}user/activate_email?code={{.Code}}&email={{.Email}}

+

Not working? Try copying and pasting it to your browser.

+

© 2015 Gogs: Go Git Service

- \ No newline at end of file + diff --git a/templates/mail/auth/register_notify.tmpl b/templates/mail/auth/register_notify.tmpl index 5fc450b5..864ed55a 100644 --- a/templates/mail/auth/register_notify.tmpl +++ b/templates/mail/auth/register_notify.tmpl @@ -1,14 +1,14 @@ - + - - {{.User.Name}}, welcome to {{.AppName}} + + {{.User.Name}}, welcome to {{.AppName}} -

Hi {{.User.Name}}, this is your registration confirmation email for {{.AppName}}!

-

You can now login via username: {{.User.Name}}.

-

{{.AppUrl}}user/login

-

© 2015 Gogs: Go Git Service

+

Hi {{.User.Name}}, this is your registration confirmation email for {{.AppName}}!

+

You can now login via username: {{.User.Name}}.

+

{{.AppUrl}}user/login

+

© 2015 Gogs: Go Git Service

diff --git a/templates/mail/auth/reset_passwd.tmpl b/templates/mail/auth/reset_passwd.tmpl index 92ae9f32..eb294778 100644 --- a/templates/mail/auth/reset_passwd.tmpl +++ b/templates/mail/auth/reset_passwd.tmpl @@ -1,15 +1,15 @@ - + - - {{.User.Name}}, you have requested to reset your password + + {{.User.Name}}, you have requested to reset your password -

Hi {{.User.Name}},

-

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

-

{{.AppUrl}}user/reset_password?code={{.Code}}

-

Not working? Try copying and pasting it to your browser.

-

© 2015 Gogs: Go Git Service

+

Hi {{.User.Name}},

+

Please click the following link to verify your e-mail address within {{.ActiveCodeLives}} hours:

+

{{.AppUrl}}user/reset_password?code={{.Code}}

+

Not working? Try copying and pasting it to your browser.

+

© 2015 Gogs: Go Git Service

- \ No newline at end of file + -- cgit v1.2.3