2018-11-19 10:44:51 -05:00
|
|
|
div(ng-controller="GroupMembershipController")
|
2018-11-20 05:48:21 -05:00
|
|
|
each groupSubscription in memberGroupSubscriptions
|
2018-11-19 10:44:51 -05:00
|
|
|
- if (user._id+'' != groupSubscription.admin_id._id+'')
|
|
|
|
div
|
2018-11-20 05:48:21 -05:00
|
|
|
p
|
|
|
|
| You are a member of
|
|
|
|
|
|
|
|
|
+teamName(groupSubscription)
|
|
|
|
- if (groupSubscription.teamNotice && groupSubscription.teamNotice != '')
|
|
|
|
p
|
2019-02-15 08:15:46 -05:00
|
|
|
//- Team notice is sanitized in SubscriptionViewModelBuilder
|
2019-03-18 06:24:54 -04:00
|
|
|
em(ng-non-bindable) !{groupSubscription.teamNotice}
|
2018-11-19 10:44:51 -05:00
|
|
|
span
|
2020-08-12 10:17:15 -04:00
|
|
|
button.btn.btn-danger.text-capitalise(ng-click="removeSelfFromGroup('"+groupSubscription._id+"')") #{translate("leave_group")}
|
2018-11-19 10:44:51 -05:00
|
|
|
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")}
|
2020-04-22 05:35:33 -04:00
|
|
|
span(ng-show="inflight") #{translate("processing")}…
|