From 65958ec15d9cb33b9de43641cfc427d2056b0aeb Mon Sep 17 00:00:00 2001 From: Gilbert Cherrie Date: Fri, 20 May 2022 12:25:57 -0400 Subject: [PATCH] Remove unused configuration views --- .../listnav/_configuration_profile.html.haml | 25 ------------------ .../listnav/_configured_system.html.haml | 24 ----------------- .../listnav/_ems_configuration.html.haml | 26 ------------------- 3 files changed, 75 deletions(-) delete mode 100644 app/views/layouts/listnav/_configuration_profile.html.haml delete mode 100644 app/views/layouts/listnav/_configured_system.html.haml delete mode 100644 app/views/layouts/listnav/_ems_configuration.html.haml diff --git a/app/views/layouts/listnav/_configuration_profile.html.haml b/app/views/layouts/listnav/_configuration_profile.html.haml deleted file mode 100644 index 5ace24d72db..00000000000 --- a/app/views/layouts/listnav/_configuration_profile.html.haml +++ /dev/null @@ -1,25 +0,0 @@ -- if @record.try(:name) - #accordion.panel-group - = miq_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do - = render :partial => 'shared/quadicon', :locals => {:record => @record} - - = miq_accordion_panel(_("Properties"), false, "stack_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to_with_icon(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "stack_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_configuration_show") && !@record.configuration_manager.nil? - %li - = link_to(_("Configuration Manager: %{name}") % {:name => @record.configuration_manager.name}, - {:controller => "ems_configuration", :action => 'show', :id => @record.configuration_manager.id}, - :title => _("Show parent Configuration Manager for this Configuration Profile")) - - if role_allows?(:feature => "configured_system_show_list") - = li_link(:count => @record.number_of(:configured_systems), - :record_id => @record.id, - :tables => 'configured_systems', - :display => 'configured_systems', - :action => 'show') diff --git a/app/views/layouts/listnav/_configured_system.html.haml b/app/views/layouts/listnav/_configured_system.html.haml deleted file mode 100644 index 3564bb1ba8b..00000000000 --- a/app/views/layouts/listnav/_configured_system.html.haml +++ /dev/null @@ -1,24 +0,0 @@ -- if @record.try(:name) - #accordion.panel-group - = miq_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do - = render :partial => 'shared/quadicon', :locals => {:record => @record} - - = miq_accordion_panel(_("Properties"), false, "stack_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to_with_icon(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "stack_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_configuration_show") && !@record.configuration_manager.nil? - %li - = link_to(_("Configuration Manager: %{name}") % {:name => @record.configuration_manager.name}, - {:controller => "ems_configuration", :action => 'show', :id => @record.configuration_manager.id}, - :title => _("Show parent Configuration Manager for this Configured System")) - - if role_allows?(:feature => "configuration_profile_show") && !@record.configuration_profile.nil? - %li - = link_to(_("Configuration Profile: %{name}") % {:name => @record.configuration_profile.name}, - {:controller => "configuration_profile", :action => 'show', :id => @record.configuration_profile.id}, - :title => _("Show parent Configuration Profile for this Configured System")) diff --git a/app/views/layouts/listnav/_ems_configuration.html.haml b/app/views/layouts/listnav/_ems_configuration.html.haml deleted file mode 100644 index b393c097713..00000000000 --- a/app/views/layouts/listnav/_ems_configuration.html.haml +++ /dev/null @@ -1,26 +0,0 @@ -- if @record.try(:name) - #accordion.panel-group - = miq_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do - = render :partial => 'shared/quadicon', :locals => {:record => @record} - - = miq_accordion_panel(_("Properties"), false, "stack_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to_with_icon(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "stack_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "configuration_profile_show_list") - = li_link(:count => @record.number_of(:configuration_profiles), - :record_id => @record.id, - :tables => 'configuration_profiles', - :display => 'configuration_profiles', - :action => 'show') - - if role_allows?(:feature => "configured_system_show_list") - = li_link(:count => @record.number_of(:configured_systems), - :record_id => @record.id, - :tables => 'configured_systems', - :display => 'configured_systems', - :action => 'show')