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
This commit is contained in:
parent
dd8a06a397
commit
da2585c11e
114 changed files with 5559 additions and 5551 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
{{/*
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
*/}}
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
|
|
|
@ -57,12 +57,12 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore">{{.i18n.Tr "explore"}}</a>
|
<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">
|
<div class="ui icon input">
|
||||||
<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
|
<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
|
||||||
<i class="search icon"></i>
|
<i class="search icon"></i>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div>*/}}
|
||||||
|
|
||||||
{{if .IsSigned}}
|
{{if .IsSigned}}
|
||||||
<div class="right menu">
|
<div class="right menu">
|
||||||
|
@ -146,3 +146,8 @@
|
||||||
</div><!-- end container -->
|
</div><!-- end container -->
|
||||||
</div><!-- end bar -->
|
</div><!-- end bar -->
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{/*
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
*/}}
|
||||||
|
|
|
@ -139,9 +139,7 @@
|
||||||
{{else if .IsPullReuqestBroken}}red
|
{{else if .IsPullReuqestBroken}}red
|
||||||
{{else if .Issue.IsChecking}}yellow
|
{{else if .Issue.IsChecking}}yellow
|
||||||
{{else if .Issue.CanAutoMerge}}green
|
{{else if .Issue.CanAutoMerge}}green
|
||||||
{{else}}red{{end}}">
|
{{else}}red{{end}}"><span class="mega-octicon octicon-git-merge"></span></a>
|
||||||
<span class="mega-octicon octicon-git-merge"></span>
|
|
||||||
</a>
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="ui merge segment">
|
<div class="ui merge segment">
|
||||||
{{if .Issue.HasMerged}}
|
{{if .Issue.HasMerged}}
|
||||||
|
|
Loading…
Reference in a new issue