Class: ODDB::Html::View::PayPal::CollectComposite
- Inherits:
-
HtmlGrid::DivComposite
- Object
- HtmlGrid::DivComposite
- ODDB::Html::View::PayPal::CollectComposite
- Defined in:
- lib/oddb/html/view/paypal/collect.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => InlineSearch, [0,1] => :title, [0,2] => :message, [0,3] => :download_links, }
- CSS_ID_MAP =
['result-search', 'title']
- CSS_MAP =
{ 2 => 'explain' }
- LEGACY_INTERFACE =
false
Instance Method Summary collapse
Instance Method Details
#download_links(model) ⇒ Object
63 64 65 66 67 |
# File 'lib/oddb/html/view/paypal/collect.rb', line 63 def download_links(model) if(model && model.status == 'completed') ReturnDownloads.new(model.items, @session, self) end end |
#message(model) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/oddb/html/view/paypal/collect.rb', line 48 def (model) key = if(model.nil?) :paypal_e_missing_invoice elsif(model.status == 'completed') suffix = @model.items.size == 1 ? @model.types.first : 'p' "paypal_msg_succ_#{suffix}" else :paypal_msg_unconfirmed end @lookandfeel.lookup key end |
#title(model) ⇒ Object
59 60 61 62 |
# File 'lib/oddb/html/view/paypal/collect.rb', line 59 def title(model) msg = @lookandfeel.lookup("paypal_#{model.status}".downcase) if model msg || @lookandfeel.lookup(:paypal_failed) end |