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/user/auth/activate.tmpl | 68 ++++++++++----------- templates/user/auth/forgot_passwd.tmpl | 60 +++++++++---------- templates/user/auth/reset_passwd.tmpl | 54 ++++++++--------- templates/user/auth/signin.tmpl | 78 ++++++++++++------------- templates/user/auth/signup.tmpl | 104 ++++++++++++++++----------------- 5 files changed, 182 insertions(+), 182 deletions(-) (limited to 'templates/user/auth') diff --git a/templates/user/auth/activate.tmpl b/templates/user/auth/activate.tmpl index 49419dcf..8bff54aa 100644 --- a/templates/user/auth/activate.tmpl +++ b/templates/user/auth/activate.tmpl @@ -1,38 +1,38 @@ {{template "base/head" .}}

-
-
-
- {{.CsrfTokenHtml}} -

- {{.i18n.Tr "auth.active_your_account"}} -

-
- {{template "base/alert" .}} - {{if .IsActivatePage}} - {{if .ServiceNotEnabled}} -

{{.i18n.Tr "auth.disable_register_mail"}}

- {{else if .ResendLimited}} -

{{.i18n.Tr "auth.resent_limit_prompt"}}

- {{else}} -

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .Hours | Str2html}}

- {{end}} - {{else}} - {{if .IsSendRegisterMail}} -

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}

- {{else if .IsActivateFailed}} -

{{.i18n.Tr "auth.invalid_code"}}

- {{else}} -

{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}

-
-
- -
- {{end}} - {{end}} -
-
-
-
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "auth.active_your_account"}} +

+
+ {{template "base/alert" .}} + {{if .IsActivatePage}} + {{if .ServiceNotEnabled}} +

{{.i18n.Tr "auth.disable_register_mail"}}

+ {{else if .ResendLimited}} +

{{.i18n.Tr "auth.resent_limit_prompt"}}

+ {{else}} +

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .Hours | Str2html}}

+ {{end}} + {{else}} + {{if .IsSendRegisterMail}} +

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}

+ {{else if .IsActivateFailed}} +

{{.i18n.Tr "auth.invalid_code"}}

+ {{else}} +

{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}

+
+
+ +
+ {{end}} + {{end}} +
+
+
+
{{template "base/footer" .}} diff --git a/templates/user/auth/forgot_passwd.tmpl b/templates/user/auth/forgot_passwd.tmpl index de141e67..f1c25df5 100644 --- a/templates/user/auth/forgot_passwd.tmpl +++ b/templates/user/auth/forgot_passwd.tmpl @@ -1,34 +1,34 @@ {{template "base/head" .}}
-
-
-
- {{.CsrfTokenHtml}} -

- {{.i18n.Tr "auth.forgot_password"}} -

-
- {{template "base/alert" .}} - {{if .IsResetSent}} -

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}

- {{else if .IsResetRequest}} -
- - -
-
-
- - -
- {{else if .IsResetDisable}} -

{{.i18n.Tr "auth.disable_register_mail"}}

- {{else if .ResendLimited}} -

{{.i18n.Tr "auth.resent_limit_prompt"}}

- {{end}} -
-
-
-
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "auth.forgot_password"}} +

+
+ {{template "base/alert" .}} + {{if .IsResetSent}} +

{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}

+ {{else if .IsResetRequest}} +
+ + +
+
+
+ + +
+ {{else if .IsResetDisable}} +

{{.i18n.Tr "auth.disable_register_mail"}}

+ {{else if .ResendLimited}} +

{{.i18n.Tr "auth.resent_limit_prompt"}}

+ {{end}} +
+
+
+
{{template "base/footer" .}} diff --git a/templates/user/auth/reset_passwd.tmpl b/templates/user/auth/reset_passwd.tmpl index 5f06bd64..cb124f5b 100644 --- a/templates/user/auth/reset_passwd.tmpl +++ b/templates/user/auth/reset_passwd.tmpl @@ -1,31 +1,31 @@ {{template "base/head" .}}
-
-
-
- {{.CsrfTokenHtml}} - -

- {{.i18n.Tr "auth.reset_password"}} -

-
- {{template "base/alert" .}} - {{if .IsResetForm}} -
- - -
-
-
- - -
- {{else}} -

{{.i18n.Tr "auth.invalid_code"}}

- {{end}} -
-
-
-
+
+
+
+ {{.CsrfTokenHtml}} + +

+ {{.i18n.Tr "auth.reset_password"}} +

+
+ {{template "base/alert" .}} + {{if .IsResetForm}} +
+ + +
+
+
+ + +
+ {{else}} +

{{.i18n.Tr "auth.invalid_code"}}

+ {{end}} +
+
+
+
{{template "base/footer" .}} diff --git a/templates/user/auth/signin.tmpl b/templates/user/auth/signin.tmpl index a1e30e95..b928f2bd 100644 --- a/templates/user/auth/signin.tmpl +++ b/templates/user/auth/signin.tmpl @@ -1,44 +1,44 @@ {{template "base/head" .}} {{template "base/footer" .}} diff --git a/templates/user/auth/signup.tmpl b/templates/user/auth/signup.tmpl index c237a20d..86c020d6 100644 --- a/templates/user/auth/signup.tmpl +++ b/templates/user/auth/signup.tmpl @@ -1,56 +1,56 @@ {{template "base/head" .}} -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} -- cgit v1.2.3