Sha256: 55794169d7b9a86db5ca8b31d1836960972d6e95f79d2267b23815ea6e44cdc9

Contents?: true

Size: 809 Bytes

Versions: 6

Compression:

Stored size: 809 Bytes

Contents

- content_for :scripts do
  = javascript_include_tag 'jquery.quickSearch.js'
  
  - if can?(:manage, Product) 
    = javascript_include_tag 'jquery.twoLevelSort.js'
    :javascript
      $(function() {
        $('#item-list').forgeTwoLevelSort({callbackPath: '#{reorder_forge_pages_path}'});
        $('#quick-search').quickSearch({url: '#{forge_products_path}'});
      });
    
%h1 Your Products

%p.info
  These are all of the products on your site.  A maximum of 100 products are displayed.  Use the search to find
  other products as needed.

= render :partial => "forge/shared/section_header", :locals => {:item => Product}
%ul#item-list= render :partial => "product", :collection => @products
#item-list-bottom
  %strong.float-right
    = "Too many results, only 100 displayed" if @products.size > 99

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/products/index.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/products/index.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/products/index.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/products/index.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/products/index.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/products/index.html.haml