From 36d31d521d6343cc3616e03d481094952c8deab4 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 26 Feb 2022 05:19:54 +0800 Subject: [PATCH] Fix team management UI (#18886) Co-authored-by: 6543 <6543@obermui.de> --- templates/org/team/members.tmpl | 2 +- templates/org/team/sidebar.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index a064ee9b4f..c976aa8965 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -26,7 +26,7 @@
{{range .Team.Members}}
- {{if and $.IsOrganizationOwner (not (eq $.SignedUser.ID .ID))}} + {{if and $.IsOrganizationOwner (not (and ($.Team.IsOwnerTeam) (eq (len $.Team.Members) 1)))}}
+
+ {{end}} {{if .IsOrganizationOwner}}