Sha256: 7eb8f4f8080be73309423655804899e0b8f8c7986962f5c2568694636cf65423

Contents?: true

Size: 727 Bytes

Versions: 1

Compression:

Stored size: 727 Bytes

Contents

%table.pure-table.pure-table-striped
  %thead
    %tr
      %th
        = product_icon
        Product name
      %th
        Product ID
      %th
        = supplier_icon
        Supplier
      %th
        = stock_icon
        = sales_icon
        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

1 entries across 1 versions & 1 rubygems

Version Path
rawbotz-0.2.0 lib/rawbotz/views/products/table.haml