Sha256: 1bfa591467a2faade2241ce9dfa5186d1025c47e1cd7a4c5542d8f785f8c6ddf

Contents?: true

Size: 918 Bytes

Versions: 2

Compression:

Stored size: 918 Bytes

Contents

%table.favourites-summary
  %thead
    %tr
      %th.favourite-image
      %th.favourite-description= Spree.t(:name)
      %th.favourite-price= Spree.t(:price)
      - if SpreeMyFavourites::Config.use_quick_add_to_cart_form
        %th.favourite-add-to-cart  
  %tbody
    - favourites.each do |favourite|
      %tr
        %td.favourite-image
          - if favourite.images.length == 0
            = link_to mini_image(favourite.product), favourite.product
          - else
            = link_to image_tag(favourite.images.first.attachment.url(:mini)), favourite.product
        %td.favourite-description(data-hook='favourite_name')= favourite.name
        %td.favourite-price= display_price(favourite)
        - if SpreeMyFavourites::Config.use_quick_add_to_cart_form
          %td.favourite-add-to-cart      
            = render partial: "spree/shared/quick_cart_add_button", locals: {product: favourite.product}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_my_favourites-2.2.7 app/views/spree/shared/_user_favourites_table.haml
spree_my_favourites-2.2.6 app/views/spree/shared/_user_favourites_table.haml