Sha256: 81221a51b78f909de7ac5cef849ac8268fc2cb038e95f3e106b8089c6e0c963b

Contents?: true

Size: 525 Bytes

Versions: 24

Compression:

Stored size: 525 Bytes

Contents

format :html do
  view :source do
    source = card.type_id == Card::ImageID ? super() : nil
    source.present? ? source : nest(:logo, view: :source, size: voo.size)
  end

  view :link_tag, perms: :none do
    return unless (source = render :source, size: :small)

    tag :link, rel: "shortcut icon", href: source
  end

  def raw_help_text
    "A favicon (or shortcut icon) is a small image used by browsers to help identify "\
    "your website. [[http://www.decko.org/favicon|How to customize your favicon]]"
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
card-mod-carrierwave-0.18.1 set/self/favicon.rb
card-mod-carrierwave-0.18.0 set/self/favicon.rb
card-mod-carrierwave-0.17.0 set/self/favicon.rb
card-mod-carrierwave-0.16.0 set/self/favicon.rb
card-mod-carrierwave-0.15.6 set/self/favicon.rb
card-mod-carrierwave-0.15.5 set/self/favicon.rb
card-mod-carrierwave-0.15.4 set/self/favicon.rb
card-mod-carrierwave-0.15.3 set/self/favicon.rb
card-mod-carrierwave-0.15.2.pre1 set/self/favicon.rb
card-mod-carrierwave-0.15.1.1 set/self/favicon.rb
card-mod-carrierwave-0.15.1 set/self/favicon.rb
card-mod-carrierwave-0.15.0 set/self/favicon.rb
card-mod-carrierwave-0.14.2 set/self/favicon.rb
card-mod-carrierwave-0.14.1 set/self/favicon.rb
card-mod-carrierwave-0.14.0 set/self/favicon.rb
card-mod-carrierwave-0.13.4 set/self/favicon.rb
card-mod-carrierwave-0.13.3 set/self/favicon.rb
card-mod-carrierwave-0.13.2 set/self/favicon.rb
card-mod-carrierwave-0.13.1 set/self/favicon.rb
card-mod-carrierwave-0.13.0 set/self/favicon.rb