From a979202a7cd1befba43f0fadf23eb2eb07801a71 Mon Sep 17 00:00:00 2001 From: Chrystal Griffiths Date: Wed, 3 Oct 2018 16:40:32 +0100 Subject: [PATCH 1/2] Use settings appName --- services/web/app/coffee/infrastructure/ExpressLocals.coffee | 1 + .../ide/settings/controllers/ProjectNameController.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/infrastructure/ExpressLocals.coffee b/services/web/app/coffee/infrastructure/ExpressLocals.coffee index 8062763923..67cdc169d7 100644 --- a/services/web/app/coffee/infrastructure/ExpressLocals.coffee +++ b/services/web/app/coffee/infrastructure/ExpressLocals.coffee @@ -354,4 +354,5 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)-> webRouter.use (req, res, next) -> res.locals.ExposedSettings = isOverleaf: Settings.overleaf? + appName: Settings.appName next() diff --git a/services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee b/services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee index b70b8fc89c..1902885d9d 100644 --- a/services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee +++ b/services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee @@ -38,7 +38,7 @@ define [ $scope.$watch "project.name", (name) -> if name? - window.document.title = name + " - Online LaTeX Editor ShareLaTeX" + window.document.title = name + " - Online LaTeX Editor #{ExposedSettings.appName}" $scope.$applyAsync () -> # This ensures that the element is measured *after* the binding is done (i.e. project name is rendered). $scope.state.overflowed = (projectNameReadOnlyEl.scrollWidth > projectNameReadOnlyEl.clientWidth) From 13843f82a05f58a94583bec4d62a28086433451c Mon Sep 17 00:00:00 2001 From: Chrystal Griffiths Date: Wed, 3 Oct 2018 16:40:32 +0100 Subject: [PATCH 2/2] Use settings appName --- services/web/app/coffee/infrastructure/ExpressLocals.coffee | 1 + .../ide/settings/controllers/ProjectNameController.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/infrastructure/ExpressLocals.coffee b/services/web/app/coffee/infrastructure/ExpressLocals.coffee index 8062763923..67cdc169d7 100644 --- a/services/web/app/coffee/infrastructure/ExpressLocals.coffee +++ b/services/web/app/coffee/infrastructure/ExpressLocals.coffee @@ -354,4 +354,5 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)-> webRouter.use (req, res, next) -> res.locals.ExposedSettings = isOverleaf: Settings.overleaf? + appName: Settings.appName next() diff --git a/services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee b/services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee index b70b8fc89c..1902885d9d 100644 --- a/services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee +++ b/services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee @@ -38,7 +38,7 @@ define [ $scope.$watch "project.name", (name) -> if name? - window.document.title = name + " - Online LaTeX Editor ShareLaTeX" + window.document.title = name + " - Online LaTeX Editor #{ExposedSettings.appName}" $scope.$applyAsync () -> # This ensures that the element is measured *after* the binding is done (i.e. project name is rendered). $scope.state.overflowed = (projectNameReadOnlyEl.scrollWidth > projectNameReadOnlyEl.clientWidth)