Class: ODDB::View::Drugs::DateHeader

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

Constant Summary

COMPONENTS =
{
  [0,0] =>  :date_packages,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] => 'atc list',
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) date_packages(model)



65
66
67
68
69
70
71
72
73
74
# File 'src/view/drugs/recentregs.rb', line 65

def date_packages(model)
  date = model.date
  [
    @lookandfeel.lookup('month_' + date.month.to_s),
    date.year, 
    '-',
    model.package_count,
    @lookandfeel.lookup(:products),
  ].join(' ')
end