|
|
@ -54,14 +54,18 @@ |
|
|
|
<div class="ui four wide column"> |
|
|
|
<div class="ui four wide column"> |
|
|
|
<div class="text right"> |
|
|
|
<div class="text right"> |
|
|
|
{{if eq $.SignedUser.ID .ID}} |
|
|
|
{{if eq $.SignedUser.ID .ID}} |
|
|
|
<form method="post" action="{{$.OrgLink}}/members/action/leave"> |
|
|
|
<form> |
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
<button class="ui red small button delete-button" data-modal-id="leave-organization" |
|
|
|
<button type="submit" class="ui red small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.leave"}}</button> |
|
|
|
data-url="{{$.OrgLink}}/members/action/leave" data-datauid="{{.ID}}" |
|
|
|
|
|
|
|
data-name="{{.DisplayName}}" |
|
|
|
|
|
|
|
data-data-organization-name="{{$.Org.DisplayName}}">{{$.i18n.Tr "org.members.leave"}}</button> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
{{else if $.IsOrganizationOwner}} |
|
|
|
{{else if $.IsOrganizationOwner}} |
|
|
|
<form method="post" action="{{$.OrgLink}}/members/action/remove"> |
|
|
|
<form> |
|
|
|
{{$.CsrfTokenHtml}} |
|
|
|
<button class="ui red small button delete-button" data-modal-id="remove-organization-member" |
|
|
|
<button type="submit" class="ui red small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.remove"}}</button> |
|
|
|
data-url="{{$.OrgLink}}/members/action/remove" data-datauid="{{.ID}}" |
|
|
|
|
|
|
|
data-name="{{.DisplayName}}" |
|
|
|
|
|
|
|
data-data-organization-name="{{$.Org.DisplayName}}">{{$.i18n.Tr "org.members.remove"}}</button> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -73,4 +77,25 @@ |
|
|
|
{{template "base/paginate" .}} |
|
|
|
{{template "base/paginate" .}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="ui small basic delete modal" id="leave-organization"> |
|
|
|
|
|
|
|
<div class="ui icon header"> |
|
|
|
|
|
|
|
{{svg "octicon-x" 16 "close inside"}} |
|
|
|
|
|
|
|
{{$.i18n.Tr "org.members.leave"}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="content"> |
|
|
|
|
|
|
|
<p>{{$.i18n.Tr "org.members.leave.detail" `<span class="dataOrganizationName"></span>` | Safe}}</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{template "base/delete_modal_actions" .}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="ui small basic delete modal" id="remove-organization-member"> |
|
|
|
|
|
|
|
<div class="ui icon header"> |
|
|
|
|
|
|
|
{{svg "octicon-x" 16 "close inside"}} |
|
|
|
|
|
|
|
{{$.i18n.Tr "org.members.remove"}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="content"> |
|
|
|
|
|
|
|
<p>{{$.i18n.Tr "org.members.remove.detail" `<span class="name"></span>` `<span class="dataOrganizationName"></span>` | Safe}}</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{template "base/delete_modal_actions" .}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{{template "base/footer" .}} |
|
|
|
{{template "base/footer" .}} |
|
|
|