lib/katello/plugin.rb in katello-3.18.5 vs lib/katello/plugin.rb in katello-4.0.0.rc1
- old
+ new
@@ -261,14 +261,14 @@
extend_page("smart_proxies/show") do |context|
context.add_pagelet :main_tabs,
:name => _("Content"),
:partial => "foreman/smart_proxies/content_tab",
- :onlyif => proc { |proxy| proxy.has_feature?(SmartProxy::PULP_NODE_FEATURE) }
+ :onlyif => proc { |proxy| proxy.has_feature?(SmartProxy::PULP_NODE_FEATURE) || proxy.has_feature?(SmartProxy::PULP3_FEATURE) }
context.add_pagelet :details_content,
:name => _("Content Sync"),
:partial => "foreman/smart_proxies/content_sync",
- :onlyif => proc { |proxy| proxy.has_feature?(SmartProxy::PULP_NODE_FEATURE) }
+ :onlyif => proc { |proxy| proxy.pulp_mirror? }
end
::Katello::HostStatusManager::STATUSES.each do |status_class|
register_custom_status(status_class)
end