Skip to content

Commit

Permalink
Fixing provider switches listing
Browse files Browse the repository at this point in the history
  • Loading branch information
EsdrasVP committed May 23, 2018
1 parent 98ac39a commit 306d1fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/helpers/quadicon_helper.rb
Expand Up @@ -70,8 +70,6 @@ def self.settings_key(klass, layout)
when "ems_physical_infra", "ems_cloud", "ems_network", "ems_container"
layout.to_sym
end
elsif klass.base_model.name != klass.name.demodulize
klass.name.demodulize.underscore.to_sym
else
klass.base_model.name.underscore.to_sym
end
Expand Down
4 changes: 4 additions & 0 deletions app/views/layouts/listnav/_ems_physical_infra.html.haml
Expand Up @@ -15,6 +15,10 @@
= miq_accordion_panel(_("Relationships"), false, "ems_rel") do
%ul.nav.nav-pills.nav-stacked
%li
= li_link(:count => @record.number_of(:physical_switches),
:text => _('Physical Switches'),
:record => @record,
:display => 'physical_switches')
= li_link(:count => @record.number_of(:physical_servers),
:tables => 'physical_servers',
:record => @record,
Expand Down

0 comments on commit 306d1fb

Please sign in to comment.