Class: ODDB::Html::View::RssPreview

Inherits:
HtmlGrid::DivComposite
  • Object
show all
Defined in:
lib/oddb/html/view/rss_preview.rb

Direct Known Subclasses

RssFeedbacks

Constant Summary collapse

CSS_MAP =
['heading']

Instance Method Summary collapse

Instance Method Details

#rss_image(model) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/oddb/html/view/rss_preview.rb', line 13

def rss_image(model)
  if(link = title(model))
    img = HtmlGrid::Image.new(:rss_img, model, @session, self)
    img.attributes['src'] = @lookandfeel.resource_global(:rss_img)
    link.value = img
    link
  end
end