Class: ODDB::Html::View::Drugs::DownloadsComposite

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

Constant Summary collapse

COMPONENTS =
{
  [0,0] => InlineSearch,
  [0,1] => "downloads",
  [0,2] => :download_info,
  [0,3] => DownloadsForm,
}
CSS_ID_MAP =
[ 'result-search', 'title' ]
CSS_MAP =
{ 1 => 'result', 2 => 'explain' }

Instance Method Summary collapse

Instance Method Details

#download_info(model) ⇒ Object



116
117
118
119
120
# File 'lib/oddb/html/view/drugs/downloads.rb', line 116

def download_info model
  link = HtmlGrid::Link.new(:download_info, model, @session, self)
  link.href = 'http://wiki.oddb.org/wiki.php?pagename=ODDB.Stammdaten'
  link
end