diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index 7633bec823..74e5e1908a 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -7,7 +7,23 @@ {{template "org/team/sidebar" .}}
{{template "org/team/navbar" .}} -
+ {{if .IsOrganizationOwner}} +
+
+ {{.CsrfTokenHtml}} + +
+ +
+ +
+
+ {{end}} +
{{range .Team.Members}}
{{if $.IsOrganizationOwner}} @@ -24,22 +40,6 @@
{{end}}
- {{if .IsOrganizationOwner}} -
-
- {{.CsrfTokenHtml}} - -
- -
- -
-
- {{end}}
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index fafe15e128..eeb86564fd 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -7,8 +7,23 @@ {{template "org/team/sidebar" .}}
{{template "org/team/navbar" .}} -
- {{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}} + {{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}} + {{if $canAddRemove}} +
+
+ {{.CsrfTokenHtml}} +
+ +
+ +
+
+ {{end}} +
{{range .Team.Repos}}
{{if $canAddRemove}} @@ -25,21 +40,6 @@
{{end}}
- {{if $canAddRemove}} -
-
- {{.CsrfTokenHtml}} -
- -
- -
-
- {{end}}