Class: ODDB::Html::View::Drugs::CompareComposite

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

Constant Summary collapse

COMPONENTS =
{
  [0,0] => :snapback,
  [0,1] => "explain_compare", 
  [0,2] => InlineSearch, 
  [0,3] => CompareList,
  [0,4] => Legend,
}
CSS_ID_MAP =
[ 'snapback', 'explain-compare', 'result-search',
'compare-list', 'legend' ]
CSS_MAP =
{ 1 => 'before-searchbar', 3 => 'result' }

Instance Method Summary collapse

Instance Method Details

#comparison_for(model) ⇒ Object



77
78
79
80
# File 'lib/oddb/html/view/drugs/compare.rb', line 77

def comparison_for(model)
  @lookandfeel.lookup(:comparison_for, 
                      model.origin.name.send(@session.language))
end

#snapback(model) ⇒ Object



81
82
83
84
# File 'lib/oddb/html/view/drugs/compare.rb', line 81

def snapback(model)
  [ super, @lookandfeel.lookup(:breadcrumb_divider), 
    comparison_for(model)]
end