Sha256: 1209e625f82e5d4f4ff77d33ea90c175a56d7b736c3dfc5a8d1f56b382d0b843

Contents?: true

Size: 904 Bytes

Versions: 1

Compression:

Stored size: 904 Bytes

Contents

%h1 Remote Cart

%center
  Currently #{@cart_content.size} items in cart.
  %br
  %br
  %table.pure-table
    %thead
      %tr
        %th
          = product_icon
          Product
        %th
          Local Name
        %th
          Quantity
    %tbody
      - if @cart_products.empty?
        %tr
          %td(colspan=3) Remote Cart empty
      - @cart_products.each do |product, qty|
        - if product.nil?
          %tr
            %td unknown product
            %td unknown product
            %td unknown product
        - else
          %tr
            %td
              = remote_product_link product
            %td
              = local_product_link(product.local_product) rescue "unlinked"
            %td
              = qty
  %br
  %br
  %a(href="#{Rawbotz::RemoteShop::cart_page_url settings.conf}" target="remote_shop")
    = view_icon
    = external_link_icon
    View Remote Cart

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rawbotz-0.2.0 lib/rawbotz/views/remote_cart/index.haml