module ForemanSalt::SaltModulesHelper
def import_from_proxies
def import_from_proxies links = SmartProxy.with_features('Salt').map do |proxy| display_link_if_authorized(_('Import from %s') % proxy.name, hash_for_import_salt_modules_path.merge(proxy: proxy), class: 'btn btn-default') end.flatten select_action_button(_('Import'), {}, links) end