overleaf/services/web/app/views/subscriptions/dashboard/_managed_groups.pug

25 lines
1.2 KiB
Text
Raw Normal View History

each managedGroupSubscription in managedGroupSubscriptions
if (managedGroupSubscription.userIsGroupMember)
p !{translate("you_are_a_manager_and_member_of_x_plan_as_member_of_group_subscription_y_administered_by_z", {planName: managedGroupSubscription.planLevelName, groupName: managedGroupSubscription.teamName || '', adminEmail: managedGroupSubscription.admin_id.email}, [{name: 'a', attrs: {href: '/user/subscription/plans'}}, 'strong'])}
else
p !{translate("you_are_a_manager_of_x_plan_as_member_of_group_subscription_y_administered_by_z", {planName: managedGroupSubscription.planLevelName, groupName: managedGroupSubscription.teamName || '', adminEmail: managedGroupSubscription.admin_id.email}, [{name: 'a', attrs: {href: '/user/subscription/plans'}}, 'strong'])}
p
a.btn.btn-primary(href="/manage/groups/" + managedGroupSubscription._id + "/members")
i.fa.fa-fw.fa-users
|  
| Manage members
|  
p
a(href="/manage/groups/" + managedGroupSubscription._id + "/managers")
i.fa.fa-fw.fa-users
|  
| Manage group managers
|  
p
a(href="/metrics/groups/" + managedGroupSubscription._id)
i.fa.fa-fw.fa-line-chart
|  
| View metrics
hr