Class: ODDB::Html::View::RssFeedbacks

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

Constant Summary collapse

COMPONENTS =
{
  [0,0] => :rss_image,
  [1,0] => :title,
  [0,1] => RssFeedbackList,
}

Constants inherited from RssPreview

ODDB::Html::View::RssPreview::CSS_MAP

Instance Method Summary collapse

Methods inherited from RssPreview

#rss_image

Instance Method Details

#title(model) ⇒ Object



42
43
44
45
46
47
48
49
50
# File 'lib/oddb/html/view/rss_preview.rb', line 42

def title(model)
  if(feedback = model.first)
    link = HtmlGrid::Link.new(:feedback_feed_title, model, @session, self)
    link.href = url = [ 'http:/', @session.server_name, 'rss', 
                        @session.language, "feedback.rss" ].join('/')
    link.css_class = 'rss-title'
    link
  end
end