Skip to content

Commit

Permalink
Merge pull request ManageIQ#12076 from aufi/add_host_link_to_netport
Browse files Browse the repository at this point in the history
Add link to Host to Network Port details page
  • Loading branch information
Dan Clarizio committed Oct 20, 2016
2 parents 83a2806 + de3891a commit b404f98
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/helpers/network_port_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def textual_group_properties
end

def textual_group_relationships
%i(parent_ems_cloud ems_network cloud_tenant instance cloud_subnets floating_ips)
%i(parent_ems_cloud ems_network cloud_tenant instance cloud_subnets floating_ips host)
end

#
Expand Down Expand Up @@ -65,4 +65,11 @@ def textual_cloud_subnets
def textual_floating_ips
@record.floating_ips
end

def textual_host
return nil unless @record.device_type == "Host"
{:image => "host", :value => @record.device, :link => url_for(:controller => "host",
:action => "show",
:id => @record.device.id)}
end
end

0 comments on commit b404f98

Please sign in to comment.