Module: Card::Set::Self::Favicon::HtmlFormat

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod016-carrierwave/self/favicon.rb

Instance Method Summary collapse

Instance Method Details

#raw_help_textObject



20
21
22
23
# File 'platypus/tmp/set/gem-defaults/mod016-carrierwave/self/favicon.rb', line 20

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


14
15
16
17
18
# File 'platypus/tmp/set/gem-defaults/mod016-carrierwave/self/favicon.rb', line 14

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

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

#view: sourceObject



9
10
11
12
# File 'platypus/tmp/set/gem-defaults/mod016-carrierwave/self/favicon.rb', line 9

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