Skip to content

Commit

Permalink
Show hosts relationship in physical infra listnav
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielsvinha committed Jun 6, 2017
1 parent 03ea79c commit 3cd2b33
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions app/views/layouts/listnav/_ems_physical_infra.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 3cd2b33

Please sign in to comment.