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

Version Path
katello-4.15.0.rc2 app/helpers/katello/organizations_helper.rb
katello-4.15.0.rc1 app/helpers/katello/organizations_helper.rb
katello-4.14.1 app/helpers/katello/organizations_helper.rb
katello-4.14.0 app/helpers/katello/organizations_helper.rb
katello-4.14.0.rc3 app/helpers/katello/organizations_helper.rb
katello-4.14.0.rc2 app/helpers/katello/organizations_helper.rb
katello-4.14.0.rc1.1 app/helpers/katello/organizations_helper.rb
katello-4.14.0.rc1 app/helpers/katello/organizations_helper.rb
katello-4.13.1 app/helpers/katello/organizations_helper.rb
katello-4.13.0 app/helpers/katello/organizations_helper.rb
katello-4.12.1 app/helpers/katello/organizations_helper.rb
katello-4.13.0.rc1 app/helpers/katello/organizations_helper.rb
katello-4.12.0 app/helpers/katello/organizations_helper.rb
katello-4.12.0.rc3 app/helpers/katello/organizations_helper.rb
katello-4.12.0.rc2 app/helpers/katello/organizations_helper.rb
katello-4.12.0.rc1 app/helpers/katello/organizations_helper.rb
katello-4.11.1 app/helpers/katello/organizations_helper.rb
katello-4.11.0 app/helpers/katello/organizations_helper.rb
katello-4.11.0.rc2 app/helpers/katello/organizations_helper.rb
katello-4.11.0.rc1 app/helpers/katello/organizations_helper.rb