2018-11-19 10:44:51 -05:00
|
|
|
div(ng-controller="GroupMembershipController")
|
2022-06-22 08:24:48 -04:00
|
|
|
each groupSubscription, index in memberGroupSubscriptions
|
2022-06-20 09:01:00 -04:00
|
|
|
unless (groupSubscription.userIsGroupManager)
|
|
|
|
if (user._id+'' != groupSubscription.admin_id._id+'')
|
|
|
|
div
|
|
|
|
p !{translate("you_are_on_x_plan_as_member_of_group_subscription_y_administered_by_z", {planName: groupSubscription.planLevelName, groupName: groupSubscription.teamName || '', adminEmail: groupSubscription.admin_id.email}, [{name: 'a', attrs: {href: '/user/subscription/plans'}}, 'strong'])}
|
|
|
|
if (groupSubscription.teamNotice && groupSubscription.teamNotice != '')
|
|
|
|
p
|
|
|
|
//- Team notice is sanitized in SubscriptionViewModelBuilder
|
|
|
|
em(ng-non-bindable) !{groupSubscription.teamNotice}
|
2022-06-22 08:24:48 -04:00
|
|
|
if index === memberGroupSubscriptions.length - 1
|
|
|
|
include ../_premium_features_link
|
2022-06-20 09:01:00 -04:00
|
|
|
span
|
|
|
|
button.btn.btn-danger.text-capitalise(ng-click="removeSelfFromGroup('"+groupSubscription._id+"')") #{translate("leave_group")}
|
|
|
|
hr
|
2018-11-19 10:44:51 -05:00
|
|
|
|
|
|
|
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")}…
|