Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-08 12:07:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-08 12:07:53 +0300
commita821bd6ad17e304ca93838a411410a44ee9cff9f (patch)
tree5444ab20a2f8b22db736a93c5c376928dde8e450 /app/helpers/application_settings_helper.rb
parentf6e985dba4d0f5b1ede95e9174d30dd6a8bedf0d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/application_settings_helper.rb')
-rw-r--r--app/helpers/application_settings_helper.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb
index 71e4195c50f..d9a91f72dca 100644
--- a/app/helpers/application_settings_helper.rb
+++ b/app/helpers/application_settings_helper.rb
@@ -334,6 +334,22 @@ module ApplicationSettingsHelper
def omnibus_protected_paths_throttle?
Rack::Attack.throttles.key?('protected paths')
end
+
+ def self_monitoring_project_data
+ {
+ 'create_self_monitoring_project_path' =>
+ create_self_monitoring_project_admin_application_settings_path,
+
+ 'status_create_self_monitoring_project_path' =>
+ status_create_self_monitoring_project_admin_application_settings_path,
+
+ 'self_monitoring_project_exists' =>
+ Gitlab::CurrentSettings.instance_administration_project.present?,
+
+ 'self_monitoring_project_full_path' =>
+ Gitlab::CurrentSettings.instance_administration_project&.full_path
+ }
+ end
end
ApplicationSettingsHelper.prepend_if_ee('EE::ApplicationSettingsHelper') # rubocop: disable Cop/InjectEnterpriseEditionModule