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 filerelease/v1.15
parent
dd8a06a397
commit
da2585c11e
|
@ -1,3 +1,8 @@
|
|||
{{/*
|
||||
<html>
|
||||
<body>
|
||||
<div>
|
||||
*/}}
|
||||
</div>
|
||||
<footer>
|
||||
<div class="ui container">
|
||||
|
|
|
@ -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>
|
||||
*/}}
|
||||
|
|
|
@ -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…
Reference in New Issue