aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-04-11 05:46:37 +0200
committerGitHub <noreply@github.com>2021-04-10 23:46:37 -0400
commitd848098f60f78e6b4a72ae7f769fd66399a8ba82 (patch)
treeee6e769196f546c8a0c7d85c82eecccd0bf67e1e /templates/org
parent0c77e0791c079ea8c01e03f636f22a0ff7e9d22b (diff)
downloadgitea-d848098f60f78e6b4a72ae7f769fd66399a8ba82.tar.gz
gitea-d848098f60f78e6b4a72ae7f769fd66399a8ba82.zip
Enforce tab indentation in templates (#15289)
* Enforce tab indendation in templates This adds editorconfig-checker [1] to lint the template files so they conform the editorconfig files. I fixed all current identation issues using the fix mode of eclint [2] and some manual corrections. We can extend this linting to other files later, for now I'd like this PR to focus on HTML template files only. [1] https://github.com/editorconfig-checker/editorconfig-checker [2] https://github.com/jedmao/eclint * fix indendation Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/home.tmpl6
-rw-r--r--templates/org/settings/labels.tmpl2
-rw-r--r--templates/org/team/navbar.tmpl4
3 files changed, 6 insertions, 6 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index 25cd68291c..9b77ae6b3f 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -26,9 +26,9 @@
<div class="ui eleven wide column">
{{if .CanCreateOrgRepo}}
<div class="text right">
- {{if not .DisabledMirrors}}
- <a class="ui green button" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{.i18n.Tr "new_migrate"}}</a>
- {{end}}
+ {{if not .DisabledMirrors}}
+ <a class="ui green button" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{.i18n.Tr "new_migrate"}}</a>
+ {{end}}
<a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}">{{.i18n.Tr "new_repo"}}</a>
</div>
<div class="ui divider"></div>
diff --git a/templates/org/settings/labels.tmpl b/templates/org/settings/labels.tmpl
index 61302c731a..482d1b17d0 100644
--- a/templates/org/settings/labels.tmpl
+++ b/templates/org/settings/labels.tmpl
@@ -20,7 +20,7 @@
{{template "base/alert" .}}
{{template "repo/issue/labels/label_list" .}}
</div>
- </div>
+ </div>
</div>
</div>
</div>
diff --git a/templates/org/team/navbar.tmpl b/templates/org/team/navbar.tmpl
index 18d638796c..b5732ed71b 100644
--- a/templates/org/team/navbar.tmpl
+++ b/templates/org/team/navbar.tmpl
@@ -1,4 +1,4 @@
<div class="ui top attached tabular menu">
- <a class="item{{if .PageIsOrgTeamMembers}} active{{end}}" href="{{.OrgLink}}/teams/{{.Team.LowerName}}">{{svg "octicon-person"}} <strong>{{.Team.NumMembers}}</strong>&nbsp; {{$.i18n.Tr "org.lower_members"}}</a>
- <a class="item{{if .PageIsOrgTeamRepos}} active{{end}}" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/repositories">{{svg "octicon-repo"}} <strong>{{.Team.NumRepos}}</strong>&nbsp; {{$.i18n.Tr "org.lower_repositories"}}</a>
+ <a class="item{{if .PageIsOrgTeamMembers}} active{{end}}" href="{{.OrgLink}}/teams/{{.Team.LowerName}}">{{svg "octicon-person"}} <strong>{{.Team.NumMembers}}</strong>&nbsp; {{$.i18n.Tr "org.lower_members"}}</a>
+ <a class="item{{if .PageIsOrgTeamRepos}} active{{end}}" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/repositories">{{svg "octicon-repo"}} <strong>{{.Team.NumRepos}}</strong>&nbsp; {{$.i18n.Tr "org.lower_repositories"}}</a>
</div>