Skip to content
Snippets Groups Projects
Unverified Commit 9f03680e authored by Phil Hughes's avatar Phil Hughes
Browse files

Moved IDE into EE folder

parent 6d49d141
No related branches found
No related tags found
No related merge requests found
Showing
with 7 additions and 20 deletions
Loading
Loading
@@ -324,10 +324,6 @@ module ApplicationHelper
cookies["sidebar_collapsed"] == "true"
end
 
def show_new_ide?(project)
cookies["new_repo"] == "true" && project.feature_available?(:ide)
end
def locale_path
asset_path("locale/#{Gitlab::I18n.locale}/app.js")
end
Loading
Loading
Loading
Loading
@@ -33,20 +33,6 @@ module BlobHelper
ref)
end
 
def ide_edit_button(project = @project, ref = @ref, path = @path, options = {})
return unless show_new_ide?(project)
return unless blob = readable_blob(options, path, project, ref)
common_classes = "btn js-edit-ide #{options[:extra_class]}"
edit_button_tag(blob,
common_classes,
_('Web IDE'),
ide_edit_path(project, ref, path, options),
project,
ref)
end
def modify_file_button(project = @project, ref = @ref, path = @path, label:, action:, btn_class:, modal_type:)
return unless current_user
 
Loading
Loading
Loading
Loading
@@ -78,9 +78,11 @@
 
= render 'projects/find_file_link'
 
-## EE-specific
- if show_new_ide?(@project)
= succeed " " do
= link_to ide_edit_path(@project, @id), class: 'btn btn-default' do
= _('Web IDE')
-## EE-specific
 
= render 'projects/buttons/download', project: @project, ref: @ref
Loading
Loading
@@ -58,8 +58,6 @@ Rails.application.routes.draw do
get 'liveness' => 'health#liveness'
get 'readiness' => 'health#readiness'
post 'storage_check' => 'health#storage_check'
get 'ide' => 'ide#index'
get 'ide/*vueroute' => 'ide#index', format: false
resources :metrics, only: [:index]
mount Peek::Railtie => '/peek'
 
Loading
Loading
@@ -78,6 +76,11 @@ Rails.application.routes.draw do
 
# UserCallouts
resources :user_callouts, only: [:create]
## EE-specific
get 'ide' => 'ide#index'
get 'ide/*vueroute' => 'ide#index', format: false
## EE-specific
end
 
# Koding route
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment