Sha256: fecaa51db4e0afebc7ad113293e5f19d91856487151482479d0212c5705e50d9
Contents?: true
Size: 657 Bytes
Versions: 46
Compression:
Stored size: 657 Bytes
Contents
module Katello module OrganizationsHelper def organization_servicelevel(org) _("%{sla}") % { :sla => ((org.service_level.nil? || org.service_level.empty?) ? _("No Service Level Preference") : (_("Service Level %s") % org.service_level))} end def organization_servicelevel_edit(org) levels = {} org.service_levels.each do |level| levels["#{level}"] = _("Service Level %s") % level levels["#{level}"] = _("Service Level %s") % level end levels[''] = _("No Service Level Preference") levels["selected"] = organization_servicelevel(org) return levels.to_json end end end
Version data entries
46 entries across 46 versions & 1 rubygems