diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index 22ae87b1d9..1691f9b380 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -48,9 +48,15 @@
{{if eq $.SignedUser.ID .ID}} - {{$.i18n.Tr "org.members.leave"}} +
+ {{$.CsrfTokenHtml}} + +
{{else if $.IsOrganizationOwner}} - {{$.i18n.Tr "org.members.remove"}} +
+ {{$.CsrfTokenHtml}} + +
{{end}}
diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index f3b08652cd..ef595f841a 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -27,9 +27,9 @@ {{range .Team.Members}}
{{if $.IsOrganizationOwner}} -
+ {{$.CsrfTokenHtml}} - +
{{end}} diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index 50b3f2cffb..4b79c1bf83 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -35,9 +35,9 @@ {{range .Team.Repos}}
{{if $canAddRemove}} -
+ {{$.CsrfTokenHtml}} - +
{{end}}
diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl index 531990a986..044bda941c 100644 --- a/templates/org/team/sidebar.tmpl +++ b/templates/org/team/sidebar.tmpl @@ -3,14 +3,16 @@ {{.Team.Name}}
{{if .Team.IsMember $.SignedUser.ID}} -
+ {{$.CsrfTokenHtml}} - + +
{{else if .IsOrganizationOwner}} -
+ {{$.CsrfTokenHtml}} - + +
{{end}}
diff --git a/templates/org/team/teams.tmpl b/templates/org/team/teams.tmpl index af1fd2a5de..9de48e7e2c 100644 --- a/templates/org/team/teams.tmpl +++ b/templates/org/team/teams.tmpl @@ -17,14 +17,14 @@
{{.Name}}
{{if .IsMember $.SignedUser.ID}} -
+ {{$.CsrfTokenHtml}} - +
{{else if $.IsOrganizationOwner}} -
+ {{$.CsrfTokenHtml}} - +
{{end}}
diff --git a/templates/user/settings/organization.tmpl b/templates/user/settings/organization.tmpl index e746400a8f..00b73f94d9 100644 --- a/templates/user/settings/organization.tmpl +++ b/templates/user/settings/organization.tmpl @@ -17,7 +17,10 @@ {{range .Orgs}}
- {{$.i18n.Tr "org.members.leave"}} +
+ {{$.CsrfTokenHtml}} + +