diff --git a/app/controllers/mixins/listnav_mixin.rb b/app/controllers/mixins/listnav_mixin.rb deleted file mode 100644 index f35f4dde24bd..000000000000 --- a/app/controllers/mixins/listnav_mixin.rb +++ /dev/null @@ -1,11 +0,0 @@ -module Mixins - module ListnavMixin - def listnav_filename - if params[:action] == "show_list" - "show_list" - elsif params[:action] == "show" - controller_name - end - end - end -end diff --git a/app/helpers/application_helper/listnav.rb b/app/helpers/application_helper/listnav.rb index 5a3dd4012120..93ac2a9c6381 100644 --- a/app/helpers/application_helper/listnav.rb +++ b/app/helpers/application_helper/listnav.rb @@ -1,7 +1,6 @@ module ApplicationHelper module Listnav def render_listnav_filename - return controller.listnav_filename if controller.respond_to?(:listnav_filename, true) common_layouts = %w[ auth_key_pair_cloud availability_zone @@ -72,10 +71,6 @@ def render_listnav_filename "compare_sections" elsif @explorer "explorer" - elsif @layout == "timeline" - controller.controller_name - elsif common_layouts.include?(@layout) - @layout end end diff --git a/app/helpers/application_helper/page_layouts.rb b/app/helpers/application_helper/page_layouts.rb index 4164fd1ead8c..a55cef4b61ec 100644 --- a/app/helpers/application_helper/page_layouts.rb +++ b/app/helpers/application_helper/page_layouts.rb @@ -1,5 +1,6 @@ module ApplicationHelper::PageLayouts def layout_uses_listnav? + return false if @showtype == "main" return false if show_list_with_no_provider? return false if show_list_ansible? diff --git a/app/views/layouts/listnav/_ansible_credential.html.haml b/app/views/layouts/listnav/_ansible_credential.html.haml deleted file mode 100644 index 85a17e9552e7..000000000000 --- a/app/views/layouts/listnav/_ansible_credential.html.haml +++ /dev/null @@ -1,19 +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 - %li - = li_link(:count => @record.number_of(:configuration_script_sources), - :text => _("Repositories"), - :display => 'repositories', - :record_id => @record.id, - :title => _("Show all Playbooks")) diff --git a/app/views/layouts/listnav/_ansible_playbook.html.haml b/app/views/layouts/listnav/_ansible_playbook.html.haml deleted file mode 100644 index fda766013cb6..000000000000 --- a/app/views/layouts/listnav/_ansible_playbook.html.haml +++ /dev/null @@ -1,19 +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 - %li - = link_to(_('Repository'), - {:controller => "ansible_repository", - :action => 'show', - :id => @record.configuration_script_source_id}, - :title => _("Show Repositoty for this Playbook")) diff --git a/app/views/layouts/listnav/_ansible_repository.html.haml b/app/views/layouts/listnav/_ansible_repository.html.haml deleted file mode 100644 index d229d4791972..000000000000 --- a/app/views/layouts/listnav/_ansible_repository.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 - %li - = li_link(:count => @record.total_payloads, - :text => _("Playbooks"), - :display => 'playbooks', - :record_id => @record.id, - :title => _("Show all Playbooks")) - - if @record.authentication.present? - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_("Credential: %{name}") % {:name => @record.authentication.name}, - {:controller => "ansible_credential", :action => 'show', :id => @record.authentication.id}, - :title => _("Show Credential for this Repository")) diff --git a/app/views/layouts/listnav/_auth_key_pair_cloud.html.haml b/app/views/layouts/listnav/_auth_key_pair_cloud.html.haml deleted file mode 100644 index 77908a3ff0d0..000000000000 --- a/app/views/layouts/listnav/_auth_key_pair_cloud.html.haml +++ /dev/null @@ -1,21 +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, "auth_key_pair_cloud_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "auth_key_pair_cloud_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "vm_show_list") - - if @record.number_of(:vms) == 0 - %li.disabled - = link_to(_('Instances (%{count})') % {:count => @record.number_of(:vms)}, '#') - - else - %li - = link_to(_("Instances (%{count})") % {:count => @record.number_of(:vms)}, - {:action => 'show', :id => @record, :display => 'instances'}, - :title => _("Show all Instances")) diff --git a/app/views/layouts/listnav/_availability_zone.html.haml b/app/views/layouts/listnav/_availability_zone.html.haml deleted file mode 100644 index 54d64437821a..000000000000 --- a/app/views/layouts/listnav/_availability_zone.html.haml +++ /dev/null @@ -1,28 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_cloud_path(@record.ext_management_system.id), - :title => _("Show this Availability Zone's parent Cloud Provider")) - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record => @record, - :display => 'instances', - :title => _("Show all Instances")) - - if role_allows?(:feature => "cloud_volume_show_list") - = li_link(:count => @record.number_of(:cloud_volumes), - :tables => 'cloud_volume', - :record => @record, - :display => 'cloud_volumes',) diff --git a/app/views/layouts/listnav/_cloud_network.html.haml b/app/views/layouts/listnav/_cloud_network.html.haml deleted file mode 100644 index dacfcca35a3c..000000000000 --- a/app/views/layouts/listnav/_cloud_network.html.haml +++ /dev/null @@ -1,21 +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, "ems_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, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_network, "ext_management_system") - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record_id => @record.id, - :display => 'instances', - :title => _("Show all Instances")) diff --git a/app/views/layouts/listnav/_cloud_object_store_container.html.haml b/app/views/layouts/listnav/_cloud_object_store_container.html.haml deleted file mode 100644 index 4d7395a0dc52..000000000000 --- a/app/views/layouts/listnav/_cloud_object_store_container.html.haml +++ /dev/null @@ -1,29 +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, "cloud_object_store_container_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "cloud_object_store_container_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = single_relationship_link(@record, :ems_storage, "ext_management_system") - - if role_allows?(:feature => "cloud_tenant_show") && @record.cloud_tenant - %li - = link_to(_("Cloud Tenant: %{name}") % {:name => @record.cloud_tenant.name}, - {:action => 'show', :id => @record.cloud_tenant.id, :controller => 'cloud_tenant'}, - :title => _("Show this Cloud Object Store's parent Cloud Tenant")) - - if role_allows?(:feature => "cloud_object_store_object_show_list") - - if @record.number_of(:cloud_object_store_objects) == 0 - %li.disabled - = link_to(_("Cloud Objects (%{count})") % {:count => @record.number_of(:cloud_object_store_objects)}, "#") - - else - %li - = link_to(_("Cloud Objects (%{count})") % {:count => @record.number_of(:cloud_object_store_objects)}, - {:action => 'show', :id => @record, :display => 'cloud_object_store_objects'}, - :title => _("Show this Cloud Object Store's child Cloud Objects'")) diff --git a/app/views/layouts/listnav/_cloud_object_store_object.html.haml b/app/views/layouts/listnav/_cloud_object_store_object.html.haml deleted file mode 100644 index 979237b5c21e..000000000000 --- a/app/views/layouts/listnav/_cloud_object_store_object.html.haml +++ /dev/null @@ -1,25 +0,0 @@ -- if @record.try(:key) - #accordion.panel-group - = miq_accordion_panel(truncate(@record.key, :length => truncate_length), true, "icon") do - = render :partial => 'shared/quadicon', :locals => {:record => @record} - - = miq_accordion_panel(_("Properties"), false, "cloud_object_store_object_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "cloud_object_store_object_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = single_relationship_link(@record, :ems_storage, "ext_management_system") - - if role_allows?(:feature => "cloud_tenant_show") && @record.cloud_tenant - %li - = link_to(_("Cloud Tenant: %{name}") % {:name => @record.cloud_tenant.name}, - {:action => 'show', :id => @record.cloud_tenant.id, :controller => 'cloud_tenant'}, - :title => _("Show this Cloud Object's parent Cloud Tenant")) - - if role_allows?(:feature => "cloud_object_store_container_show") && @record.cloud_object_store_container - %li - = link_to(_("Cloud Object Store: %{name}") % {:name => @record.cloud_object_store_container.key}, - {:action => 'show', :id => @record.cloud_object_store_container.id, :controller => 'cloud_object_store_container'}, - :title => _("Show this Cloud Object's parent Cloud Object Store")) diff --git a/app/views/layouts/listnav/_cloud_subnet.html.haml b/app/views/layouts/listnav/_cloud_subnet.html.haml deleted file mode 100644 index dacfcca35a3c..000000000000 --- a/app/views/layouts/listnav/_cloud_subnet.html.haml +++ /dev/null @@ -1,21 +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, "ems_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, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_network, "ext_management_system") - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record_id => @record.id, - :display => 'instances', - :title => _("Show all Instances")) diff --git a/app/views/layouts/listnav/_cloud_tenant.html.haml b/app/views/layouts/listnav/_cloud_tenant.html.haml deleted file mode 100644 index 1b7145a24184..000000000000 --- a/app/views/layouts/listnav/_cloud_tenant.html.haml +++ /dev/null @@ -1,53 +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, "ems_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, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = link_to_with_icon(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_cloud_path(@record.ext_management_system.id), - :title => _("Show this Cloud Tenant's parent Cloud Provider")) - - if role_allows?(:feature => "security_group_show_list") - = li_link(:count => @record.number_of(:security_groups), - :text => _("Security Groups"), - :record_id => @record.id, - :display => 'security_groups', - :title => _("Show all Security Groups")) - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record_id => @record.id, - :display => 'instances', - :title => _("Show all Instances")) - - if role_allows?(:feature => "miq_template_show_list") - = li_link(:count => @record.number_of(:miq_templates), - :text => _("Images"), - :record_id => @record.id, - :display => 'images', - :title => _("Show all Images")) - - if role_allows?(:feature => "cloud_volume_show_list") - = li_link(:count => @record.number_of(:cloud_volumes), - :text => _("Volumes"), - :record_id => @record.id, - :display => 'cloud_volumes', - :title => _("Show all Volumes")) - - if role_allows?(:feature => "cloud_volume_snapshot_show_list") - = li_link(:count => @record.number_of(:cloud_volume_snapshots), - :text => _("Volume Snapshots"), - :record_id => @record.id, - :display => 'cloud_volume_snapshots', - :title => _("Show all Volume Snapshots")) - - if role_allows?(:feature => "cloud_object_store_container_show_list") - = li_link(:count => @record.number_of(:cloud_object_store_containers), - :text => _("Cloud Object Stores"), - :record_id => @record.id, - :display => 'cloud_object_store_containers', - :title => _("Show all Cloud Object Stores")) diff --git a/app/views/layouts/listnav/_cloud_volume.html.haml b/app/views/layouts/listnav/_cloud_volume.html.haml deleted file mode 100644 index a3d50315c19a..000000000000 --- a/app/views/layouts/listnav/_cloud_volume.html.haml +++ /dev/null @@ -1,34 +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, "cloud_object_store_container_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "cloud_object_store_container_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = single_relationship_link(@record, :ems_storage, "ext_management_system") - - if role_allows?(:feature => "availability_zone_show") && @record.availability_zone - %li - = link_to(_("Availability Zone: %{name}") % {:name => @record.availability_zone.name}, - {:action => 'show', :id => @record.availability_zone.id, :controller => 'availability_zone'}, - :title => _("Show this Cloud Volume's parent Availability Zone")) - - if role_allows?(:feature => "cloud_tenant_show") && @record.cloud_tenant - %li - = link_to(_("Cloud Tenant: %{name}") % {:name => @record.cloud_tenant.name}, - {:action => 'show', :id => @record.cloud_tenant.id, :controller => 'cloud_tenant'}, - :title => _("Show this Cloud Volume's parent Cloud Tenant")) - - if role_allows?(:feature => "cloud_volume_snapshot_show") - - if @record.number_of(:cloud_volume_snapshots) == 0 - %li.disabled - = link_to(_("Cloud Volume Snapshots (0)"), "#") - - else - %li - = link_to(_("Cloud Volume Snapshots (%{count})") % {:count => @record.number_of(:cloud_volume_snapshots)}, - {:action => 'show', :id => @record, :display => 'cloud_volume_snapshots'}, - :title => _("Show all Cloud Volume Snapshots")) diff --git a/app/views/layouts/listnav/_cloud_volume_backup.html.haml b/app/views/layouts/listnav/_cloud_volume_backup.html.haml deleted file mode 100644 index 5d54798a1e8a..000000000000 --- a/app/views/layouts/listnav/_cloud_volume_backup.html.haml +++ /dev/null @@ -1,22 +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, "cloud_volume_backup_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "cloud_volume_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_cloud_path(@record.ext_management_system.id), - :title => _("Show this Backup's parent Cloud Provider")) - - if role_allows?(:feature => "cloud_volume_show") && @record.cloud_volume - %li - = link_to(_("Cloud Volume: %{name}") % {:name => @record.cloud_volume.name}, - {:action => 'show', :id => @record.cloud_volume.id, :controller => 'cloud_volume'}, - :title => _("Show this Backup's parent Cloud Volume")) diff --git a/app/views/layouts/listnav/_cloud_volume_snapshot.html.haml b/app/views/layouts/listnav/_cloud_volume_snapshot.html.haml deleted file mode 100644 index c5f811bff051..000000000000 --- a/app/views/layouts/listnav/_cloud_volume_snapshot.html.haml +++ /dev/null @@ -1,36 +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, "cloud_volume_snapshot_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "cloud_volume_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_storage_path(@record.ext_management_system.id), - :title => _("Show this Snapshot's parent Storage Manager")) - - if role_allows?(:feature => "cloud_volume_show") && @record.cloud_volume - %li - = link_to(_("Cloud Volume: %{name}") % {:name => @record.cloud_volume.name}, - {:action => 'show', :id => @record.cloud_volume.id, :controller => 'cloud_volume'}, - :title => _("Show this Snapshot's parent Cloud Volume")) - - if role_allows?(:feature => "cloud_volume_show_list") - - if @record.number_of(:based_volumes) == 0 - %li.disabled - = link_to(_('Cloud Volumes based on Snapshot (%{count})') % {:count => @record.number_of(:based_volumes)}, "#") - - else - %li - = link_to(_("Cloud Volumes based on Snapshot (%{count})") % {:count => @record.number_of(:based_volumes)}, - {:action => 'show', :id => @record, :display => 'based_volumes'}, - :title => _("Show all Cloud Volumes based on this Snapshot")) - - if role_allows?(:feature => "cloud_tenant_show") && @record.cloud_tenant - %li - = link_to(_("Cloud Tenant: %{name}") % {:name => @record.cloud_tenant.name}, - {:action => 'show', :id => @record.cloud_tenant.id, :controller => 'cloud_tenant'}, - :title => _("Show this Snapshot's parent Cloud Tenant")) diff --git a/app/views/layouts/listnav/_cloud_volume_type.html.haml b/app/views/layouts/listnav/_cloud_volume_type.html.haml deleted file mode 100644 index 785b018beec7..000000000000 --- a/app/views/layouts/listnav/_cloud_volume_type.html.haml +++ /dev/null @@ -1,17 +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, "cloud_volume_type_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "cloud_volume_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_cloud_path(@record.ext_management_system.id), - :title => _("Show this Backup's parent Cloud Provider")) diff --git a/app/views/layouts/listnav/_configuration_job.html.haml b/app/views/layouts/listnav/_configuration_job.html.haml deleted file mode 100644 index 5b511a5e17a4..000000000000 --- a/app/views/layouts/listnav/_configuration_job.html.haml +++ /dev/null @@ -1,32 +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 => "automation_manager_providers_view") && @record.ext_management_system - %li - = link_to("#{ui_lookup(:model => @record.ext_management_system.class.to_s)}: #{@record.ext_management_system.name}", - {:controller => "automation_manager", - :action => 'explorer', - :accordion => "automation_manager_providers", - :id => "at-#{@record.ext_management_system.id}"}, - :title => _("Show parent %s for this Job") % ui_lookup(:model => @record.ext_management_system.class.to_s)) - - if role_allows?(:feature => "service_view") && @record.service - %li - = link_to(_("Service: %{name}") % {:name => @record.service.name}, - {:controller => "service", :action => 'show', :id => @record.service.id}, - :title => _("Show Service for this Job")) - = li_link(:count => @record.number_of(:parameters), - :text => _("Parameters"), - :action => 'parameters', - :record_id => @record.id, - :title => _("Show all Parameters")) diff --git a/app/views/layouts/listnav/_container.html.haml b/app/views/layouts/listnav/_container.html.haml deleted file mode 100644 index 2afcfc427fc4..000000000000 --- a/app/views/layouts/listnav/_container.html.haml +++ /dev/null @@ -1,35 +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, "container_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - {:title => _("Show Summary")}) - - - if @record.has_perf_data? - %li - = link_to(_('Capacity & Utilization'), - {:action => 'show', :id => @record, :display => 'performance'}, - {:title => _("Show Capacity & Utilization")}) - - else - %li.disabled - = link_to(_('Capacity & Utilization'), "#") - - - if @record.has_events? || @record.has_events?(:policy_events) - %li - = link_to('Timelines', - {:action => 'show', :display => 'timeline', :id => @record}, - {:title => _("Show Timelines")}) - - else - %li.disabled - = link_to(_('Timelines'), "#") - - = miq_accordion_panel(_("Relationships"), false, "container_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - - %w(container_project container_group container_node container_image).each do |ent| - = single_relationship_link(@record, ent) diff --git a/app/views/layouts/listnav/_container_build.html.haml b/app/views/layouts/listnav/_container_build.html.haml deleted file mode 100644 index 64a3c8e549c9..000000000000 --- a/app/views/layouts/listnav/_container_build.html.haml +++ /dev/null @@ -1,14 +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, "container_build_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "container_build_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - = single_relationship_link(@record, :container_project) diff --git a/app/views/layouts/listnav/_container_group.html.haml b/app/views/layouts/listnav/_container_group.html.haml deleted file mode 100644 index 1fa629185676..000000000000 --- a/app/views/layouts/listnav/_container_group.html.haml +++ /dev/null @@ -1,39 +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, "container_group_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - - if @record.has_perf_data? - %li - = link_to(_('Capacity & Utilization'), - {:action => 'show', :id => @record, :display => 'performance'}, - :title => _("Show Capacity & Utilization")) - - else - %li.disabled - = link_to(_('Capacity & Utilization'), "#") - - - if @record.has_events? || @record.has_events?(:policy_events) - %li - = link_to('Timelines', - {:action => 'show', :display => 'timeline', :id => @record}, - :title => _("Show Timelines")) - - else - %li.disabled - = link_to(_('Timelines'), "#") - - - = miq_accordion_panel(_("Relationships"), false, "container_group_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - = single_relationship_link(@record, :container_project) - = multiple_relationship_link(@record, :container_service) - = single_relationship_link(@record, :container_replicator) - = multiple_relationship_link(@record, :container) - = multiple_relationship_link(@record, :container_image) - = single_relationship_link(@record, :container_node) - = multiple_relationship_link(@record, :persistent_volume) diff --git a/app/views/layouts/listnav/_container_image.html.haml b/app/views/layouts/listnav/_container_image.html.haml deleted file mode 100644 index 9a35c63cb8bc..000000000000 --- a/app/views/layouts/listnav/_container_image.html.haml +++ /dev/null @@ -1,16 +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, "container_image_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "container_image_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - = single_relationship_link(@record, :container_image_registry) - - %i(container_project container_group container container_node).each do |ent| - = multiple_relationship_link(@record, ent) diff --git a/app/views/layouts/listnav/_container_image_registry.html.haml b/app/views/layouts/listnav/_container_image_registry.html.haml deleted file mode 100644 index 766e84b1cb03..000000000000 --- a/app/views/layouts/listnav/_container_image_registry.html.haml +++ /dev/null @@ -1,15 +0,0 @@ -- if @record.try(:host) - #accordion.panel-group - = miq_accordion_panel(truncate(@record.host, :length => truncate_length), true, "icon") do - = render :partial => 'shared/quadicon', :locals => {:record => @record} - - = miq_accordion_panel(_("Properties"), false, "container_image_registry_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "container_image_registry_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - - %i(container_service container_group container_image container).each do |ent| - = multiple_relationship_link(@record, ent) diff --git a/app/views/layouts/listnav/_container_node.html.haml b/app/views/layouts/listnav/_container_node.html.haml deleted file mode 100644 index e8b5be1c189f..000000000000 --- a/app/views/layouts/listnav/_container_node.html.haml +++ /dev/null @@ -1,34 +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, "container_node_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - - if @record.has_perf_data? - %li - = link_to(_('Capacity & Utilization'), - {:action => 'show', :id => @record, :display => 'performance'}, - :title => _("Show Capacity & Utilization")) - - else - %li.disabled - = link_to(_('Capacity & Utilization'), "#") - - - if @record.has_events? || @record.has_events?(:policy_events) - %li - = link_to('Timelines', - {:action => 'show', :display => 'timeline', :id => @record}, - :title => _("Show Timelines")) - - else - %li.disabled - = link_to(_('Timelines'), "#") - - - = miq_accordion_panel(_("Relationships"), false, "container_node_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - - %i(container_route container_service container_replicator container_group container container_image).each do |ent| - = multiple_relationship_link(@record, ent) diff --git a/app/views/layouts/listnav/_container_project.html.haml b/app/views/layouts/listnav/_container_project.html.haml deleted file mode 100644 index 3213efbf70ef..000000000000 --- a/app/views/layouts/listnav/_container_project.html.haml +++ /dev/null @@ -1,33 +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, "container_project_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - - if @record.has_perf_data? - %li - = link_to(_('Capacity & Utilization'), - {:action => 'show', :id => @record, :display => 'performance'}, - :title => _("Show Capacity & Utilization")) - - else - %li.disabled - = link_to(_('Capacity & Utilization'), "#") - - - if @record.has_events? || @record.has_events?(:policy_events) - %li - = link_to('Timelines', - {:action => 'show', :display => 'timeline', :id => @record}, - :title => _("Show Timelines")) - - else - %li.disabled - = link_to(_('Timelines'), "#") - - = miq_accordion_panel(_("Relationships"), false, "container_project_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - - %i(container_route container_service container_replicator container_group container_node container_image container_template).each do |ent| - = multiple_relationship_link(@record, ent) diff --git a/app/views/layouts/listnav/_container_replicator.html.haml b/app/views/layouts/listnav/_container_replicator.html.haml deleted file mode 100644 index b4ca18cfa119..000000000000 --- a/app/views/layouts/listnav/_container_replicator.html.haml +++ /dev/null @@ -1,34 +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, "container_replicator_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - - if @record.has_perf_data? - %li - = link_to(_('Capacity & Utilization'), - {:action => 'show', :id => @record, :display => 'performance'}, - :title => _("Show Capacity & Utilization")) - - else - %li.disabled - = link_to(_('Capacity & Utilization'), "#") - - - if @record.has_events? || @record.has_events?(:policy_events) - %li - = link_to('Timelines', - {:action => 'show', :display => 'timeline', :id => @record}, - :title => _("Show Timelines")) - - else - %li.disabled - = link_to(_('Timelines'), "#") - - = miq_accordion_panel(_("Relationships"), false, "container_replicator_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - = single_relationship_link(@record, :container_project) - - %i(container_group container_node).each do |ent| - = multiple_relationship_link(@record, ent) diff --git a/app/views/layouts/listnav/_container_route.html.haml b/app/views/layouts/listnav/_container_route.html.haml deleted file mode 100644 index 49209eae2d7c..000000000000 --- a/app/views/layouts/listnav/_container_route.html.haml +++ /dev/null @@ -1,17 +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, "container_route_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "container_route_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - = single_relationship_link(@record, :container_project) - = single_relationship_link(@record, :container_service) - - %i(container_group container_node).each do |ent| - = multiple_relationship_link(@record, ent) diff --git a/app/views/layouts/listnav/_container_service.html.haml b/app/views/layouts/listnav/_container_service.html.haml deleted file mode 100644 index c8986a26012f..000000000000 --- a/app/views/layouts/listnav/_container_service.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, "container_service_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - - if @record.has_perf_data? - %li - = link_to(_('Capacity & Utilization'), - {:action => 'show', :id => @record, :display => 'performance'}, - :title => _("Show Capacity & Utilization")) - - else - %li.disabled - = link_to(_('Capacity & Utilization'), "#") - - = miq_accordion_panel(_("Relationships"), false, "container_service_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - = single_relationship_link(@record, :container_project) - - %i(container_route container_group container_node).each do |ent| - = multiple_relationship_link(@record, ent) - = single_relationship_link(@record, :container_image_registry) diff --git a/app/views/layouts/listnav/_container_template.html.haml b/app/views/layouts/listnav/_container_template.html.haml deleted file mode 100644 index f21fc68a9d30..000000000000 --- a/app/views/layouts/listnav/_container_template.html.haml +++ /dev/null @@ -1,14 +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, "container_template_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "container_template_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_container, "ext_management_system") - = single_relationship_link(@record, :container_project) diff --git a/app/views/layouts/listnav/_ems_cloud.html.haml b/app/views/layouts/listnav/_ems_cloud.html.haml deleted file mode 100644 index 98eaaf28b821..000000000000 --- a/app/views/layouts/listnav/_ems_cloud.html.haml +++ /dev/null @@ -1,56 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to_with_icon(_('Summary'), polymorphic_path(@record, :display => 'main'), :title => _("Show Summary")) - = li_link(:if => (@record.has_events? || @record.has_events?(:policy_events)), - :text => _('Timelines'), - :record => @record, - :display => 'timeline', - :title => _("Show Timelines")) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "availability_zone_show_list") - = li_link(:count => @record.number_of(:availability_zones), - :record => @record, - :display => 'availability_zones', - :tables => 'availability_zone', - :controller => 'ems_cloud') - - if role_allows?(:feature => "cloud_tenant_show_list") - = li_link(:count => @record.number_of(:cloud_tenants), - :record => @record, - :display => "cloud_tenants", - :tables => "cloud_tenant", - :controller => "ems_cloud") - - if role_allows?(:feature => "flavor_show_list") - = li_link(:count => @record.number_of(:flavors), - :record => @record, - :display => 'flavors', - :tables => 'flavor', - :controller => 'ems_cloud') - - if role_allows?(:feature => "security_group_show_list") - = li_link(:count => @record.number_of(:security_groups), - :record => @record, - :display => 'security_groups', - :tables => 'security_group', - :controller => 'ems_cloud') - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :record => @record, - :display => 'instances', - :tables => 'vm_cloud') - - if role_allows?(:feature => "miq_template_show_list") - = li_link(:count => @record.number_of(:miq_templates), - :record => @record, - :display => 'images', - :tables => 'template_cloud') - - if role_allows?(:feature => "orchestration_stack_show_list") - = li_link(:count => @record.number_of(:orchestration_stacks), - :record => @record, - :display => 'orchestration_stacks', - :tables => 'orchestration_stack') diff --git a/app/views/layouts/listnav/_ems_cluster.html.haml b/app/views/layouts/listnav/_ems_cluster.html.haml deleted file mode 100644 index e13c0b933b62..000000000000 --- a/app/views/layouts/listnav/_ems_cluster.html.haml +++ /dev/null @@ -1,68 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), - {:action => 'show', - :id => @record, - :display => 'main'}, - :title => _("Show Summary")) - = li_link(:if => !(@cluster_config.nil? || @cluster_config.empty?), - :text => _("Configuration"), - :record_id => @record.id, - :display => 'config_info', - :title => _("Show configuration"), - :check_changes => true) - = li_link(:if => @record.has_perf_data?, - :text => _('Capacity & Utilization'), - :record_id => @record.id, - :display => 'performance', - :title => _("Show Capacity & Utilization")) - = li_link(:if => (@record.has_events? || @record.has_events?(:policy_events)), - :text => _('Timelines'), - :record_id => @record.id, - :display => 'timeline', - :title => _("Show Timelines")) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "host_show_list") - = li_link(:text => _("Hosts"), - :count => @record.total_hosts, - :record_id => @record.id, - :display => 'hosts', - :title => _("Show Hosts")) - - if role_allows?(:feature => "vm_show_list") - = li_link(:text => _("Direct VMs"), - :count => @record.total_direct_vms, - :record_id => @record.id, - :display => "vms", - :title => _("Show VMs in this Cluster, but not in Resource Pools below")) - - if role_allows?(:feature => "vm_show_list") - = li_link(:text => _("All VMs"), - :count => @record.total_vms, - :record_id => @record.id, - :display => "all_vms", - :title => _("Show all VMs in this Cluster")) - - if role_allows?(:feature => "miq_template_show_list") - = li_link(:text => _("All Templates"), - :count => @record.total_miq_templates, - :record_id => @record.id, - :display => "miq_templates", - :title => _("Show all Templates in this Cluster")) - - if role_allows?(:feature => "resource_pool_show_list") - = li_link(:text => _('Resource Pools'), - :count => @record.number_of(:resource_pools), - :record_id => @record.id, - :display => 'resource_pools', - :title => _("Show Resource Pools")) - - if role_allows?(:feature => "ems_cluster_drift") - = li_link(:text => _('Drift History'), - :count => @record.number_of(:drift_states), - :record_id => @record.id, - :action => 'drift_history', - :title => _("Show Cluster drift history")) diff --git a/app/views/layouts/listnav/_ems_container.html.haml b/app/views/layouts/listnav/_ems_container.html.haml deleted file mode 100644 index 886a9efbf804..000000000000 --- a/app/views/layouts/listnav/_ems_container.html.haml +++ /dev/null @@ -1,31 +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, "ems_container_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to_with_icon(_('Summary'), polymorphic_path(@record, :display => 'main'), :title => _("Show Summary")) - - - if @record.has_perf_data? - %li - = link_to(_('Capacity & Utilization'), - polymorphic_path(@record, :display => "performance"), - :title => _("Show Capacity & Utilization")) - - else - %li.disabled - = link_to(_('Capacity & Utilization'), "#") - - - if @record.has_events? || @record.has_events?(:policy_events) - %li - = link_to(_('Timelines'), - polymorphic_path(@record, :display => "timeline"), :title => _("Show Timelines")) - - else - %li.disabled - = link_to(_('Timelines'), "#") - - = miq_accordion_panel(_("Relationships"), false, "ems_container_rel") do - %ul.nav.nav-pills.nav-stacked - - %w(container_project container_route container_service container_replicator container_group container container_node container_image_registry container_image persistent_volume container_build container_template).each do |ent| - = multiple_relationship_link(@record, ent) diff --git a/app/views/layouts/listnav/_ems_infra.html.haml b/app/views/layouts/listnav/_ems_infra.html.haml deleted file mode 100644 index 03a5ac43a644..000000000000 --- a/app/views/layouts/listnav/_ems_infra.html.haml +++ /dev/null @@ -1,47 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to_with_icon(_('Summary'), polymorphic_path(@record, :display => 'main'), :title => _("Show Summary")) - = li_link(:if => (@record.has_events? || @record.has_events?(:policy_events)), - :text => _('Timelines'), - :record => @record, - :display => 'timeline', - :title => _("Show Timelines")) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cluster_show_list") - = li_link(:count => @record.number_of(:ems_clusters), - :text => _("Clusters"), - :record => @record, - :display => 'ems_clusters', - :title => _("Show all managed Clusters")) - - if role_allows?(:feature => "host_show_list") - = li_link(:count => @record.number_of(:hosts), - :text => _("Hosts"), - :record => @record, - :display => 'hosts', - :title => _("Show all managed Hosts")) - - if role_allows?(:feature => "storage_show_list") - = li_link(:count => @record.number_of(:storages), - :record => @record, - :tables => 'storages', - :display => 'storages', - :title => _("Show all managed Datastores")) - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("VMs"), - :record => @record, - :display => 'vms', - :title => _("Show all VMs")) - - if role_allows?(:feature => "miq_template_show_list") - = li_link(:count => @record.number_of(:miq_templates), - :text => _("Templates"), - :record => @record, - :display => 'miq_templates', - :title => _("Show all Templates")) diff --git a/app/views/layouts/listnav/_ems_network.html.haml b/app/views/layouts/listnav/_ems_network.html.haml deleted file mode 100644 index b539345c3d7d..000000000000 --- a/app/views/layouts/listnav/_ems_network.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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - = li_link(:text =>_('Summary'), - :record_id => @record.id, - :display => 'main', - :title => _("Show Summary")) - = li_link(:if => (@record.has_events? || @record.has_events?(:policy_events)), - :text => _('Timelines'), - :record_i => @record.id, - :display => 'timeline', - :title => _("Show Timelines")) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "security_group_show_list") - = li_link(:count => @record.number_of(:security_groups), - :record_id => @record.id, - :display => 'security_groups', - :tables => 'security_group') diff --git a/app/views/layouts/listnav/_ems_physical_infra.html.haml b/app/views/layouts/listnav/_ems_physical_infra.html.haml deleted file mode 100644 index f43c4111c42b..000000000000 --- a/app/views/layouts/listnav/_ems_physical_infra.html.haml +++ /dev/null @@ -1,42 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to_with_icon(_('Summary'), polymorphic_path(@record, :display => 'main'), :title => _("Show Summary")) - = li_link(:if => (@record.has_events? || @record.has_events?(:policy_events)), - :text => _('Timelines'), - :record => @record, - :display => 'timeline', - :title => _("Show Timelines")) - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - %li - = li_link(:count => @record.number_of(:physical_chassis), - :tables => 'physical_chassis', - :record => @record, - :display => 'physical_chassis') - = li_link(:count => @record.number_of(:physical_racks), - :tables => 'physical_racks', - :record => @record, - :display => 'physical_racks') - = li_link(:count => @record.number_of(:physical_servers), - :tables => 'physical_servers', - :record => @record, - :display => 'physical_servers') - - hosts = (@record.physical_servers.select { |server| !server.host.nil? }).length - = li_link(:count => hosts, - :text => _('Physical Servers with Host'), - :record => @record, - :display => 'physical_servers_with_host') - = li_link(:count => @record.number_of(:physical_storages), - :text => _('Physical Storages'), - :record => @record, - :display => 'physical_storages') - = li_link(:count => @record.number_of(:physical_switches), - :text => _('Physical Switches'), - :record => @record, - :display => 'physical_switches') diff --git a/app/views/layouts/listnav/_ems_storage.html.haml b/app/views/layouts/listnav/_ems_storage.html.haml deleted file mode 100644 index 12c2c8a722bb..000000000000 --- a/app/views/layouts/listnav/_ems_storage.html.haml +++ /dev/null @@ -1,33 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - = li_link(:if => true, - :text => _('Summary'), - :record_id => @record.id, - :display => 'main', - :title => _("Show Summary")) - = li_link(:if => (@record.has_events? || @record.has_events?(:policy_events)), - :text => _('Timelines'), - :record_id => @record.id, - :display => 'timeline', - :title => _("Show Timelines"), - :disabled_title => _("No Timeline data has been collected for Policy or Management Events")) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "cloud_volume_show_list") && @record.try(:cloud_volumes) - = li_link(:count => @record.number_of(:cloud_volumes), - :record => @record, - :display => "cloud_volumes", - :tables => "cloud_volume", - :controller => "ems_storage") - - if role_allows?(:feature => "cloud_object_store_container_show_list") && @record.try(:cloud_object_store_containers) - = li_link(:count => @record.number_of(:cloud_object_store_containers), - :record => @record, - :display => 'cloud_object_store_containers', - :tables => 'cloud_object_store_container', - :controller => "ems_storage") diff --git a/app/views/layouts/listnav/_explorer.html.haml b/app/views/layouts/listnav/_explorer.html.haml deleted file mode 100644 index ab50059c7b19..000000000000 --- a/app/views/layouts/listnav/_explorer.html.haml +++ /dev/null @@ -1,21 +0,0 @@ -- if @accords - #accordion.panel-group{'ng-controller' => 'treeViewController as vm'} - -# Set the first accordion as selected if there is no active_accord in the sandbox - - selected = @accords.find(-> { @accords.first }) { |accord| accord[:name].to_sym == @sb[:active_accord] } - - @accords.each do |accord| - = miq_accordion_panel(accord[:title], selected == accord, accord[:container]) do - -# Set the first tree to be rendered if there is a mismatch with the name/type - - tree = @trees.find(-> { @trees.first }) { |t| t.name == "#{accord[:name]}_tree".to_sym } - :javascript - ManageIQ.tree.data['#{tree.name}'] = #{tree.locals_for_render[:bs_tree]}; - %miq-tree-view{:name => tree.name, - :data => "vm.data['#{tree.name}']", - :reselect => tree.locals_for_render[:allow_reselect], - "ng-init" => "vm.initData('#{tree.name}', '#{tree.locals_for_render[:select_node]}')", - 'on-select' => "vm.nodeSelect(node, '/#{request.parameters[:controller]}/tree_select')", - 'selected' => "vm.selectedNodes['#{tree.name}']", - 'persist' => 'key', - 'lazy-load' => "(vm.lazyLoad(node, '#{tree.name}', '/#{request.parameters[:controller]}/tree_autoload'))"} - :javascript - miq_bootstrap('#accordion'); - $('#accordion').on('show.bs.collapse', miqAccordSelect); diff --git a/app/views/layouts/listnav/_firmware_binary.html.haml b/app/views/layouts/listnav/_firmware_binary.html.haml deleted file mode 100644 index daf48a76ea28..000000000000 --- a/app/views/layouts/listnav/_firmware_binary.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 - %li - = link_to(_('Firmware Registry'), - {:controller => "firmware_registry", - :action => 'show', - :id => @record.firmware_registry_id}, - :title => _("Show Firmware Registry")) - %li - = li_link(:count => @record.firmware_targets.size, - :text => _("Firmware Targets"), - :display => 'firmware_targets', - :record_id => @record.id, - :title => _("Show all Firmware Targets")) diff --git a/app/views/layouts/listnav/_firmware_registry.html.haml b/app/views/layouts/listnav/_firmware_registry.html.haml deleted file mode 100644 index d871e492fe16..000000000000 --- a/app/views/layouts/listnav/_firmware_registry.html.haml +++ /dev/null @@ -1,19 +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 - %li - = li_link(:count => @record.firmware_binaries.size, - :text => _("Firmware Binaries"), - :display => 'firmware_binaries', - :record_id => @record.id, - :title => _("Show all Firmware Binaries")) diff --git a/app/views/layouts/listnav/_firmware_target.html.haml b/app/views/layouts/listnav/_firmware_target.html.haml deleted file mode 100644 index d871e492fe16..000000000000 --- a/app/views/layouts/listnav/_firmware_target.html.haml +++ /dev/null @@ -1,19 +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 - %li - = li_link(:count => @record.firmware_binaries.size, - :text => _("Firmware Binaries"), - :display => 'firmware_binaries', - :record_id => @record.id, - :title => _("Show all Firmware Binaries")) diff --git a/app/views/layouts/listnav/_flavor.html.haml b/app/views/layouts/listnav/_flavor.html.haml deleted file mode 100644 index eeced75bf224..000000000000 --- a/app/views/layouts/listnav/_flavor.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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_cloud_path(@record.ext_management_system.id), - :title => _("Show this Flavor's parent Cloud Provider")) - - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record_id => @record.id, - :display => 'instances', - :title => _("Show all Instances")) diff --git a/app/views/layouts/listnav/_floating_ip.html.haml b/app/views/layouts/listnav/_floating_ip.html.haml deleted file mode 100644 index 8f261cd6300d..000000000000 --- a/app/views/layouts/listnav/_floating_ip.html.haml +++ /dev/null @@ -1,15 +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, "ems_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, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_network, "ext_management_system") diff --git a/app/views/layouts/listnav/_generic_object_definition.html.haml b/app/views/layouts/listnav/_generic_object_definition.html.haml deleted file mode 100644 index 542dede68685..000000000000 --- a/app/views/layouts/listnav/_generic_object_definition.html.haml +++ /dev/null @@ -1,14 +0,0 @@ -#accordion.panel-group - = render :partial => "layouts/listnav/#{controller_name}_show_list_with_treeview" - - if @record.try(:name) - = miq_accordion_panel(_("Properties"), false, "god_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, {:title => _("Show Summary")}) - = miq_accordion_panel(_("Relationships"), false, "god_rel") do - %ul.nav.nav-pills.nav-stacked - %li - = li_link(:count => @record.number_of(:generic_objects), - :tables => 'instances', - :record => @record, - :display => 'generic_objects') diff --git a/app/views/layouts/listnav/_generic_object_definition_show_list_with_treeview.html.haml b/app/views/layouts/listnav/_generic_object_definition_show_list_with_treeview.html.haml deleted file mode 100644 index ec316a65db8c..000000000000 --- a/app/views/layouts/listnav/_generic_object_definition_show_list_with_treeview.html.haml +++ /dev/null @@ -1,16 +0,0 @@ -- return if @display == 'generic_objects' || @display == 'main' -= miq_accordion_panel(_("Generic Object Definitions"), true, "god") do - :javascript - ManageIQ.tree.data['#{@tree.name}'] = #{@tree.locals_for_render[:bs_tree]}; - %tree_div{'ng-controller' => 'treeViewController as vm'} - %miq-tree-view{:name => @tree.name, - :data => "vm.data['#{@tree.name}']", - :reselect => @tree.locals_for_render[:allow_reselect], - "ng-init" => "vm.initData('#{@tree.name}', '#{@tree.locals_for_render[:select_node]}')", - 'on-select' => "vm.nodeSelect(node, '/#{request.parameters[:controller]}/tree_select')", - 'selected' => "vm.selectedNodes['#{@tree.name}']", - 'persist' => 'key', - 'lazy-load' => "(vm.lazyLoad(node, '#{@tree.name}', '/#{request.parameters[:controller]}/tree_autoload'))"} - -:javascript - miq_bootstrap('tree_div'); diff --git a/app/views/layouts/listnav/_guest_device.html.haml b/app/views/layouts/listnav/_guest_device.html.haml deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/app/views/layouts/listnav/_host.html.haml b/app/views/layouts/listnav/_host.html.haml deleted file mode 100644 index c97fb5dd63ec..000000000000 --- a/app/views/layouts/listnav/_host.html.haml +++ /dev/null @@ -1,174 +0,0 @@ -- if @record - #accordion.panel-group - = miq_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do - = render :partial => 'shared/quadicon', :locals => {:record => @record} - - %div{:style => "text-align:center"} - - unless @record.vmm_product.nil? - = h(@record.vmm_product) - - unless @record.vmm_version.nil? -   - = h(@record.vmm_version) - - unless @record.vmm_buildnumber.nil? - %br - = h(@record.vmm_buildnumber) - - = miq_accordion_panel(_("Properties"), false, "host_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary")) - - devices, os_info, vmm_info = host_info - = li_link(:if => !(devices.nil? || devices.empty?), - :text => _('Devices'), - :record_id => @record.id, - :display => 'devices', - :title => _("Show Host devices")) - = li_link(:count => @record.number_of(:switches), - :text => _('Network'), - :record_id => @record.id, - :display => 'network', - :title => _("Show Host network")) - = li_link(:if => !(@record.hardware.blank? || @record.hardware.number_of(:storage_adapters) == 0), - :text => _('Storage Adapters'), - :record_id => @record.id, - :display => 'storage_adapters', - :title => _("Show Host storage adapters")) - = li_link(:if => !(os_info.nil? || os_info.empty?), - :text => _('OS Information'), - :record_id => @record.id, - :display => 'os_info', - :title => _("Show Host OS information")) - = li_link(:if => !(vmm_info.nil? || vmm_info.empty?), - :text => _('VMM Information'), - :record_id => @record.id, - :display => 'hv_info', - :title => _("Show VMM information")) - = li_link(:if => @record.has_perf_data?, - :text => _('Capacity & Utilization'), - :record_id => @record.id, - :display => 'performance', - :title => _("Show Capacity & Utilization")) - = li_link(:if => @record.has_events? || @record.has_events?(:policy_events), - :text => _('Timelines'), - :display => 'timeline', - :record_id => @record.id, - :title => _("Show Timelines")) - - if ::Settings.product.proto - = li_link(:count => @record.event_logs.count, - :text => _("ESX Logs"), - :id => @record.id, - :title => _("Show esx logs on this VM")) - - = miq_accordion_panel(_("Relationships"), false, "host_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_infra_show") && !@record.ext_management_system.nil? - %li - = link_to(_("Infrastructure Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_infra_path(@record.ext_management_system), - :title => _("Show parent Infrastructure Provider for this Host")) - - - if role_allows?(:feature => "ems_cluster_show") && !@record.ems_cluster.nil? - %li - = link_to(_("Cluster: %{name}") % {:name => @record.ems_cluster.name}, - {:controller => "ems_cluster", :action => 'show', :id => @record.ems_cluster.id.to_s}, - :title => _("Show parent Cluster for this Host")) - - - if role_allows?(:feature => "ems_cluster_show") && @record.ems_cluster.nil? - = li_link(:if => false, :text => _("Cluster: None")) - - - if role_allows?(:feature => "storage_show_list") - = li_link(:count => @record.number_of(:storages), - :record_id => @record.id, - :tables => 'storages', - :display => 'storages', - :action => 'show') - - - if role_allows?(:feature => "resource_pool_show_list") - = li_link(:count => @record.number_of(:resource_pools), - :text => _("Resource Pools"), - :record_id => @record.id, - :display => 'resource_pools', - :title => _("Show Resource Pools")) - - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("VMs"), - :record_id => @record.id, - :display => 'vms', - :title => _("Show all VMs")) - - - if role_allows?(:feature => "miq_template_show_list") - = li_link(:count => @record.number_of(:miq_templates), - :text => _("Templates"), - :record_id => @record.id, - :display => 'miq_templates', - :title => _("Show all Templates")) - - - if role_allows?(:feature => "host_drift") - = li_link(:count => @record.number_of(:drift_states), - :text => _("Drift History"), - :action => 'drift_history', - :record_id => @record.id, - :title => _("Show Host drift history")) - - - if role_allows?(:feature => "physical_server_show") && !@record.physical_server.nil? - %li - - physical_server_show = {:controller => "physical_server", :action => 'show', :id => @record.physical_server.id} - = link_to(_("Physical Server: %{name}") % {:name => @record.physical_server.name}, - physical_server_show, - :title => _("Show Physical Server")) - - - if role_allows?(:feature => "physical_server_show") && @record.physical_server.nil? - = li_link(:if => false, :text => _("Physical Server: None")) - - = miq_accordion_panel(_("Security"), false, "host_sec") do - %ul.nav.nav-pills.nav-stacked - = li_link(:count => @record.number_of(:users), - :text => _("Users"), - :action => "users", - :record_id => @record.id, - :db => "host", - :title => _("Show the users defined on this Host")) - = li_link(:count => @record.number_of(:groups), - :text => _("Groups"), - :action => "groups", - :record_id => @record.id, - :db => "host", - :title => _("Show the groups defined on this Host")) - - = li_link(:count => @record.number_of(:patches), - :text => _("Patches"), - :action => "patches", - :record_id => @record.id, - :db => "host", - :title => _("Show the patches installed on this Host")) - = li_link(:count => @record.number_of(:firewall_rules), - :text => _("Firewall Rules"), - :action => 'firewall_rules', - :record_id => @record.id, - :title => _("Show the firewall rules on this Host")) - - = miq_accordion_panel(_("Configuration"), false, "host_config") do - %ul.nav.nav-pills.nav-stacked - = li_link(:count => @record.number_of(:guest_applications), - :text => _("Packages"), - :action => 'guest_applications', - :record_id => @record.id, - :title => _("Show the packages installed on this Host")) - = li_link(:count => @record.number_of(:host_services), - :text => _("Services"), - :action => 'host_services', - :record_id => @record.id, - :title => _("Show the services installed on this Host")) - = li_link(:count => @record.number_of(:filesystems), - :text => _("Files"), - :action => 'filesystems', - :record_id => @record.id, - :title => _("Show the files on this Host")) - = li_link(:count => @record.number_of(:advanced_settings), - :text => _("Advanced Settings"), - :action => 'advanced_settings', - :record_id => @record.id, - :title => _("Show the advanced settings on this Host")) diff --git a/app/views/layouts/listnav/_host_aggregate.html.haml b/app/views/layouts/listnav/_host_aggregate.html.haml deleted file mode 100644 index 4aabefd30ef9..000000000000 --- a/app/views/layouts/listnav/_host_aggregate.html.haml +++ /dev/null @@ -1,28 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cloud_show") && @record.ext_management_system - %li - = link_to(_("Provider:") % {:name => @record.ext_management_system.name}, - ems_cloud_path(@record.ext_management_system.id), - :title => _("Show this Host Aggregate's parent Cloud Provider")) - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record => @record, - :display => 'instances', - :title => _("Show all Instances")) - - if role_allows?(:feature => "host_show_list") - = li_link(:count => @record.number_of(:hosts), - :tables => 'host', - :record => @record, - :display => 'hosts',) diff --git a/app/views/layouts/listnav/_load_balancer.html.haml b/app/views/layouts/listnav/_load_balancer.html.haml deleted file mode 100644 index dacfcca35a3c..000000000000 --- a/app/views/layouts/listnav/_load_balancer.html.haml +++ /dev/null @@ -1,21 +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, "ems_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, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_network, "ext_management_system") - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record_id => @record.id, - :display => 'instances', - :title => _("Show all Instances")) diff --git a/app/views/layouts/listnav/_miq_ae_class.html.haml b/app/views/layouts/listnav/_miq_ae_class.html.haml deleted file mode 100644 index 97476bcc7bf7..000000000000 --- a/app/views/layouts/listnav/_miq_ae_class.html.haml +++ /dev/null @@ -1,16 +0,0 @@ -- if @record.try(:name) - #accordion.panel-group - = miq_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") - - = miq_accordion_panel(_("Properties"), false, "miqaeclass_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary")) - %li - = link_to(_("Instances (%{count})") % {:count => record.instances.count}, - {:action => 'show_instances', :id => @record.id}, - :title => _("View Instances"), - :align => 'left', - :border => '0') diff --git a/app/views/layouts/listnav/_miq_template.html.haml b/app/views/layouts/listnav/_miq_template.html.haml deleted file mode 100644 index 18d4d6f090ee..000000000000 --- a/app/views/layouts/listnav/_miq_template.html.haml +++ /dev/null @@ -1 +0,0 @@ -= render :partial => "layouts/listnav/vm_common", :locals => {:truncate_length => truncate_length} diff --git a/app/views/layouts/listnav/_network_port.html.haml b/app/views/layouts/listnav/_network_port.html.haml deleted file mode 100644 index 8f261cd6300d..000000000000 --- a/app/views/layouts/listnav/_network_port.html.haml +++ /dev/null @@ -1,15 +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, "ems_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, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_network, "ext_management_system") diff --git a/app/views/layouts/listnav/_network_router.html.haml b/app/views/layouts/listnav/_network_router.html.haml deleted file mode 100644 index 22731177d6cf..000000000000 --- a/app/views/layouts/listnav/_network_router.html.haml +++ /dev/null @@ -1,21 +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, "ems_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, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_network, "ext_management_system") - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record_id => @record.id, - :display => 'instances', - :title => _("Show all Instances")) diff --git a/app/views/layouts/listnav/_orchestration_stack.html.haml b/app/views/layouts/listnav/_orchestration_stack.html.haml deleted file mode 100644 index 804f4b794578..000000000000 --- a/app/views/layouts/listnav/_orchestration_stack.html.haml +++ /dev/null @@ -1,59 +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_cloud_show") - = li_link(:if => @record.ext_management_system, - :text => _("Provider: %{name}") % {:name => @record.ext_management_system.name}, - :record => @record.ext_management_system, - :title => _("Show parent Cloud Provider for this Stack")) - - = li_link(:if => @record.try(:orchestration_template), - :text => _("Orchestration Template"), - :record_id => @record.id, - :display => 'stack_orchestration_template', - :title => _("Show Orchestration Template")) - - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record_id => @record.id, - :display => 'instances', - :title => _("Show all Instances")) - - - if role_allows?(:feature => "security_group_show_list") - = li_link(:count => @record.number_of(:security_groups), - :text => _("Security Groups"), - :record_id => @record.id, - :display => 'security_groups', - :title => _("Show all Security Groups")) - = li_link(:count => @record.number_of(:cloud_networks), - :text => _("Cloud Networks"), - :action => "cloud_networks", - :record_id => @record.id, - :title => _("Show all Cloud Networks")) - = li_link(:count => @record.number_of(:parameters), - :text => _("Parameters"), - :action => 'parameters', - :record_id => @record.id, - :title => _("Show all Parameters")) - = li_link(:count => @record.number_of(:outputs), - :text => _("Outputs"), - :action => 'outputs', - :record_id => @record.id, - :title => _("Show all Outputs")) - = li_link(:count => @record.number_of(:resources), - :text => _("Resources"), - :action => 'resources', - :record_id => @record.id, - :title => _("Show all Resources")) diff --git a/app/views/layouts/listnav/_persistent_volume.html.haml b/app/views/layouts/listnav/_persistent_volume.html.haml deleted file mode 100644 index ac023cb854ac..000000000000 --- a/app/views/layouts/listnav/_persistent_volume.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, "persistent_volume_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, :title => _("Show Summary")) - - = miq_accordion_panel(_("Relationships"), false, "persistent_volume_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_container_show") && !@record.parent.nil? - %li - = link_to(_("Containers Provider: %{name}") % {:name => @record.parent.name}, - polymorphic_path(@record.parent), - :title => _("Show this persistent volume's parent Containers Provider")) - - if @record.number_of(:container_groups).zero? - %li.disabled - = link_to(_("Pods (0)"), "#") - - else - %li - = link_to(_("Pods (%{count})") % {:count => @record.number_of(:container_groups)}, - url_for_only_path(:id => @record.id, :action => "show", :display => "container_groups")) diff --git a/app/views/layouts/listnav/_physical_chassis.html.haml b/app/views/layouts/listnav/_physical_chassis.html.haml deleted file mode 100644 index 292d977f2a01..000000000000 --- a/app/views/layouts/listnav/_physical_chassis.html.haml +++ /dev/null @@ -1,17 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, {:title => _("Show Summary")}) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_physical_infra_path(@record.ext_management_system.id), - :title => _("Show this parent Provider")) diff --git a/app/views/layouts/listnav/_physical_rack.html.haml b/app/views/layouts/listnav/_physical_rack.html.haml deleted file mode 100644 index 292d977f2a01..000000000000 --- a/app/views/layouts/listnav/_physical_rack.html.haml +++ /dev/null @@ -1,17 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, {:title => _("Show Summary")}) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_physical_infra_path(@record.ext_management_system.id), - :title => _("Show this parent Provider")) diff --git a/app/views/layouts/listnav/_physical_server.html.haml b/app/views/layouts/listnav/_physical_server.html.haml deleted file mode 100644 index c73627837ce6..000000000000 --- a/app/views/layouts/listnav/_physical_server.html.haml +++ /dev/null @@ -1,22 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, {:title => _("Show Summary")}) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_physical_infra_path(@record.ext_management_system.id), - :title => _("Show this parent Provider")) - - if @record.host - %li - = link_to(_("Host: %{name}") % {:name => @record.host.name}, - "/host/show/#{@record.host.id}", - :title => _("Show Host")) diff --git a/app/views/layouts/listnav/_physical_storage.html.haml b/app/views/layouts/listnav/_physical_storage.html.haml deleted file mode 100644 index be8cc6a71089..000000000000 --- a/app/views/layouts/listnav/_physical_storage.html.haml +++ /dev/null @@ -1,17 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, {:title => _("Show Summary")}) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_physical_infra_path(@record.ext_management_system.id), - :title => _("Show this parent Provider")) \ No newline at end of file diff --git a/app/views/layouts/listnav/_physical_switch.html.haml b/app/views/layouts/listnav/_physical_switch.html.haml deleted file mode 100644 index ffe2186dfb06..000000000000 --- a/app/views/layouts/listnav/_physical_switch.html.haml +++ /dev/null @@ -1,19 +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, "ems_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), {:action => 'show', :id => @record, :display => 'main'}, {:title => _("Show Summary")}) - - = miq_accordion_panel(_("Relationships"), false, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - - if @record.ext_management_system - %li - = link_to(_("Provider: %{name}") % {:name => @record.ext_management_system.name}, - ems_physical_infra_path(@record.ext_management_system.id), - :title => _("Show this parent Provider")) - - diff --git a/app/views/layouts/listnav/_pxe_server.html.haml b/app/views/layouts/listnav/_pxe_server.html.haml deleted file mode 100644 index 40011a91435a..000000000000 --- a/app/views/layouts/listnav/_pxe_server.html.haml +++ /dev/null @@ -1,11 +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, "pxe_server_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary")) diff --git a/app/views/layouts/listnav/_resource_pool.html.haml b/app/views/layouts/listnav/_resource_pool.html.haml deleted file mode 100644 index 14a93a77b126..000000000000 --- a/app/views/layouts/listnav/_resource_pool.html.haml +++ /dev/null @@ -1,49 +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, "resource_pool_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _('Show Summary')) - - = miq_accordion_panel(_("Relationships"), false, "resource_pool_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "ems_cluster_show") - = li_link(:if => !@record.parent_cluster.nil?, - :text => _("Parent Cluster: %{name}") % {:name => @record.parent_cluster.try(:name)}, - :controller => 'ems_cluster', - :record_id => @record.parent_cluster.try(:id), - :title => _('Show VMs')) - - - if role_allows?(:feature => "host_show") - - host = @record.parent_host - = li_link(:if => !@record.parent_host.nil?, - :text => _("Parent Host: %{name}") % {:name => (host.name if host)}, - :controller => 'host', - :record_id => (host.id if host), - :title => _('Show Parent Host')) - - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.v_direct_vms, - :text => _("Direct VMs"), - :display => "vms", - :record_id => @record.id, - :title => _('Show VMs in this Resource Pool, but not in Resource Pools below')) - - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.total_vms, - :text => _("All VMs"), - :display => "all_vms", - :record_id => @record.id, - :title => _('Show all VMs in this Resource Pool')) - - - if role_allows?(:feature => "resource_pool_show_list") - = li_link(:count => @record.all_resource_pools.size, - :text => _("Resource Pools"), - :display => "resource_pools", - :record_id => @record.id, - :title => _('Show all Resource Pools in this Resource Pool')) diff --git a/app/views/layouts/listnav/_security_group.html.haml b/app/views/layouts/listnav/_security_group.html.haml deleted file mode 100644 index bc34e5af1bfd..000000000000 --- a/app/views/layouts/listnav/_security_group.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, "ems_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, "ems_rel") do - %ul.nav.nav-pills.nav-stacked - = single_relationship_link(@record, :ems_network, "ext_management_system") - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:vms), - :text => _("Instances"), - :record_id => @record.id, - :display => 'instances', - :title => _("Show all Instances")) - - if role_allows?(:feature => "orchestration_stack_show") && @record.orchestration_stack - %li - = link_to(_("Stack: %{name}") % {:name => @record.orchestration_stack.name}, - {:controller => "orchestration_stack", :action => 'show', :id => @record.orchestration_stack.id.to_s}, - :title => _("Show parent Orchestration Stack for this Security Group")) diff --git a/app/views/layouts/listnav/_storage.html.haml b/app/views/layouts/listnav/_storage.html.haml deleted file mode 100644 index 74d864628f9e..000000000000 --- a/app/views/layouts/listnav/_storage.html.haml +++ /dev/null @@ -1,76 +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, "storage_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_('Summary'), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary")) - = li_link(:if => @record.has_perf_data?, - :text => _('Capacity & Utilization'), - :record_id => @record.id, - :display => 'performance', - :title => _("Show Capacity & Utilization")) - - = miq_accordion_panel(_("Relationships"), false, "storage_rel") do - %ul.nav.nav-pills.nav-stacked - - if role_allows?(:feature => "host_show_list") - = li_link(:count => @record.number_of(:hosts), - :text => _("Hosts"), - :record_id => @record.id, - :display => 'hosts', - :title => _("Show all registered Hosts")) - - - if role_allows?(:feature => "vm_show_list") - = li_link(:count => @record.number_of(:all_vms), - :text => _("VMs"), - :record_id => @record.id, - :display => 'all_vms', - :title => _("Show registered VMs")) - - = miq_accordion_panel(_("Content"), false, "storage_content") do - %ul.nav.nav-pills.nav-stacked - = li_link(:count => @record.number_of(:files), - :record_id => @record.id, - :table => 'storages', - :action => 'files', - :title => _("Show all files on this Datastore"), - :link_text => _('All Files')) - - = li_link(:count => @record.number_of(:disk_files), - :record_id => @record.id, - :table => 'storages', - :action => 'disk_files', - :title => _("Show VM Provisioned Disk Files on this Datastore"), - :link_text => _('VM Provisioned Disk Files')) - - = li_link(:count => @record.number_of(:snapshot_files), - :record_id => @record.id, - :table => 'storages', - :action => 'snapshot_files', - :title => _("Show VM snapshot files on this Datastore"), - :link_text => _('VM Snapshot Files')) - - = li_link(:count => @record.number_of(:vm_ram_files), - :record_id => @record.id, - :table => 'storages', - :action => 'vm_ram_files', - :title => _("Show VM memory files on this Datastore"), - :link_text => _('VM Memory Files')) - - = li_link(:count => @record.number_of(:vm_misc_files), - :record_id => @record.id, - :table => 'storages', - :action => 'vm_misc_files', - :title => _("Show Other VM files on this Datastore"), - :link_text => _('Other VM Files')) - - = li_link(:count => @record.number_of(:debris_files), - :record_id => @record.id, - :table => 'storages', - :action => 'debris_files', - :title => _("Show non-VM files on this Datastore"), - :link_text => _('Non-VM Files')) diff --git a/app/views/layouts/listnav/_storage_manager.html.haml b/app/views/layouts/listnav/_storage_manager.html.haml deleted file mode 100644 index 7b1808e66528..000000000000 --- a/app/views/layouts/listnav/_storage_manager.html.haml +++ /dev/null @@ -1,11 +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, "storage_manager_prop") do - %ul.nav.nav-pills.nav-stacked - %li - = link_to(_("Summary"), - {:action => 'show', :id => @record, :display => 'main'}, - :title => _("Show Summary"))