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:
authorPhil Hughes <me@iamphill.com>2019-02-12 20:29:22 +0300
committerPhil Hughes <me@iamphill.com>2019-02-26 15:21:16 +0300
commite9b28a28a7494500f0295b87cf9f3389d48a8c30 (patch)
tree56ed313c0a31045f7bba5455371644593bfa00a3 /app/helpers
parentb0097199a329c4de4eacc99a7d46d62c4ec0a1e0 (diff)
Makes the Web IDE the default editor
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/42382
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/blob_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb
index 23d6684a8e6..06beeebe2ba 100644
--- a/app/helpers/blob_helper.rb
+++ b/app/helpers/blob_helper.rb
@@ -31,12 +31,13 @@ module BlobHelper
edit_button_tag(blob,
common_classes,
_('Edit'),
- edit_blob_path(project, ref, path, options),
+ Feature.enabled?(:web_ide_default) ? ide_edit_path(project, ref, path, options) : edit_blob_path(project, ref, path, options),
project,
ref)
end
def ide_edit_button(project = @project, ref = @ref, path = @path, options = {})
+ return unless Feature.enabled?(:web_ide_default)
return unless blob = readable_blob(options, path, project, ref)
edit_button_tag(blob,