diff --git a/app/views/layouts/listnav/_ems_physical_infra.html.haml b/app/views/layouts/listnav/_ems_physical_infra.html.haml index f71f3ae4965..b80195f2609 100644 --- a/app/views/layouts/listnav/_ems_physical_infra.html.haml +++ b/app/views/layouts/listnav/_ems_physical_infra.html.haml @@ -14,7 +14,14 @@ :title => _("Show Timelines")) = miq_accordion_panel(_("Relationships"), false, "ems_rel") do %ul.nav.nav-pills.nav-stacked - = li_link(:count => @record.number_of(:physical_servers), - :tables => 'physical_servers', - :record => @record, - :display => 'physical_servers') + %li + = 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, + :tables => 'hosts', + :record => @record, + :display => 'hosts')