Module: ODDB::View::Drugs::AtcDddLink

Included in:
AdditionalInformation
Defined in:
src/view/drugs/atcchooser.rb

Instance Method Summary (collapse)

Instance Method Details



13
14
15
16
17
18
19
20
21
# File 'src/view/drugs/atcchooser.rb', line 13

def atc_ddd_link(atc, session=@session)
  if(atc && atc.has_ddd?)
    link = HtmlGrid::Link.new(:ddd, atc, session, self)
    link.href = @lookandfeel._event_url(:ddd, {'pointer'=>atc.pointer})
    link.set_attribute('class', 'square infos')
    link.set_attribute('title', @lookandfeel.lookup(:ddd_title))
    link
  end
end