diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl
index 7633bec82..74e5e1908 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}}
+
+ {{end}}
+
{{range .Team.Members}}
{{if $.IsOrganizationOwner}}
@@ -24,22 +40,6 @@
{{end}}
- {{if .IsOrganizationOwner}}
-
- {{end}}
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl
index fafe15e12..eeb86564f 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}}
+
+ {{end}}
+
{{range .Team.Repos}}
{{if $canAddRemove}}
@@ -25,21 +40,6 @@
{{end}}
- {{if $canAddRemove}}
-
- {{end}}