Merge pull request #3828 from overleaf/jpa-meta-project-dash

[views] migrate the project dashboard to meta tags

GitOrigin-RevId: 934a9a64ca8668e8982caa7a945b1a55c87cb1ee
This commit is contained in:
Miguel Serrano 2021-03-31 11:38:07 +02:00 committed by Copybot
parent eeb2b7d18b
commit 454d9790ca
2 changed files with 1 additions and 9 deletions

View file

@ -10,6 +10,7 @@ block append meta
meta(name="ol-notificationsInstitution" data-type="json" content=notificationsInstitution)
meta(name="ol-userAffiliations" data-type="json" content=userAffiliations)
meta(name="ol-userEmails" data-type="json" content=userEmails)
meta(name="ol-userHasNoSubscription" data-type="boolean" content=!!(settings.enableSubscriptions && !hasSubscription))
meta(name="ol-allInReconfirmNotificationPeriods" data-type="json" content=allInReconfirmNotificationPeriods)
meta(name="ol-reconfirmedViaSAML" content=reconfirmedViaSAML)
meta(name="ol-algolia" data-type="json" content={
@ -60,8 +61,3 @@ block content
include ./list/notifications
include ./list/modals
//- include ./list/front-chat
script(type="text/javascript", nonce=scriptNonce).
window.userHasNoSubscription = #{!!(settings.enableSubscriptions && !hasSubscription)}

View file

@ -1,4 +0,0 @@
if (frontChatWidgetRoomId)
script(type="text/javascript", nonce=scriptNonce).
window.FCSP = '#{frontChatWidgetRoomId}';
script(type="text/javascript", nonce=scriptNonce, src="https://chat-assets.frontapp.com/v1/chat.bundle.js")