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/repo/view_file.tmpl | 98 +++++++++++++++++++++---------------------- 1 file changed, 49 insertions(+), 49 deletions(-) (limited to 'templates/repo/view_file.tmpl') diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 5751d2e3dd..cf6198195a 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -1,50 +1,50 @@

-

- {{if .ReadmeExist}} - - {{if .ReadmeInList}} - {{.FileName}} - {{else}} - {{.FileName}} {{FileSize .FileSize}} - {{end}} - {{else}} - - {{.FileName}} {{FileSize .FileSize}} - {{end}} - {{if not .ReadmeInList}} - - {{end}} -

-
-
- {{if .ReadmeExist}} - {{if .FileContent}}{{.FileContent | Str2html}}{{end}} - {{else if not .IsFileText}} -
- {{if .IsImageFile}} - - {{else}} - {{.i18n.Tr "repo.file_view_raw"}} - {{end}} -
- {{else if .FileSize}} - - - - - - - -
    {{.FileContent}}
- {{end}} -
-
-
\ No newline at end of file +

+ {{if .ReadmeExist}} + + {{if .ReadmeInList}} + {{.FileName}} + {{else}} + {{.FileName}} {{FileSize .FileSize}} + {{end}} + {{else}} + + {{.FileName}} {{FileSize .FileSize}} + {{end}} + {{if not .ReadmeInList}} + + {{end}} +

+
+
+ {{if .ReadmeExist}} + {{if .FileContent}}{{.FileContent | Str2html}}{{end}} + {{else if not .IsFileText}} +
+ {{if .IsImageFile}} + + {{else}} + {{.i18n.Tr "repo.file_view_raw"}} + {{end}} +
+ {{else if .FileSize}} + + + + + + + +
    {{.FileContent}}
+ {{end}} +
+
+
-- cgit v1.2.3