radiant-shop-extension 0.92.11 → 0.93.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.92.11
1
+ 0.93.0
@@ -166,7 +166,7 @@ private
166
166
  @shop_category.page = Page.new(
167
167
  :layout_id => (Layout.find_by_name(Radiant::Config['shop.layout_category']).id rescue nil),
168
168
  :parent_id => (Radiant::Config['shop.root_page_id'] rescue 1),
169
- :parts => [PagePart.new(:name => 'description')]
169
+ :parts => [PagePart.new(:name => 'description', :filter_id => Radiant::Config['default.page.filter'])]
170
170
  )
171
171
  @shop_category.product_layout = (Layout.find_by_name(Radiant::Config['shop.layout_product']) rescue nil)
172
172
  end
@@ -223,7 +223,7 @@ private
223
223
  @shop_product.page = Page.new(
224
224
  :parent_id => @shop_category.page_id,
225
225
  :layout_id => @shop_category.product_layout_id,
226
- :parts => [PagePart.new(:name => 'description')]
226
+ :parts => [PagePart.new(:name => 'description', :filter_id => Radiant::Config['default.page.filter'])]
227
227
  )
228
228
  end
229
229
 
@@ -2,4 +2,5 @@
2
2
  - pf.fields_for :parts do |pfp|
3
3
  - if pfp.object.name == 'description'
4
4
  = pfp.hidden_field :name, :value => pfp.object.name
5
+ = pfp.hidden_field :filter_id, :value => pfp.object.filter_id
5
6
  ~ pfp.text_area :content, :class => "textarea large", :style => "width: 100%"
@@ -1,7 +1,7 @@
1
1
  %ul#items
2
2
  - @shop_order.line_items.each do |item|
3
3
  %li.item
4
- %h3= link_to item.item.name, [:edit_admin, item.item]
4
+ %h3= link_to %{#{item.item.name} (#{item.item.sku})}, [:edit_admin, item.item]
5
5
  %span.quantity== #{item.quantity}x
6
6
  %span.price_each== #{number_to_currency item.item.price} Ea.,
7
7
  %span.total== #{number_to_currency item.price}
@@ -2,4 +2,5 @@
2
2
  - pf.fields_for :parts do |pfp|
3
3
  - if pfp.object.name == 'description'
4
4
  = pfp.hidden_field :name, :value => pfp.object.name
5
+ = pfp.hidden_field :filter_id, :value => pfp.object.filter_id
5
6
  ~ pfp.text_area :content, :class => "textarea large", :style => "width: 100%"
@@ -82,7 +82,7 @@ module Shop
82
82
 
83
83
  desc %{ outputs the description of the current shop category }
84
84
  tag "shop:category:description" do |tag|
85
- parse(TextileFilter.filter(tag.locals.shop_category.description))
85
+ tag.locals.shop_category.page.parts('description').render rescue nil
86
86
  end
87
87
 
88
88
  desc %{ returns a link to the current category }
@@ -64,7 +64,7 @@ module Shop
64
64
 
65
65
  desc %{ outputs the description of the current shop product}
66
66
  tag "shop:product:description" do |tag|
67
- parse(TextileFilter.filter(tag.locals.shop_product.description))
67
+ tag.locals.shop_product.page.parts('description').render rescue nil
68
68
  end
69
69
 
70
70
  desc %{ generates a link to the products generated page }
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-shop-extension}
8
- s.version = "0.92.11"
8
+ s.version = "0.93.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dirk Kelly", "John Barker", "Darcy Laycock"]
12
- s.date = %q{2010-12-29}
12
+ s.date = %q{2010-12-30}
13
13
  s.description = %q{Radiant Shop is an attempt at a simple but complete store. It includes Products, Categories, Orders and Credit Card Payments}
14
14
  s.email = %q{dk@dirkkelly.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-shop-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 377
4
+ hash: 363
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 92
9
- - 11
10
- version: 0.92.11
8
+ - 93
9
+ - 0
10
+ version: 0.93.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Kelly
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-12-29 00:00:00 +08:00
20
+ date: 2010-12-30 00:00:00 +08:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency