Sha256: d67dc3858d6b4c50216662c3716b3e7587ad46661db0f809930c052f4003c13c

Contents?: true

Size: 559 Bytes

Versions: 2

Compression:

Stored size: 559 Bytes

Contents

%table.favourites-summary
  %thead
  %tr
    %th.favourite-description= Spree.t(:name)
    %th.favourite-number-orders= Spree.t(:number_of_orders)
  %tbody
  - favourites.each do |favourite|
    %tr
      %td.favourite-image
        - if variant.images.length == 0
          = link_to mini_image(variant.product), variant.product
        - else
          = link_to image_tag(variant.images.first.attachment.url(:small)), variant.product
      %td.favourite-description= favourite[:variant].name
      %td.favourite-number-orders= favourite[:number_of_orders]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_my_favourites-2.2.5 app/views/spree/account/favourites/_table.haml
spree_my_favourites-2.2.4 app/views/spree/account/favourites/_table.haml