diff --git a/app/views/catalog/explorer.html.haml b/app/views/catalog/explorer.html.haml index 3c752fc0b0e..6b82963719d 100644 --- a/app/views/catalog/explorer.html.haml +++ b/app/views/catalog/explorer.html.haml @@ -19,10 +19,3 @@ ManageIQ.afterOnload = {action: () => miqPrepRightCellForm("#{x_active_tree}")} - else = render :partial => "layouts/x_gtl" - --# To include MyCodeMirror JS and CSS files -= render :partial => "/layouts/my_code_mirror", - :locals => {:text_area_id => "miq_none", - :mode => "htmlmixed", - :height => '350px', - :width => '600px'} diff --git a/app/views/miq_ae_class/explorer.html.haml b/app/views/miq_ae_class/explorer.html.haml index 3d63afda7f9..c0a20492c44 100644 --- a/app/views/miq_ae_class/explorer.html.haml +++ b/app/views/miq_ae_class/explorer.html.haml @@ -1,5 +1,2 @@ #main_div = render :partial => "all_tabs" - --# To include MyCodeMirror JS and CSS files -= render :partial => "/layouts/my_code_mirror", :locals => {:text_area_id => "miq_none", :mode => "ruby"} diff --git a/app/views/miq_ae_class/show.html.haml b/app/views/miq_ae_class/show.html.haml deleted file mode 100644 index 3d63afda7f9..00000000000 --- a/app/views/miq_ae_class/show.html.haml +++ /dev/null @@ -1,5 +0,0 @@ -#main_div - = render :partial => "all_tabs" - --# To include MyCodeMirror JS and CSS files -= render :partial => "/layouts/my_code_mirror", :locals => {:text_area_id => "miq_none", :mode => "ruby"} diff --git a/app/views/pxe/_template_script_data.html.haml b/app/views/pxe/_template_script_data.html.haml deleted file mode 100644 index 7a13417c9b0..00000000000 --- a/app/views/pxe/_template_script_data.html.haml +++ /dev/null @@ -1,11 +0,0 @@ -#script_div - = text_area_tag("script_data", @edit[:new][:script], :style => "display:none;") -:javascript - ManageIQ.oneTransition.oneTrans = 0; --# Create a MyCodeMirror editor for the text area -= render(:partial => "/layouts/my_code_mirror", - :locals => {:text_area_id => "script_data", - :mode => @edit[:new][:typ] == "CustomizationTemplateKickstart" ? "shell" : "xml", - :line_numbers => true, - :url => url_for_only_path(:action => 'template_form_field_changed', - :id => "#{@ct.id || "new"}", :transOne => '1')}) diff --git a/app/views/pxe/explorer.html.haml b/app/views/pxe/explorer.html.haml index 9cd2769e964..6e1c5f167b0 100644 --- a/app/views/pxe/explorer.html.haml +++ b/app/views/pxe/explorer.html.haml @@ -9,9 +9,3 @@ = render :partial => "template_list" - when :iso_datastores_tree = render :partial => "iso_datastore_list" - --# To include MyCodeMirror JS and CSS files -= render(:partial => "/layouts/my_code_mirror", - :locals => {:text_area_id => "miq_none", - :mode => "xml", - :modes => %w(shell xml)}) diff --git a/spec/views/miq_ae_class/show.html.haml_spec.rb b/spec/views/miq_ae_class/show.html.haml_spec.rb deleted file mode 100644 index 993d0eefb8f..00000000000 --- a/spec/views/miq_ae_class/show.html.haml_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -describe "miq_ae_class/show.html.haml" do - let(:ae_domain) { FactoryBot.create(:miq_ae_domain) } - - before do - allow(view).to receive(:x_node).and_return("aen-#{ae_domain.id}") - assign(:sb, :active_tab => 'details') - assign(:records, []) - end - - it 'renders partial all_tabs' do - render :template => "miq_ae_class/show" - expect(response).to include("
", "
", 'miqInitCodemirror({"text_area_id":"miq_none"') - end -end