diff options
author | Phil Hughes <me@iamphill.com> | 2019-02-12 17:29:22 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-26 12:21:16 +0000 |
commit | e9b28a28a7494500f0295b87cf9f3389d48a8c30 (patch) | |
tree | 56ed313c0a31045f7bba5455371644593bfa00a3 /app/helpers | |
parent | b0097199a329c4de4eacc99a7d46d62c4ec0a1e0 (diff) | |
download | gitlab-ce-e9b28a28a7494500f0295b87cf9f3389d48a8c30.tar.gz |
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.rb | 3 |
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, |