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

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod014-card-mod-carrierwave/self/favicon.rb,
card/tmpsets/set/mod013-card-mod-carrierwave/self/favicon.rb

Instance Method Summary collapse

Instance Method Details

#raw_help_textObject



19
20
21
22
# File 'card/tmpsets/set/mod014-card-mod-carrierwave/self/favicon.rb', line 19

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
# File 'card/tmpsets/set/mod014-card-mod-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 'card/tmpsets/set/mod014-card-mod-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