Class: BBMB::Html::View::HistoryProducts
- Inherits:
-
HtmlGrid::List
- Object
- HtmlGrid::List
- BBMB::Html::View::HistoryProducts
- Includes:
- Multilingual
- Defined in:
- lib/bbmb/html/view/history.rb
Constant Summary collapse
- BACKGROUND_ROW =
'bg'
- BACKGROUND_SUFFIX =
''
- COMPONENTS =
{ [0,0] => :order_count, [1,0] => :quantity, [2,0] => :description, [3,0] => :price, [4,0] => :total, }
- CSS_CLASS =
'list'
- CSS_MAP =
{ [0,0,2]=> 'tiny right', [2,0] => 'description', [3,0] => 'right', [4,0] => 'total', }
- CSS_HEAD_MAP =
{ [0,0] => 'right', [1,0] => 'right', [3,0] => 'right', [4,0] => 'right', }
- SORT_DEFAULT =
:description
Instance Method Summary collapse
Methods included from Multilingual
Methods included from Util::Multilingual
Instance Method Details
#price(model) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/bbmb/html/view/history.rb', line 35 def price(model) min, max = model.price_extremes if(min == max) min else @lookandfeel.lookup(:price_range, min, max) end end |