Sha256: d6cc32a481411bf7ddd8a6f4270e72d3e8d93b7f73a145215ce5bd9c91e5b874
Contents?: true
Size: 629 Bytes
Versions: 200
Compression:
Stored size: 629 Bytes
Contents
module Katello module OrganizationsHelper def organization_servicelevel(org) _("%{sla}") % { :sla => (org.service_level.blank? ? _("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
200 entries across 200 versions & 1 rubygems