Browse Source

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 <div>, <p> and Go HTML template blocks
   such as {{if}} {{with}}

2. Cleans all trailing white-space

3. Adds trailing last line-break to each file
pull/2121/head
Adam Strzelecki 9 years ago
parent
commit
da2585c11e
  1. 5
      templates/base/footer.tmpl
  2. 9
      templates/base/head.tmpl
  3. 4
      templates/repo/issue/view_content.tmpl

5
templates/base/footer.tmpl

@ -1,3 +1,8 @@
{{/*
<html>
<body>
<div>
*/}}
</div>
<footer>
<div class="ui container">

9
templates/base/head.tmpl

@ -57,12 +57,12 @@
{{end}}
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore">{{.i18n.Tr "explore"}}</a>
<!-- <div class="item">
{{/*<div class="item">
<div class="ui icon input">
<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
<i class="search icon"></i>
</div>
</div> -->
</div>*/}}
{{if .IsSigned}}
<div class="right menu">
@ -146,3 +146,8 @@
</div><!-- end container -->
</div><!-- end bar -->
{{end}}
{{/*
</div>
</body>
</html>
*/}}

4
templates/repo/issue/view_content.tmpl

@ -139,9 +139,7 @@
{{else if .IsPullReuqestBroken}}red
{{else if .Issue.IsChecking}}yellow
{{else if .Issue.CanAutoMerge}}green
{{else}}red{{end}}">
<span class="mega-octicon octicon-git-merge"></span>
</a>
{{else}}red{{end}}"><span class="mega-octicon octicon-git-merge"></span></a>
<div class="content">
<div class="ui merge segment">
{{if .Issue.HasMerged}}

Loading…
Cancel
Save