From ea78a6db5710c630fc3bd2d1d6c9551ea82b39f9 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Mon, 20 Nov 2017 21:43:00 -0800 Subject: [PATCH] Spaces to tabs in templates (#2953) --- templates/home.tmpl | 8 +- templates/install.tmpl | 8 +- templates/repo/commit_status.tmpl | 10 +-- templates/swagger.tmpl | 95 ++++++++++++----------- templates/user/settings/keys_gpg.tmpl | 96 ++++++++++++------------ templates/user/settings/keys_ssh.tmpl | 104 +++++++++++++------------- templates/user/settings/security.tmpl | 46 ++++++------ 7 files changed, 183 insertions(+), 184 deletions(-) diff --git a/templates/home.tmpl b/templates/home.tmpl index 64669afb4c..063fa8eaf2 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -131,10 +131,10 @@ Facile à installer

- Il suffit de lancer l'exécutable correspondant à votre système. - Ou d'utiliser Gitea avec Docker ou - Vagrant - ou en l'installant depuis un package. + Il suffit de lancer l'exécutable correspondant à votre système. + Ou d'utiliser Gitea avec Docker ou + Vagrant + ou en l'installant depuis un package.

diff --git a/templates/install.tmpl b/templates/install.tmpl index 924eb2837c..bd79b3a068 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -85,10 +85,10 @@ {{.i18n.Tr "install.repo_path_helper"}}
- - - {{.i18n.Tr "install.lfs_path_helper"}} -
+ + + {{.i18n.Tr "install.lfs_path_helper"}} +
diff --git a/templates/repo/commit_status.tmpl b/templates/repo/commit_status.tmpl index 752fd762e3..d5f75c132a 100644 --- a/templates/repo/commit_status.tmpl +++ b/templates/repo/commit_status.tmpl @@ -1,15 +1,15 @@ {{if eq .State "pending"}} - + {{end}} {{if eq .State "success"}} - + {{end}} {{if eq .State "error"}} - + {{end}} {{if eq .State "failure"}} - + {{end}} {{if eq .State "warning"}} - + {{end}} \ No newline at end of file diff --git a/templates/swagger.tmpl b/templates/swagger.tmpl index 9d154b2898..d3ef2beb23 100644 --- a/templates/swagger.tmpl +++ b/templates/swagger.tmpl @@ -2,67 +2,66 @@ - - Swagger UI - - - - - + body { + margin:0; + background: #fafafa; + } + - - - - + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - - + + + +
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl index 6d30bc7331..80b2b27523 100644 --- a/templates/user/settings/keys_gpg.tmpl +++ b/templates/user/settings/keys_gpg.tmpl @@ -1,58 +1,58 @@

- {{.i18n.Tr "settings.manage_gpg_keys"}} -
-
{{.i18n.Tr "settings.add_key"}}
-
+ {{.i18n.Tr "settings.manage_gpg_keys"}} +
+
{{.i18n.Tr "settings.add_key"}}
+

-
-
- {{.i18n.Tr "settings.gpg_desc"}} -
- {{range .GPGKeys}} -
-
- -
- -
- {{range .Emails}}{{.Email}} {{end}} -
- {{$.i18n.Tr "settings.key_id"}}: {{.KeyID}} - {{$.i18n.Tr "settings.subkeys"}}: {{range .SubsKey}} {{.KeyID}} {{end}} -
-
- {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Added}} - - - {{if not .Expired.IsZero }}{{$.i18n.Tr "settings.valid_until"}} {{DateFmtShort .Expired}}{{else}}{{$.i18n.Tr "settings.valid_forever"}}{{end}} -
-
-
- {{end}} -
+
+
+ {{.i18n.Tr "settings.gpg_desc"}} +
+ {{range .GPGKeys}} +
+
+ +
+ +
+ {{range .Emails}}{{.Email}} {{end}} +
+ {{$.i18n.Tr "settings.key_id"}}: {{.KeyID}} + {{$.i18n.Tr "settings.subkeys"}}: {{range .SubsKey}} {{.KeyID}} {{end}} +
+
+ {{$.i18n.Tr "settings.add_on"}} {{DateFmtShort .Added}} + - + {{if not .Expired.IsZero }}{{$.i18n.Tr "settings.valid_until"}} {{DateFmtShort .Expired}}{{else}}{{$.i18n.Tr "settings.valid_forever"}}{{end}} +
+
+
+ {{end}} +

{{.i18n.Tr "settings.gpg_helper" "https://help.github.com/articles/about-gpg/" | Str2html}}

-

- {{.i18n.Tr "settings.add_new_gpg_key"}} -

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

+ {{.i18n.Tr "settings.add_new_gpg_key"}} +

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

+

{{.i18n.Tr "settings.twofa"}}

-
-

{{.i18n.Tr "settings.twofa_desc"}}

- {{if .TwofaEnrolled}} -

{{$.i18n.Tr "settings.twofa_is_enrolled" | Str2html }}

-
- {{.CsrfTokenHtml}} -

{{.i18n.Tr "settings.regenerate_scratch_token_desc"}}

- -
-
- {{.CsrfTokenHtml}} -

{{.i18n.Tr "settings.twofa_disable_note"}}

-
{{$.i18n.Tr "settings.twofa_disable"}}
-
- {{else}} -

{{.i18n.Tr "settings.twofa_not_enrolled"}}

- - {{end}} -
+
+

{{.i18n.Tr "settings.twofa_desc"}}

+ {{if .TwofaEnrolled}} +

{{$.i18n.Tr "settings.twofa_is_enrolled" | Str2html }}

+
+ {{.CsrfTokenHtml}} +

{{.i18n.Tr "settings.regenerate_scratch_token_desc"}}

+ +
+
+ {{.CsrfTokenHtml}} +

{{.i18n.Tr "settings.twofa_disable_note"}}

+
{{$.i18n.Tr "settings.twofa_disable"}}
+
+ {{else}} +

{{.i18n.Tr "settings.twofa_not_enrolled"}}

+ + {{end}} +