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/commits_table.tmpl | 124 +++++++++++++++++++------------------- 1 file changed, 62 insertions(+), 62 deletions(-) (limited to 'templates/repo/commits_table.tmpl') diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 8bab2be0..4ca25e8e 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -1,70 +1,70 @@

- {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} {{if .Branch}}({{.Branch}}){{end}} - {{if .PageIsCommits}} -
-
- - -
-
- {{else if .IsDiffCompare}} - {{ShortSha .BeforeCommitID}} ... {{ShortSha .AfterCommitID}} - {{end}} + {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} {{if .Branch}}({{.Branch}}){{end}} + {{if .PageIsCommits}} +
+
+ + +
+
+ {{else if .IsDiffCompare}} + {{ShortSha .BeforeCommitID}} ... {{ShortSha .AfterCommitID}} + {{end}}

{{if .Commits}} -
- - - - - - - - - - {{ $r:= List .Commits}} - {{range $r}} - - - - - - {{end}} - -
{{.i18n.Tr "repo.commits.author"}}SHA1 {{.i18n.Tr "repo.commits.message"}}{{.i18n.Tr "repo.commits.date"}}
- {{if .User}} -   {{.Author.Name}} - {{else}} -   {{.Author.Name}} - {{end}} - - {{ShortSha .ID.String}} - {{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}} - {{TimeSince .Author.When $.Lang}}
-
+
+ + + + + + + + + + {{ $r:= List .Commits}} + {{range $r}} + + + + + + {{end}} + +
{{.i18n.Tr "repo.commits.author"}}SHA1 {{.i18n.Tr "repo.commits.message"}}{{.i18n.Tr "repo.commits.date"}}
+ {{if .User}} +   {{.Author.Name}} + {{else}} +   {{.Author.Name}} + {{end}} + + {{ShortSha .ID.String}} + {{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}} + {{TimeSince .Author.When $.Lang}}
+
{{end}} {{with .Page}} -{{if gt .TotalPages 1}} -
- -
+ {{if gt .TotalPages 1}} +
+ +
+ {{end}} {{end}} -{{end}} \ No newline at end of file -- cgit v1.2.3