From 98f451c302793859e0125075c2e1c62f1eb634d9 Mon Sep 17 00:00:00 2001 From: ulferts Date: Mon, 4 Apr 2022 07:21:01 +0200 Subject: [PATCH] Feature/40215 restructure email settings (#10415) * rename user admin menu item * rename email admin menu item * restructure api and email admin menus --- ....rb => aggregation_settings_controller.rb} | 4 +- .../admin/settings/api_settings_controller.rb | 2 +- app/helpers/settings_helper.rb | 5 --- app/views/admin/index.html.erb | 2 +- .../show.html.erb | 12 +++-- .../admin/settings/api_settings/show.html.erb | 2 +- config/initializers/menus.rb | 28 ++++++++---- config/locales/en.yml | 11 +++-- config/routes.rb | 3 +- docs/system-admin-guide/README.md | 44 +++++++++---------- .../incoming-and-outgoing/README.md | 26 +++++------ .../users-permissions/README.md | 4 +- .../users-permissions/avatars/README.md | 2 +- .../users-permissions/groups/README.md | 2 +- .../placeholder-users/README.md | 2 +- .../roles-permissions/README.md | 2 +- .../users-permissions-faq/README.md | 4 +- .../users-permissions/users/README.md | 2 +- .../time-and-costs/time-tracking/README.md | 2 +- .../webhooks/outgoing/admin/index.html.erb | 5 +++ modules/webhooks/config/locales/en.yml | 5 +++ modules/webhooks/config/routes.rb | 10 +++-- .../lib/open_project/webhooks/engine.rb | 10 +---- .../outgoing/admin_controller_spec.rb | 28 ++++++------ spec/features/users/edit_users_spec.rb | 2 +- 25 files changed, 121 insertions(+), 98 deletions(-) rename app/controllers/admin/settings/{notifications_settings_controller.rb => aggregation_settings_controller.rb} (92%) rename app/views/admin/settings/{notifications_settings => aggregation_settings}/show.html.erb (78%) diff --git a/app/controllers/admin/settings/notifications_settings_controller.rb b/app/controllers/admin/settings/aggregation_settings_controller.rb similarity index 92% rename from app/controllers/admin/settings/notifications_settings_controller.rb rename to app/controllers/admin/settings/aggregation_settings_controller.rb index 694742c54a..fb87cf4a01 100644 --- a/app/controllers/admin/settings/notifications_settings_controller.rb +++ b/app/controllers/admin/settings/aggregation_settings_controller.rb @@ -27,7 +27,7 @@ #++ module Admin::Settings - class NotificationsSettingsController < ::Admin::SettingsController + class AggregationSettingsController < ::Admin::SettingsController current_menu_item [:show] do :notification_settings end @@ -37,7 +37,7 @@ module Admin::Settings end def default_breadcrumb - t(:'menus.admin.incoming_outgoing') + t(:'menus.admin.aggregation_and_retention') end def show_local_breadcrumb diff --git a/app/controllers/admin/settings/api_settings_controller.rb b/app/controllers/admin/settings/api_settings_controller.rb index ab4371803b..e7233cbe0a 100644 --- a/app/controllers/admin/settings/api_settings_controller.rb +++ b/app/controllers/admin/settings/api_settings_controller.rb @@ -28,7 +28,7 @@ module Admin::Settings class APISettingsController < ::Admin::SettingsController - menu_item :settings_api + menu_item :api def default_breadcrumb t(:label_api_access_key_type) diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb index 10417dd1da..acf0a3dd33 100644 --- a/app/helpers/settings_helper.rb +++ b/app/helpers/settings_helper.rb @@ -54,11 +54,6 @@ module SettingsHelper controller: '/admin/settings/attachments_settings', label: :'attributes.attachments' }, - { - name: 'api', - controller: '/admin/settings/api_settings', - label: :label_api_access_key_type - }, { name: 'repositories', controller:'/admin/settings/repositories_settings', diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index 5eec47a1ab..6e5e694aa6 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb @@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.