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

Version Path
katello-3.4.5 app/helpers/katello/organizations_helper.rb
katello-3.4.4 app/helpers/katello/organizations_helper.rb
katello-3.4.2 app/helpers/katello/organizations_helper.rb
katello-3.4.1 app/helpers/katello/organizations_helper.rb
katello-3.4.0.2 app/helpers/katello/organizations_helper.rb
katello-3.4.0.1 app/helpers/katello/organizations_helper.rb
katello-3.3.2 app/helpers/katello/organizations_helper.rb
katello-3.4.0 app/helpers/katello/organizations_helper.rb
katello-3.4.0.rc2 app/helpers/katello/organizations_helper.rb
katello-3.4.0.rc1 app/helpers/katello/organizations_helper.rb
katello-3.3.1.1 app/helpers/katello/organizations_helper.rb
katello-3.3.1 app/helpers/katello/organizations_helper.rb
katello-3.3.0.1 app/helpers/katello/organizations_helper.rb
katello-3.3.0 app/helpers/katello/organizations_helper.rb
katello-3.3.0.rc2 app/helpers/katello/organizations_helper.rb
katello-3.3.0.rc1.1 app/helpers/katello/organizations_helper.rb
katello-3.3.0.rc1 app/helpers/katello/organizations_helper.rb
katello-3.2.1.1 app/helpers/katello/organizations_helper.rb
katello-3.2.1 app/helpers/katello/organizations_helper.rb
katello-3.2.0 app/helpers/katello/organizations_helper.rb