summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-12-06 09:31:55 +0000
committerPhil Hughes <me@iamphill.com>2018-12-06 09:31:55 +0000
commit71da313cd43bcbbbc8ec483944f887bacc518d81 (patch)
tree7f6e56c5113d716a5103470dace08dab87390e49 /app/helpers
parent2a773f82c9eaaa90ffe060d2ffe92ccd6dfbf91c (diff)
parent8ce8303fa9fe79ba0383b7a708f9e9b5311348c3 (diff)
downloadgitlab-ce-71da313cd43bcbbbc8ec483944f887bacc518d81.tar.gz
Merge branch '5426-fe-web-terminal-init-store-ce' into 'master'
CE Port of "Setup IDE terminal store for environment checks" See merge request gitlab-org/gitlab-ce!23575
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/ide_helper.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/helpers/ide_helper.rb b/app/helpers/ide_helper.rb
new file mode 100644
index 00000000000..8e50bbc6c04
--- /dev/null
+++ b/app/helpers/ide_helper.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+module IdeHelper
+ def ide_data
+ {
+ "empty-state-svg-path" => image_path('illustrations/multi_file_editor_empty.svg'),
+ "no-changes-state-svg-path" => image_path('illustrations/multi-editor_no_changes_empty.svg'),
+ "committed-state-svg-path" => image_path('illustrations/multi-editor_all_changes_committed_empty.svg'),
+ "pipelines-empty-state-svg-path": image_path('illustrations/pipelines_empty.svg'),
+ "promotion-svg-path": image_path('illustrations/web-ide_promotion.svg'),
+ "ci-help-page-path" => help_page_path('ci/quick_start/README'),
+ "web-ide-help-page-path" => help_page_path('user/project/web_ide/index.html'),
+ "clientside-preview-enabled": Gitlab::CurrentSettings.current_application_settings.web_ide_clientside_preview_enabled.to_s
+ }
+ end
+end