mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
8cd6e7ccfc
Allow Users to Manage Multiple Groups GitOrigin-RevId: c918da0114cdd1d679223f69d81159b4c2608874
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
div(ng-controller="GroupMembershipController")
|
|
each groupSubscription in memberGroupSubscriptions
|
|
- if (user._id+'' != groupSubscription.admin_id._id+'')
|
|
div
|
|
p
|
|
| You are a member of
|
|
|
|
|
+teamName(groupSubscription)
|
|
- if (groupSubscription.teamNotice && groupSubscription.teamNotice != '')
|
|
p
|
|
//- Team notice is sanitized in SubscriptionViewModelBuilder
|
|
em(ng-non-bindable) !{groupSubscription.teamNotice}
|
|
span
|
|
button.btn.btn-danger.text-capitalise(ng-click="removeSelfFromGroup('"+groupSubscription._id+"')") #{translate("leave_group")}
|
|
hr
|
|
|
|
script(type='text/ng-template', id='LeaveGroupModalTemplate')
|
|
.modal-header
|
|
h3 #{translate("leave_group")}
|
|
.modal-body
|
|
p #{translate("sure_you_want_to_leave_group")}
|
|
.modal-footer
|
|
button.btn.btn-default(
|
|
ng-disabled="inflight"
|
|
ng-click="cancel()"
|
|
) #{translate("cancel")}
|
|
button.btn.btn-danger(
|
|
ng-disabled="state.inflight"
|
|
ng-click="confirmLeaveGroup()"
|
|
)
|
|
span(ng-hide="inflight") #{translate("leave_now")}
|
|
span(ng-show="inflight") #{translate("processing")}…
|