From 8e5673e3d289e4d28b4fc9f20721bda9f1c858c7 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 4 Oct 2014 23:31:03 -0400 Subject: Improve settings page and move some config parameters to the database --- Vagrantfile | 2 +- app/Controller/Base.php | 9 +- app/Controller/Board.php | 8 +- app/Controller/Config.php | 124 +++++++++++++++------ app/Controller/User.php | 2 +- app/Controller/Webhook.php | 4 +- app/Locales/de_DE/translations.php | 20 +++- app/Locales/es_ES/translations.php | 20 +++- app/Locales/fi_FI/translations.php | 20 +++- app/Locales/fr_FR/translations.php | 20 +++- app/Locales/it_IT/translations.php | 20 +++- app/Locales/pl_PL/translations.php | 20 +++- app/Locales/pt_BR/translations.php | 20 +++- app/Locales/ru_RU/translations.php | 20 +++- app/Locales/sv_SE/translations.php | 20 +++- app/Locales/zh_CN/translations.php | 20 +++- app/Model/Config.php | 70 +++++++----- app/Model/Notification.php | 2 +- app/Model/Project.php | 2 +- app/Model/Webhook.php | 6 +- app/Schema/Mysql.php | 33 +++++- app/Schema/Postgres.php | 33 +++++- app/Schema/Sqlite.php | 33 +++++- app/Templates/board_index.php | 8 +- app/Templates/board_show.php | 4 +- app/Templates/config_about.php | 41 +++++++ app/Templates/config_api.php | 18 +++ app/Templates/config_application.php | 23 ++++ app/Templates/config_board.php | 29 +++++ app/Templates/config_index.php | 71 ------------ app/Templates/config_layout.php | 13 +++ app/Templates/config_sidebar.php | 22 ++++ app/Templates/config_webhook.php | 38 +++++++ app/Templates/layout.php | 4 +- app/Templates/notification_comment_creation.php | 2 +- app/Templates/notification_comment_update.php | 2 +- app/Templates/notification_file_creation.php | 2 +- app/Templates/notification_footer.php | 4 +- app/Templates/notification_subtask_creation.php | 2 +- app/Templates/notification_subtask_update.php | 2 +- .../notification_task_assignee_change.php | 2 +- app/Templates/notification_task_close.php | 2 +- app/Templates/notification_task_creation.php | 2 +- app/Templates/notification_task_due.php | 2 +- app/Templates/notification_task_move_column.php | 2 +- app/Templates/notification_task_move_position.php | 2 +- app/Templates/notification_task_open.php | 2 +- app/Templates/notification_task_update.php | 2 +- app/Templates/project_share.php | 2 +- app/Templates/project_show.php | 2 +- app/Templates/user_external.php | 4 +- app/Templates/user_show.php | 2 +- app/constants.php | 9 -- app/helpers.php | 29 ++++- assets/css/app.css | 12 +- config.default.php | 12 -- jsonrpc.php | 9 +- kanboard | 10 +- tests/functionals.mysql.xml | 2 +- tests/functionals.postgres.xml | 2 +- tests/functionals.sqlite.xml | 2 +- tests/functionals/ApiTest.php | 2 +- tests/units/BoardTest.php | 4 +- tests/units/ConfigTest.php | 18 +-- 64 files changed, 706 insertions(+), 244 deletions(-) create mode 100644 app/Templates/config_about.php create mode 100644 app/Templates/config_api.php create mode 100644 app/Templates/config_application.php create mode 100644 app/Templates/config_board.php delete mode 100644 app/Templates/config_index.php create mode 100644 app/Templates/config_layout.php create mode 100644 app/Templates/config_sidebar.php create mode 100644 app/Templates/config_webhook.php diff --git a/Vagrantfile b/Vagrantfile index f1b7a6f3..94eb41b8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -6,7 +6,7 @@ VAGRANTFILE_API_VERSION = "2" $script = <