From 5801bccbc9773e65e9ccf2f4982bb494887814d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Hermida?= Date: Mon, 24 Sep 2018 13:39:29 +0200 Subject: [PATCH] Refactor homepage to start_page --- app/coffee/modules/common/sections.coffee | 13 +++++-------- app/locales/taiga/locale-en.json | 4 ++-- .../includes/modules/user-settings-menu.jade | 4 ++-- app/partials/user/user-project-settings.jade | 4 ++-- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/app/coffee/modules/common/sections.coffee b/app/coffee/modules/common/sections.coffee index 787a5205..f826d413 100644 --- a/app/coffee/modules/common/sections.coffee +++ b/app/coffee/modules/common/sections.coffee @@ -26,14 +26,11 @@ module = angular.module("taigaCommon") SECTIONS = { 1: {id: 1, title: 'TIMELINE', path:'timeline'} - 2: {id: 2, title: 'SEARCH', path:'search'} - 3: {id: 3, title: 'EPICS', path:'epics'} - 4: {id: 4, title: 'BACKLOG', path:'backlog'} - 5: {id: 5, title: 'KANBAN', path:'kanban'} - 6: {id: 6, title: 'ISSUES', path:'issues'} - 7: {id: 7, title: 'WIKI', path:'wiki'} - 8: {id: 8, title: 'TEAM', path:'team'} - 10: {id: 9, title: 'ADMIN', path:'admin'} + 2: {id: 2, title: 'EPICS', path:'epics'} + 3: {id: 3, title: 'BACKLOG', path:'backlog'} + 4: {id: 4, title: 'KANBAN', path:'kanban'} + 5: {id: 5, title: 'ISSUES', path:'issues'} + 6: {id: 6, title: 'WIKI', path:'wiki'} } class SectionsService extends taiga.Service diff --git a/app/locales/taiga/locale-en.json b/app/locales/taiga/locale-en.json index 9aed172c..ec33d1fb 100644 --- a/app/locales/taiga/locale-en.json +++ b/app/locales/taiga/locale-en.json @@ -1564,9 +1564,9 @@ "OPTION_NONE": "None" }, "PROJECT_SETTINGS": { - "CUSTOM_HOMEPAGE": "Custom Homepage", + "SET_START_PAGES": "Set start pages", "COLUMN_PROJECT": "Project", - "COLUMN_HOMEPAGE": "Homepage", + "COLUMN_STARTPAGE": "Start page", "DEFAULT_VALUE": "Default" } }, diff --git a/app/partials/includes/modules/user-settings-menu.jade b/app/partials/includes/modules/user-settings-menu.jade index 47e07ef6..4e165e35 100644 --- a/app/partials/includes/modules/user-settings-menu.jade +++ b/app/partials/includes/modules/user-settings-menu.jade @@ -8,8 +8,8 @@ section.admin-menu a(href="" tg-nav="user-settings-user-change-password", title="{{ 'USER_SETTINGS.MENU.CHANGE_PASSWORD' | translate }}") span.title(translate="USER_SETTINGS.MENU.CHANGE_PASSWORD") li#usersettingsmenu-custom-homepage - a(href="", tg-nav="user-settings-user-project-settings", title="{{ 'USER_SETTINGS.PROJECT_SETTINGS.CUSTOM_HOMEPAGE' | translate }}") - span.title(translate="USER_SETTINGS.PROJECT_SETTINGS.CUSTOM_HOMEPAGE") + a(href="", tg-nav="user-settings-user-project-settings", title="{{ 'USER_SETTINGS.PROJECT_SETTINGS.SET_START_PAGES' | translate }}") + span.title(translate="USER_SETTINGS.PROJECT_SETTINGS.SET_START_PAGES") li#usersettingsmenu-mail-notifications a(href="", tg-nav="user-settings-mail-notifications", title="{{ 'USER_SETTINGS.MENU.EMAIL_NOTIFICATIONS' | translate }}") span.title(translate="USER_SETTINGS.MENU.EMAIL_NOTIFICATIONS") diff --git a/app/partials/user/user-project-settings.jade b/app/partials/user/user-project-settings.jade index 64d72fb0..ebf73e22 100644 --- a/app/partials/user/user-project-settings.jade +++ b/app/partials/user/user-project-settings.jade @@ -11,7 +11,7 @@ div.wrapper( section.main.admin-common header h1 - span.green {{ 'USER_SETTINGS.PROJECT_SETTINGS.CUSTOM_HOMEPAGE' | translate }} + span.green {{ 'USER_SETTINGS.PROJECT_SETTINGS.SET_START_PAGES' | translate }} section.project-settings-table div.custom-table-header @@ -19,7 +19,7 @@ div.wrapper( div.project-settings-table-project span(translate="USER_SETTINGS.PROJECT_SETTINGS.COLUMN_PROJECT") div.project-settings-table-homepage - span(translate="USER_SETTINGS.PROJECT_SETTINGS.COLUMN_HOMEPAGE") + span(translate="USER_SETTINGS.PROJECT_SETTINGS.COLUMN_STARTPAGE") div.project-settings-table-body .project-settings-table-row(ng-repeat="projectSettings in userProjectSettings") .project-settings-table-project