Sha256: bd5cef92d0a455bf32465ab9e8d78bf615f2055b239e696635f46d460ff45ade

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

%table.pure-table
  %thead
    %tr
      %th
        Product name
      %th
        Product ID
      %th
        Supplier
      %th
        Stock/ Sales
  %tbody
    - products.each do |product|
      %tr
        %td
          = product_link product
        %td
          = product.product_id
        %td
          = supplier_link product.supplier
        %td
          = haml "widgets/_stock_sales".to_sym, locals: {product: product}
          - stock_url = "/product/#{product.id}/stock_sales_plot"
          %a.stock_show_action{:href => "", :data => {url: stock_url, product: product.name}}
            Stock/Sales

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rawbotz-0.1.5 lib/rawbotz/views/products/table.haml
rawbotz-0.1.4 lib/rawbotz/views/products/table.haml
rawbotz-0.1.3 lib/rawbotz/views/products/table.haml