aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org/header.tmpl
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-12-07 23:30:52 +0100
committerAdam Strzelecki <ono@java.pl>2015-12-08 00:57:46 +0100
commitda2585c11e11023ffa7a8c69d21c6fecac520a8e (patch)
tree1c2a575dfc00e0e78f47c497a6d9347b3edeca9a /templates/org/header.tmpl
parentdd8a06a397e26c46639eba1313102560dfa49c95 (diff)
downloadgitea-da2585c11e11023ffa7a8c69d21c6fecac520a8e.tar.gz
gitea-da2585c11e11023ffa7a8c69d21c6fecac520a8e.zip
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
Diffstat (limited to 'templates/org/header.tmpl')
-rw-r--r--templates/org/header.tmpl40
1 files changed, 20 insertions, 20 deletions
diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl
index c30433d96b..8fa1c2b269 100644
--- a/templates/org/header.tmpl
+++ b/templates/org/header.tmpl
@@ -1,26 +1,26 @@
{{with .Org}}
-<div class="ui container">
- <div class="ui vertically grid head">
- <div class="column">
- <div class="ui header">
- <img class="ui image" src="{{.AvatarLink}}?s=100">
- <span class="text thin grey"><a href="{{.HomeLink}}">{{.DisplayName}}</a></span>
+ <div class="ui container">
+ <div class="ui vertically grid head">
+ <div class="column">
+ <div class="ui header">
+ <img class="ui image" src="{{.AvatarLink}}?s=100">
+ <span class="text thin grey"><a href="{{.HomeLink}}">{{.DisplayName}}</a></span>
- <div class="ui right">
- <div class="ui menu">
- <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members">
- <i class="octicon octicon-organization"></i>&nbsp;{{$.i18n.Tr "org.people"}}
- <div class="floating ui black label">{{.NumMembers}}</div>
- </a>
- <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams">
- <i class="octicon octicon-jersey"></i>&nbsp;{{$.i18n.Tr "org.teams"}}
- <div class="floating ui black label">{{.NumTeams}}</div>
- </a>
- </div>
+ <div class="ui right">
+ <div class="ui menu">
+ <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members">
+ <i class="octicon octicon-organization"></i>&nbsp;{{$.i18n.Tr "org.people"}}
+ <div class="floating ui black label">{{.NumMembers}}</div>
+ </a>
+ <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams">
+ <i class="octicon octicon-jersey"></i>&nbsp;{{$.i18n.Tr "org.teams"}}
+ <div class="floating ui black label">{{.NumTeams}}</div>
+ </a>
+ </div>
+ </div>
</div>
</div>
</div>
</div>
-</div>
-<div class="ui divider"></div>
-{{end}} \ No newline at end of file
+ <div class="ui divider"></div>
+{{end}}