Fix team management UI (#18887)

pull/18902/head
Lunny Xiao 3 years ago committed by GitHub
parent c077a0361a
commit eb43e73785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      templates/org/team/members.tmpl
  2. 4
      templates/org/team/sidebar.tmpl

@ -26,7 +26,7 @@
<div class="ui bottom attached table segment members">
{{range .Team.Members}}
<div class="item">
{{if and $.IsOrganizationOwner (not (eq $.SignedUser.ID .ID))}}
{{if and $.IsOrganizationOwner (not (and ($.Team.IsOwnerTeam) (eq (len $.Team.Members) 1)))}}
<form>
<button class="ui red button delete-button right" data-modal-id="remove-team-member"
data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/remove" data-datauid="{{.ID}}"

@ -74,8 +74,8 @@
</tbody>
</table>
{{end}}
{{end}}
</div>
</div>
{{end}}
</div>
{{if .IsOrganizationOwner}}
<div class="ui bottom attached segment">

Loading…
Cancel
Save