diff --git a/app/modules/profile/profile.controller.coffee b/app/modules/profile/profile.controller.coffee index e5ac1770..d2a0e7bb 100644 --- a/app/modules/profile/profile.controller.coffee +++ b/app/modules/profile/profile.controller.coffee @@ -27,11 +27,13 @@ class ProfileController @._setMeta(@.user) _setMeta: (user) -> - title = @translate.instant("USER.PROFILE.PAGE_TITLE", { + ctx = { userFullName: user.get("full_name_display"), userUsername: user.get("username") - }) - description = user.get("bio") - @appMetaService.setAll(title, description) + } + + @translate("USER.PROFILE.PAGE_TITLE", ctx).then (title) => + description = user.get("bio") + @appMetaService.setAll(title, description) angular.module("taigaProfile").controller("Profile", ProfileController) diff --git a/app/modules/projects/project/project.controller.coffee b/app/modules/projects/project/project.controller.coffee index 55816d52..2f980ef0 100644 --- a/app/modules/projects/project/project.controller.coffee +++ b/app/modules/projects/project/project.controller.coffee @@ -22,8 +22,10 @@ class ProjectController @xhrError.response(xhr) _setMeta: (project)-> - title = @translate.instant("PROJECT.PAGE_TITLE", {projectName: project.get("name")}) - description = project.get("description") - @appMetaService.setAll(title, description) + ctx = {projectName: project.get("name")} + + title = @translate("PROJECT.PAGE_TITLE", ctx).then (title) => + description = project.get("description") + @appMetaService.setAll(title, description) angular.module("taigaProjects").controller("Project", ProjectController)