spree_essential_cms 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Otherwise, follow these steps to get up and running with SpreeEssentialCms:
|
|
10
10
|
|
11
11
|
Add spree_essential_cms to your Gemfile:
|
12
12
|
|
13
|
-
gem 'spree_essential_cms', '>= 0.2.
|
13
|
+
gem 'spree_essential_cms', '>= 0.2.1'
|
14
14
|
|
15
15
|
Now, bundle up with:
|
16
16
|
|
@@ -113,6 +113,11 @@ You can easily use the test/dummy app as a demo of spree_essential_cms. Just `cd
|
|
113
113
|
Change Log
|
114
114
|
----------
|
115
115
|
|
116
|
+
**0.2.1 - 2011/12/15**
|
117
|
+
|
118
|
+
* Fixes missing partial error on homepage when used with SpreeEssentialBlog
|
119
|
+
|
120
|
+
|
116
121
|
**0.2.0 - 2011/12/15**
|
117
122
|
|
118
123
|
* Add 0.70.x compatibility
|
@@ -2,9 +2,11 @@ class ::Admin::ContentsController < ::Admin::ResourceController
|
|
2
2
|
|
3
3
|
before_filter :load_resource
|
4
4
|
before_filter :parent, :only => :index
|
5
|
+
|
6
|
+
before_filter :get_pages, :only => [ :new, :edit, :create, :update ]
|
5
7
|
|
6
8
|
belongs_to :page
|
7
|
-
|
9
|
+
|
8
10
|
def update_positions
|
9
11
|
@page = parent
|
10
12
|
params[:positions].each do |id, index|
|
@@ -18,6 +20,10 @@ class ::Admin::ContentsController < ::Admin::ResourceController
|
|
18
20
|
|
19
21
|
private
|
20
22
|
|
23
|
+
def get_pages
|
24
|
+
@pages = Page.order(:position).all
|
25
|
+
end
|
26
|
+
|
21
27
|
def parent
|
22
28
|
@page ||= Page.find_by_path(params[:page_id])
|
23
29
|
end
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
<h2><%= t('.new_content') %></h2>
|
10
10
|
|
11
|
-
|
11
|
+
<%= form_for([:admin, @page, @content], :html => { :multipart => true }) do |f| %>
|
12
12
|
<%= render "form", :form => f %>
|
13
13
|
|
14
14
|
<p class="form-buttons">
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<% if defined?(SpreeEssentialBlog) && !@posts.blank? %>
|
17
17
|
<div class="home-posts">
|
18
18
|
<h1><%= t('blog.home.title') %></h1>
|
19
|
-
<%= render :partial => 'blog/
|
19
|
+
<%= render :partial => 'blog/shared/preview', :collection => @posts, :as => :post %>
|
20
20
|
</div>
|
21
21
|
<% end %>
|
22
22
|
<% if defined?(SpreeEssentialNews) && !@articles.blank? %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_essential_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-16 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_essentials
|
16
|
-
requirement: &
|
16
|
+
requirement: &70176218104080 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.3.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70176218104080
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: dummier
|
27
|
-
requirement: &
|
27
|
+
requirement: &70176218103340 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.2.4
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70176218103340
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: shoulda
|
38
|
-
requirement: &
|
38
|
+
requirement: &70176218102680 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 3.0.0.beta2
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70176218102680
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: factory_girl
|
49
|
-
requirement: &
|
49
|
+
requirement: &70176218101960 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.3.2
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70176218101960
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: capybara
|
60
|
-
requirement: &
|
60
|
+
requirement: &70176218101220 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.1.2
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70176218101220
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sqlite3
|
71
|
-
requirement: &
|
71
|
+
requirement: &70176218100320 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: 1.3.5
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70176218100320
|
80
80
|
description: SpreeEssentialCms is a full featured content management system for Spree
|
81
81
|
Commerce. It's designed to be used with the spree_essentials base.
|
82
82
|
email:
|
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
segments:
|
145
145
|
- 0
|
146
|
-
hash: -
|
146
|
+
hash: -927433600182519188
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
148
|
none: false
|
149
149
|
requirements:
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
version: '0'
|
153
153
|
segments:
|
154
154
|
- 0
|
155
|
-
hash: -
|
155
|
+
hash: -927433600182519188
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
158
|
rubygems_version: 1.8.10
|