Sha256: 675fc65d3eecd451183e1198fa2d8710050f945c95de78c2e60aa3325f533e6a

Contents?: true

Size: 524 Bytes

Versions: 13

Compression:

Stored size: 524 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

13 entries across 13 versions & 2 rubygems

Version Path
card-mod-carrierwave-0.11.4 set/self/favicon.rb
card-mod-carrierwave-0.11.3 set/self/favicon.rb
card-mod-carrierwave-0.11.2 set/self/favicon.rb
card-mod-carrierwave-0.11.1 set/self/favicon.rb
card-mod-carrierwave-0.11.0 set/self/favicon.rb
card-1.100.0 mod/carrierwave/set/self/favicon.rb
card-1.99.6 mod/carrierwave/set/self/favicon.rb
card-1.99.5 mod/carrierwave/set/self/favicon.rb
card-1.99.4 mod/carrierwave/set/self/favicon.rb
card-1.99.3 mod/carrierwave/set/self/favicon.rb
card-1.99.2 mod/carrierwave/set/self/favicon.rb
card-1.99.1 mod/carrierwave/set/self/favicon.rb
card-1.99.0 mod/carrierwave/set/self/favicon.rb