Revision 9d43fc71
Added by Michael Moll almost 6 years ago
app/helpers/compute_resources_vms_helper.rb | ||
---|---|---|
link_to_if_authorized(_("Console"), hash_for_console_host_path().merge(:auth_object => host, :permission => 'console_hosts'),
|
||
{ :class => "btn btn-info" })
|
||
else
|
||
link_to(_("Console"), '#', {:disabled=> true, :class => "btn btn-info"})
|
||
link_to(_("Console"), '#', {:disabled => true, :class => "btn btn-info"})
|
||
end
|
||
end
|
||
|
||
... | ... | |
|
||
def subnet_vpc_hash(subnets)
|
||
subnet_vpc_hash = {}
|
||
subnets.each{ |sub| subnet_vpc_hash[sub.subnet_id] = {:vpc_id =>sub.vpc_id, :subnet_name => sub.tag_set["Name"] || sub.subnet_id} }
|
||
subnets.each{ |sub| subnet_vpc_hash[sub.subnet_id] = {:vpc_id => sub.vpc_id, :subnet_name => sub.tag_set["Name"] || sub.subnet_id} }
|
||
subnet_vpc_hash
|
||
end
|
||
|
||
... | ... | |
:permission => 'edit_compute_resources'),
|
||
:title => _("Associate VM to a Foreman host"),
|
||
:method => :put,
|
||
:class =>"btn btn-default"
|
||
:class => "btn btn-default"
|
||
)
|
||
end
|
||
|
Also available in: Unified diff
Fixes #19789 - fix Layout/SpaceAroundOperators cop