Class: BBMB::Html::View::ResultComposite
- Inherits:
-
HtmlGrid::DivComposite
- Object
- HtmlGrid::DivComposite
- BBMB::Html::View::ResultComposite
- Defined in:
- lib/bbmb/html/view/result.rb
Direct Known Subclasses
Constant Summary collapse
- COMPONENTS =
{ [0,0] => Search, [1,0] => :product_count, [0,1] => Products, }
- CSS_ID_MAP =
['toolbar']
Instance Method Summary collapse
Instance Method Details
#product_count(model) ⇒ Object
91 92 93 94 95 96 97 98 99 100 |
# File 'lib/bbmb/html/view/result.rb', line 91 def product_count(model) span = HtmlGrid::Span.new(model, @session, self) span.value = if(model.size == 1) @lookandfeel.lookup(:product_found) else @lookandfeel.lookup(:products_found, model.size) end span.css_class = 'guide' span end |