Sha256: 0071848f3e1656f204f52b5c3e46e08dd0887590d4b1a847f2a0b6443b5339d2

Contents?: true

Size: 174 Bytes

Versions: 58

Compression:

Stored size: 174 Bytes

Contents

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

58 entries across 58 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/presenters/hyrax/model_icon.rb
hyrax-2.9.5 app/presenters/hyrax/model_icon.rb
hyrax-2.9.4 app/presenters/hyrax/model_icon.rb
hyrax-2.9.3 app/presenters/hyrax/model_icon.rb
hyrax-2.9.2 app/presenters/hyrax/model_icon.rb
hyrax-2.9.1 app/presenters/hyrax/model_icon.rb
hyrax-2.9.0 app/presenters/hyrax/model_icon.rb
hyrax-2.8.0 app/presenters/hyrax/model_icon.rb
hyrax-2.7.2 app/presenters/hyrax/model_icon.rb
hyrax-2.7.1 app/presenters/hyrax/model_icon.rb
hyrax-2.7.0 app/presenters/hyrax/model_icon.rb
hyrax-2.6.0 app/presenters/hyrax/model_icon.rb
hyrax-3.0.0.pre.rc1 app/presenters/hyrax/model_icon.rb
hyrax-3.0.0.pre.beta3 app/presenters/hyrax/model_icon.rb
hyrax-2.5.1 app/presenters/hyrax/model_icon.rb
hyrax-2.5.0 app/presenters/hyrax/model_icon.rb
hyrax-3.0.0.pre.beta2 app/presenters/hyrax/model_icon.rb
hyrax-2.4.1 app/presenters/hyrax/model_icon.rb
hyrax-3.0.0.pre.beta1 app/presenters/hyrax/model_icon.rb
hyrax-2.4.0 app/presenters/hyrax/model_icon.rb