mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
58841ecbe9
[views] mitigate Angular XSS in subscription dashboard GitOrigin-RevId: 4ac0c431d520957aabd53436ae29a30c2aef3870
30 lines
990 B
Text
30 lines
990 B
Text
script(type='text/javascript').
|
|
window.managedInstitutions = !{StringHelper.stringifyJsonForScript(managedInstitutions)}
|
|
|
|
each institution in managedInstitutions
|
|
p
|
|
| You are a manager of
|
|
|
|
|
strong(ng-non-bindable)= institution.name
|
|
p
|
|
a.btn.btn-primary(href="/metrics/institutions/" + institution.v1Id)
|
|
i.fa.fa-fw.fa-line-chart
|
|
|
|
|
| View metrics
|
|
p
|
|
a(href="/institutions/" + institution.v1Id + "/hub")
|
|
i.fa.fa-fw.fa-user-circle
|
|
|
|
|
| View hub
|
|
p
|
|
a(href="/manage/institutions/" + institution.v1Id + "/managers")
|
|
i.fa.fa-fw.fa-users
|
|
|
|
|
| Manage institution managers
|
|
div(ng-controller="MetricsEmailController", ng-cloak)
|
|
p
|
|
span Monthly metrics emails:
|
|
a(href ng-bind-html="institutionEmailSubscription('"+institution.v1Id+"')" ng-show="!subscriptionChanging" ng-click="changeInstitutionalEmailSubscription('"+institution.v1Id+"')")
|
|
span(ng-show="subscriptionChanging")
|
|
i.fa.fa-spin.fa-refresh(aria-hidden="true")
|
|
hr
|