spree_my_favourites 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf076b39fb36075a87aeebe46b86c7265eb5aff2
4
- data.tar.gz: ddd2896e8a7161de3c610ba822ad7b70e20c276f
3
+ metadata.gz: 8a09c2b3ecb78d979ede4c8eb194c6933f6c4ac3
4
+ data.tar.gz: bd4df516a5a5fa4ac5fa72e7c1acb8f516777266
5
5
  SHA512:
6
- metadata.gz: 20f2aaed6488a94baffec1ae751229db9bed96c6a000cd275573d1b44d970d7709ccb35b4d8ec64c10c677a6c222f0672f12683475167fcd7fa46beb5f84d23f
7
- data.tar.gz: bd1a2d95c15d8821ee3eb03ba9d60b4b8924dd82d7ebe3d0adca19631c1809d055572a48b23f8d54987fc986ca7e5b271ae0b3d4fd47a0ccf99858cc94a6d1a2
6
+ metadata.gz: 9680b9b345bd186fa293d45ab4be40fa9c344135a61bba1240ecb28c3c085427659a74822b8037f3017b74a59704cd506bb735e47b913c1d7a683a7c53792f79
7
+ data.tar.gz: bb72e3e562a83520078b8443391d69d2a2edc7f9c010b07c97e4401a53c73c65c1b6833d5ca65feb71d7a08a745e69dd22f79f85d8d4e540a31371aaa2554f42
@@ -0,0 +1,10 @@
1
+ %table.favourites-summary
2
+ %thead
3
+ %tr
4
+ %th.favourite-description= Spree.t(:name)
5
+ %th.favourite-number-orders= Spree.t(:number_of_orders)
6
+ %tbody
7
+ - favourites.each do |favourite|
8
+ %tr
9
+ %td.favourite-description= favourite[:variant].name
10
+ %td.favourite-number-orders= favourite[:number_of_orders]
@@ -3,15 +3,6 @@
3
3
 
4
4
  .account-my-favourites(data-hook="account_my_favourites")
5
5
  - if @favourites.present?
6
- %table.favourites-summary
7
- %thead
8
- %tr
9
- %th.favourite-description= Spree.t(:name)
10
- %th.favourite-number-orders= Spree.t(:number_of_orders)
11
- %tbody
12
- - @favourites.each do |favourite|
13
- %tr
14
- %td.favourite-description= favourite[:variant].name
15
- %td.favourite-number-orders= favourite[:number_of_orders]
6
+ = render partial: "spree/account/favourites/table", locals: {favourites: @favourites}
16
7
  - else
17
8
  %p= Spree.t(:you_have_no_orders_yet)
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_my_favourites'
5
- s.version = '2.2.1'
5
+ s.version = '2.2.2'
6
6
  s.summary = 'Adds My Favourites tab to My Account section of the website'
7
7
  s.required_ruby_version = '>= 2.0.0'
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_my_favourites
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Trindade
@@ -239,6 +239,7 @@ files:
239
239
  - app/assets/stylesheets/spree/frontend/spree_my_favourites.css
240
240
  - app/controllers/spree/account/favourites_controller.rb
241
241
  - app/controllers/spree/account/orders_controller.rb
242
+ - app/views/spree/account/favourites/_table.haml
242
243
  - app/views/spree/account/favourites/index.haml
243
244
  - app/views/spree/account/orders/index.haml
244
245
  - app/views/spree/shared/_account_header.haml