overleaf/services/web/app/views/subscriptions/dashboard/_group_memberships.pug
James Allen 49e19cad64 Merge pull request #1162 from sharelatex/ja-show-group-management
Add group and institution membership and management info to subscription dashboard

GitOrigin-RevId: 1aba5d5a20cd00ff5090811d0f66dc9c4944dd60
2018-11-20 11:03:56 +00:00

31 lines
1,017 B
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
em= groupSubscription.teamNotice
span
button.btn.btn-danger.text-capitalise(ng-click="removeSelfFromGroup('"+groupSubscription.admin_id._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")}...