Project

General

Profile

« Previous | Next » 

Revision 9d43fc71

Added by Michael Moll almost 6 years ago

Fixes #19789 - fix Layout/SpaceAroundOperators cop

View differences:

app/helpers/puppetclasses_and_environments_helper.rb
def import_proxy_links(hash, import_env_text = false, classes = nil)
import_from_text = import_env_text ? _("Import environments from %s") : _("Import classes from %s")
SmartProxy.with_features("Puppet").map do |proxy|
display_link_if_authorized(import_from_text % proxy.name, hash.merge(:proxy => proxy), {:class=>classes})
display_link_if_authorized(import_from_text % proxy.name, hash.merge(:proxy => proxy), {:class => classes})
end.flatten
end

Also available in: Unified diff