Class: ODDB::View::NotifyConfirmComposite

Inherits:
HtmlGrid::Composite show all
Includes:
NotifyTitle
Defined in:
src/view/notify_confirm.rb

Constant Summary

CSS_CLASS =
'composite'
COMPONENTS =
{
  [0,0]   =>  View::SearchForm,
  [0,1]   =>  :notify_title,
  [0,2]   =>  :notify_sent,
}
CSS_MAP =
{
  [0,1] => 'th',
  [0,2] => 'confirm',
}

Instance Method Summary (collapse)

Methods included from NotifyTitle

#notify_title

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) notify_sent(model, session)



25
26
27
28
29
30
31
32
33
# File 'src/view/notify_confirm.rb', line 25

def notify_sent(model, session)
  last, *mails = model.notify_recipient.reverse
  string = if(mails.empty?) 
             last
           else
             [mails.reverse.join(', '), last].join(@lookandfeel.lookup(:and))
           end
  @lookandfeel.lookup(:notify_sent, string)
end