Actions
Bug #39328
closedAdd macro to allow showing and fetching activation_key_names used to register a content host
Description
While we expose subscription_facet and allow rendering registered_at\through and last_checkin, we don't have any macro that exposed the activation key names, used to register a system and users are demanding of the same.
We already have host_subscription_facet macro present in https://github.com/Katello/katello/blob/master/app/lib/katello/concerns/base_template_scope_extensions.rb#L316-L318 i.e.
def host_subscription_facet(host)
host.subscription_facet
end
We need to simply do `host_subscription_facet(host)&.activation_keys&.map(&:name)` to get the activation key names associated with a registered content host.
Actions