From ef119402cf4655906bb7a1dc328f8f92ce9d7d2d Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Mon, 19 Feb 2018 16:34:24 +0000 Subject: [PATCH] Add Front chat widget. --- services/web/app/views/front-chat.pug | 4 ++++ services/web/app/views/project/list.pug | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 services/web/app/views/front-chat.pug diff --git a/services/web/app/views/front-chat.pug b/services/web/app/views/front-chat.pug new file mode 100644 index 0000000000..0f5c5fa861 --- /dev/null +++ b/services/web/app/views/front-chat.pug @@ -0,0 +1,4 @@ +- if (settings.overleaf && settings.front.chat_room_id != null) + script. + window.FCSP = '#{settings.front.chat_room_id}'; + script(src="https://chat-assets.frontapp.com/v1/chat.bundle.js") \ No newline at end of file diff --git a/services/web/app/views/project/list.pug b/services/web/app/views/project/list.pug index dc5f2c16b2..8f175c2cd5 100644 --- a/services/web/app/views/project/list.pug +++ b/services/web/app/views/project/list.pug @@ -86,3 +86,5 @@ block content include ./list/empty-project-list include ./list/modals + + include front-chat