Class: ODDB::Html::View::Drugs::FachinfoComposite
- Inherits:
-
HtmlGrid::DivComposite
- Object
- HtmlGrid::DivComposite
- ODDB::Html::View::Drugs::FachinfoComposite
- Includes:
- Snapback
- Defined in:
- lib/oddb/html/view/drugs/fachinfo.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => :snapback, [0,1] => InlineSearch, [0,2] => :name, [0,3] => :chapters, [0,4] => :document, }
- CSS_ID_MAP =
[ 'snapback', 'result-search', 'title', 'chapters' ]
- CSS_MAP =
{ 0 => 'before-searchbar' }
Instance Method Summary collapse
Methods included from Snapback
Instance Method Details
#chapters(model) ⇒ Object
27 28 29 30 31 |
# File 'lib/oddb/html/view/drugs/fachinfo.rb', line 27 def chapters(model) if((fi = model.fachinfo) && (doc = fi.send(@session.language))) ChapterNames.new(:fachinfo, doc, @session, self) end end |
#document(model) ⇒ Object
22 23 24 25 26 |
# File 'lib/oddb/html/view/drugs/fachinfo.rb', line 22 def document(model) if((fi = model.fachinfo) && (doc = fi.send(@session.language))) Document.new(doc, @session, self) end end |