From 454d9790ca8d30b0aab3dea72c43e4fb375ee01c Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Wed, 31 Mar 2021 11:38:07 +0200 Subject: [PATCH] Merge pull request #3828 from overleaf/jpa-meta-project-dash [views] migrate the project dashboard to meta tags GitOrigin-RevId: 934a9a64ca8668e8982caa7a945b1a55c87cb1ee --- services/web/app/views/project/list.pug | 6 +----- services/web/app/views/project/list/front-chat.pug | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 services/web/app/views/project/list/front-chat.pug diff --git a/services/web/app/views/project/list.pug b/services/web/app/views/project/list.pug index 0ef563f929..7df72f7304 100644 --- a/services/web/app/views/project/list.pug +++ b/services/web/app/views/project/list.pug @@ -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)} diff --git a/services/web/app/views/project/list/front-chat.pug b/services/web/app/views/project/list/front-chat.pug deleted file mode 100644 index 28911319a7..0000000000 --- a/services/web/app/views/project/list/front-chat.pug +++ /dev/null @@ -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")