diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index 15af60d57..1a65a0227 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -54,9 +54,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 d6046f86a..e3c52e161 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 ff2474f00..d3bd08287 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 a042ef611..6aef18dff 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}} + +