diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index 22ae87b1d..1691f9b38 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 f3b08652c..ef595f841 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 50b3f2cff..4b79c1bf8 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 531990a98..044bda941 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 af1fd2a5d..9de48e7e2 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 e746400a8..00b73f94d 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}} + +