Sha256: d77ec177e390d2b7f324d143b76de2fb1721b6de5cd54b1c706db81564158b63

Contents?: true

Size: 371 Bytes

Versions: 9

Compression:

Stored size: 371 Bytes

Contents

module Katello
  module RepositoriesHelper
    def gpg_keys_edit
      keys = {}

      GpgKey.readable(current_organization).each do |key|
        keys[key.id] = key.name
      end

      keys[""] = ""
      keys["selected"] = @repository.gpg_key_id || ""
      return keys.to_json
    end

    def gpg_keys
      GpgKey.readable(current_organization)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/helpers/katello/repositories_helper.rb
katello-2.4.4 app/helpers/katello/repositories_helper.rb
katello-2.4.3 app/helpers/katello/repositories_helper.rb
katello-2.4.2 app/helpers/katello/repositories_helper.rb
katello-2.4.1 app/helpers/katello/repositories_helper.rb
katello-2.4.0 app/helpers/katello/repositories_helper.rb
katello-2.4.0.rc3 app/helpers/katello/repositories_helper.rb
katello-2.4.0.rc2 app/helpers/katello/repositories_helper.rb
katello-2.4.0.rc1 app/helpers/katello/repositories_helper.rb