Class: ODDB::View::Drugs::EmptyCompareComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/drugs/compare.rb

Constant Summary

COMPONENTS =
{
  [0,0]   => 'compare_title_no_atc',
  [0,1]   => :compare_desc0_no_atc,
  [0,2,0] =>  :compare_desc1_no_atc,
  [0,2,1] =>  :ywesee_contact_email,
  [0,2,2] =>  'point',
}
CSS_MAP =
{
  [0,0]     =>  'th',
  [0,1,1,2] =>  'list',
}
CSS_CLASS =
'composite'

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) compare_desc0_no_atc(model, session)



197
198
199
200
# File 'src/view/drugs/compare.rb', line 197

def compare_desc0_no_atc(model, session)
  query = model.package.name_base
  @lookandfeel.lookup(:compare_desc0_no_atc, query)
end

- (Object) compare_desc1_no_atc(model, session)



201
202
203
204
# File 'src/view/drugs/compare.rb', line 201

def compare_desc1_no_atc(model, session)
  query = model.package.name_base
  @lookandfeel.lookup(:compare_desc1_no_atc, query)
end

- (Object) ywesee_contact_email(model, session)



205
206
207
208
209
210
# File 'src/view/drugs/compare.rb', line 205

def ywesee_contact_email(model, session)
  link = HtmlGrid::Link.new(:ywesee_contact_email, model, session, self)
  link.href = @lookandfeel.lookup(:ywesee_contact_href)
  link.attributes['class'] = 'text'
  link
end