Class: ODDB::View::Drugs::FachinfoNews

Inherits:
RssPreview show all
Defined in:
src/view/drugs/centeredsearchform.rb

Constant Summary

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

Constants inherited from RssPreview

CSS_MAP

Instance Method Summary (collapse)

Methods inherited from RssPreview

#rss_image

Instance Method Details

- (Object) title(model)



241
242
243
244
245
246
247
248
249
250
251
# File 'src/view/drugs/centeredsearchform.rb', line 241

def title(model)
  if((fachinfo = model.first) && (month = fachinfo.revision))
    link = HtmlGrid::Link.new(:fachinfo_news_title, model, @session, self)
    link.href = @lookandfeel._event_url(:rss, :channel => 'fachinfo.rss')
    link.value = [ @lookandfeel.lookup(:fachinfo_news_title), '<br>',
                   @lookandfeel.lookup("month_#{month.month}"),
                   month.year ].join(' ')
    link.css_class = 'list bold'
    link
  end
end