Sha256: 3c859a25a2350113772ce9503255f774ee6799f0d938a7db0e7049c6d4ddb831

Contents?: true

Size: 204 Bytes

Versions: 29

Compression:

Stored size: 204 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  class ModelIcon
    def self.css_class_for(model)
      I18n.t(:"hyrax.icons.#{model.model_name.i18n_key}", default: :"hyrax.icons.default")
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/presenters/hyrax/model_icon.rb
hyrax-5.0.4 app/presenters/hyrax/model_icon.rb
hyrax-5.0.3 app/presenters/hyrax/model_icon.rb
hyrax-5.0.2 app/presenters/hyrax/model_icon.rb
hyrax-5.0.1 app/presenters/hyrax/model_icon.rb
hyrax-5.0.0 app/presenters/hyrax/model_icon.rb
hyrax-5.0.0.rc3 app/presenters/hyrax/model_icon.rb
hyrax-5.0.0.rc2 app/presenters/hyrax/model_icon.rb
hyrax-5.0.0.rc1 app/presenters/hyrax/model_icon.rb
hyrax-3.6.0 app/presenters/hyrax/model_icon.rb
hyrax-4.0.0 app/presenters/hyrax/model_icon.rb
hyrax-4.0.0.rc3 app/presenters/hyrax/model_icon.rb
hyrax-4.0.0.rc2 app/presenters/hyrax/model_icon.rb
hyrax-4.0.0.rc1 app/presenters/hyrax/model_icon.rb
hyrax-3.5.0 app/presenters/hyrax/model_icon.rb
hyrax-4.0.0.beta2 app/presenters/hyrax/model_icon.rb
hyrax-3.4.2 app/presenters/hyrax/model_icon.rb
hyrax-4.0.0.beta1 app/presenters/hyrax/model_icon.rb
hyrax-3.4.1 app/presenters/hyrax/model_icon.rb
hyrax-3.4.0 app/presenters/hyrax/model_icon.rb