lib/katello/plugin.rb in katello-3.18.0.rc1 vs lib/katello/plugin.rb in katello-3.18.0.rc2

- old
+ new

@@ -1,11 +1,11 @@ require 'katello/permission_creator' require 'katello/repository_types.rb' require 'katello/host_status_manager.rb' # rubocop:disable Metrics/BlockLength Foreman::Plugin.register :katello do - requires_foreman '>= 1.24' + requires_foreman '>= 2.3' sub_menu :top_menu, :content_menu, :caption => N_('Content'), :icon => 'fa fa-book', :after => :monitor_menu do menu :top_menu, :red_hat_subscriptions, @@ -280,9 +280,14 @@ extend_rabl_template 'api/v2/smart_proxies/main', 'katello/api/v2/smart_proxies/pulp_info' extend_rabl_template 'api/v2/hosts/show', 'katello/api/v2/hosts/host_collections' # Extend Global Registration endpoint extend_allowed_registration_vars :activation_key + + # Extend Global Registration UI + extend_page 'registration/_form' do |cx| + cx.add_pagelet :global_registration, name: N_('Katello'), partial: 'foreman/hosts/registration', priority: 100, id: 'katello' + end extend_page "smart_proxies/show" do |cx| cx.add_pagelet :details_content, :name => _('Storage'), :partial => 'smart_proxies/show/storage',