spree_frontend 2.0.10 → 2.0.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99393747afca53af7cbed71e2fad651be8df2fa5
|
4
|
+
data.tar.gz: 8fc05b8b02ebfe80a8e67bdb88dcd83a2dba3082
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec94fde232ca6bd6951dc690aa706b645782429c809a2027af395600cf4385763cc24de83016aa37be861774aea9a0c4482739d736c42a179657529c9e9d2619
|
7
|
+
data.tar.gz: 00d46ac2c1dbe62cf8b9a47ff615bb07979b887894666042a2020a884ba9ad8d7a283b921d7b7aa692ad5360a0015a285f81d7a89a8f9c91ad2767c4e3fe2b03
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module Spree
|
2
2
|
class ProductsController < Spree::StoreController
|
3
3
|
before_filter :load_product, :only => :show
|
4
|
+
before_filter :load_taxon, :only => :index
|
5
|
+
|
4
6
|
rescue_from ActiveRecord::RecordNotFound, :with => :render_404
|
5
7
|
helper 'spree/taxons'
|
6
8
|
|
@@ -44,5 +46,9 @@ module Spree
|
|
44
46
|
@product = Product.active(current_currency).find_by_permalink!(params[:id])
|
45
47
|
end
|
46
48
|
end
|
49
|
+
|
50
|
+
def load_taxon
|
51
|
+
@taxon = Spree::Taxon.find(params[:taxon]) if params[:taxon].present?
|
52
|
+
end
|
47
53
|
end
|
48
54
|
end
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<td class="cart-item-description" data-hook="cart_item_description">
|
12
12
|
<h4><%= link_to line_item.name, product_path(variant.product) %></h4>
|
13
13
|
<%= variant.options_text %>
|
14
|
-
<% if
|
14
|
+
<% if line_item.insufficient_stock? %>
|
15
15
|
<span class="out-of-stock">
|
16
16
|
<%= Spree.t(:out_of_stock) %> <br />
|
17
17
|
</span>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_frontend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.
|
19
|
+
version: 2.0.11
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0.
|
26
|
+
version: 2.0.11
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: spree_api
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.0.
|
33
|
+
version: 2.0.11
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.0.
|
40
|
+
version: 2.0.11
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jquery-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -558,7 +558,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
558
558
|
requirements:
|
559
559
|
- none
|
560
560
|
rubyforge_project: spree_frontend
|
561
|
-
rubygems_version: 2.2.
|
561
|
+
rubygems_version: 2.2.0
|
562
562
|
signing_key:
|
563
563
|
specification_version: 4
|
564
564
|
summary: Frontend e-commerce functionality for the Spree project.
|