spree_static_content 0.30.0 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -1
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/app/views/admin/pages/_form.html.erb +5 -29
- data/app/views/admin/pages/edit.html.erb +1 -1
- data/app/views/admin/pages/new.html.erb +1 -1
- data/config/locales/{ru-RU.yml → ru.yml} +2 -1
- data/spree_static_content.gemspec +9 -68
- metadata +17 -68
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-blockquote.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h1.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h2.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h3.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h4.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h5.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h6.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-p.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-pre.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/wymiframe.css +0 -90
- data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/wymiframe.html +0 -25
- data/lib/generators/templates/public/javascripts/wymeditor/jquery.wymeditor.js +0 -4676
- data/lib/generators/templates/public/javascripts/wymeditor/jquery.wymeditor.pack.js +0 -1
- data/lib/generators/templates/public/javascripts/wymeditor/lang/ca.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/cs.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/de.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/en.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/es.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/fa.js +0 -46
- data/lib/generators/templates/public/javascripts/wymeditor/lang/fr.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/he.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/hu.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/it.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/nb.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/nl.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/nn.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/pl.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/pt-br.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/pt.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/ru.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/sv.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/tr.js +0 -45
- data/lib/generators/templates/public/javascripts/wymeditor/lang/zh_cn.js +0 -47
- data/lib/generators/templates/public/javascripts/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js +0 -57
- data/lib/generators/templates/public/javascripts/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +0 -102
- data/lib/generators/templates/public/javascripts/wymeditor/plugins/resizable/readme.txt +0 -124
- data/lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/README +0 -19
- data/lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +0 -82
- data/lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/tidy.php +0 -36
- data/lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/wand.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/default/icons.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/default/skin.css +0 -133
- data/lib/generators/templates/public/javascripts/wymeditor/skins/default/skin.js +0 -40
- data/lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.header.gif +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/minimal/skin.css +0 -131
- data/lib/generators/templates/public/javascripts/wymeditor/skins/minimal/skin.js +0 -30
- data/lib/generators/templates/public/javascripts/wymeditor/skins/silver/COPYING +0 -674
- data/lib/generators/templates/public/javascripts/wymeditor/skins/silver/README +0 -27
- data/lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.header.gif +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/icons.silver.gif +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/silver/skin.css +0 -297
- data/lib/generators/templates/public/javascripts/wymeditor/skins/silver/skin.js +0 -61
- data/lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/icons.png +0 -0
- data/lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/skin.css +0 -134
- data/lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/skin.js +0 -39
- data/lib/generators/templates/public/javascripts/wymeditor/skins/wymeditor_icon.png +0 -0
- data/lib/generators/templates/public/stylesheets/static.css +0 -42
data/README.rdoc
CHANGED
@@ -27,7 +27,8 @@ extension to change the layout of the static pages.
|
|
27
27
|
|
28
28
|
== Installation
|
29
29
|
|
30
|
-
1. Add `gem "spree_static_content"` to your Gemfile
|
30
|
+
1. Add `gem "spree_static_content"` and `gem "spree_editor", :path => "../../spree_editor"` to your Gemfile
|
31
31
|
1. Run `bundle install`
|
32
32
|
1. Run `rails g spree_static_content:install`
|
33
33
|
1. Run `rake db:migrate`
|
34
|
+
1. Run `rake spree_editor:install`
|
data/Rakefile
CHANGED
@@ -21,7 +21,8 @@ Jeweler::Tasks.new do |s|
|
|
21
21
|
#s.email = ""
|
22
22
|
s.homepage = "http://github.com/spree/spree-static-content"
|
23
23
|
s.authors = ["Peter Berkenbosch", "Roman Smirnov"]
|
24
|
-
s.add_dependency 'spree_core', ['>= 0.30.0
|
24
|
+
s.add_dependency 'spree_core', ['>= 0.30.0']
|
25
|
+
s.add_dependency 'spree_editor'
|
25
26
|
#s.has_rdoc = false
|
26
27
|
#s.extra_rdoc_files = [ "README.rdoc"]
|
27
28
|
#s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.40.0
|
@@ -1,30 +1,3 @@
|
|
1
|
-
<% content_for :head do %>
|
2
|
-
|
3
|
-
<%= javascript_include_tag 'wymeditor/jquery.wymeditor.js' %>
|
4
|
-
|
5
|
-
<script type="text/javascript" charset="utf-8">
|
6
|
-
|
7
|
-
var $j = jQuery.noConflict();
|
8
|
-
$j(function() {
|
9
|
-
$j('.wymeditor').wymeditor({
|
10
|
-
xhtmlParser: 'xhtml_parser.js',
|
11
|
-
cssParser: 'wym_css_parser.js',
|
12
|
-
stylesheet: '/stylesheets/static.css?v='+Math.random(),
|
13
|
-
containersItems: [
|
14
|
-
{'name': 'P', 'title': 'Paragraph', 'css': 'wym_containers_p'},
|
15
|
-
{'name': 'H1', 'title': 'Heading_1', 'css': 'wym_containers_h1'},
|
16
|
-
{'name': 'H2', 'title': 'Heading_2', 'css': 'wym_containers_h2'},
|
17
|
-
{'name': 'H3', 'title': 'Heading_3', 'css': 'wym_containers_h3'},
|
18
|
-
{'name': 'PRE', 'title': 'Preformatted', 'css': 'wym_containers_pre'},
|
19
|
-
{'name': 'BLOCKQUOTE', 'title': 'Blockquote', 'css': 'wym_containers_blockquote'},
|
20
|
-
],
|
21
|
-
lang: '<%= I18n.locale.to_s.split("-").first %>'
|
22
|
-
});
|
23
|
-
});
|
24
|
-
|
25
|
-
</script>
|
26
|
-
<% end %>
|
27
|
-
|
28
1
|
<table class="admin-report" width="545">
|
29
2
|
<tr>
|
30
3
|
<td valign="top"><%=t("ext_static_content_title")%>:</td>
|
@@ -35,8 +8,10 @@
|
|
35
8
|
<td><%= f.text_field :slug, {"style" => "width:500px"} %></td>
|
36
9
|
</tr>
|
37
10
|
<tr>
|
38
|
-
<td valign="top"
|
39
|
-
|
11
|
+
<td valign="top" colspan="2">
|
12
|
+
<%=t("ext_static_content_body")%>:<br />
|
13
|
+
<%= f.text_area :body, {"style" => "width:100%"} %>
|
14
|
+
</td>
|
40
15
|
</tr>
|
41
16
|
<tr>
|
42
17
|
<td valign="top"><%=t("ext_static_content_foreign_link")%>:</td>
|
@@ -75,3 +50,4 @@
|
|
75
50
|
<td><%= f.check_box :visible %></td>
|
76
51
|
</tr>
|
77
52
|
</table>
|
53
|
+
<%= rich_editor(:id => 'page_body', :object => @page) %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<% form_for(:page, :url => object_url, :html => { :method => :put }) do |f| -%>
|
7
7
|
<%= render :partial => "form", :locals => { :f => f } %>
|
8
8
|
<p class="form-buttons">
|
9
|
-
<%= button t("actions.update"), nil, 'submit'
|
9
|
+
<%= button t("actions.update"), nil, 'submit' %>
|
10
10
|
<%= t("or") %> <%= link_to t("actions.cancel"), collection_url %>
|
11
11
|
</p>
|
12
12
|
<% end %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<% form_for(:page, :url => collection_url) do |f| %>
|
7
7
|
<%= render :partial => "form", :locals => { :f => f } %>
|
8
8
|
<p class="form-buttons">
|
9
|
-
<%= button t("actions.create"), nil, 'submit'
|
9
|
+
<%= button t("actions.create"), nil, 'submit' %>
|
10
10
|
<%= t("or") %> <%= link_to t("actions.cancel"), collection_url %>
|
11
11
|
</p>
|
12
12
|
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
ru
|
2
|
+
ru:
|
3
3
|
pages: "Страницы"
|
4
4
|
ext_static_content_static_pages: "Статические страницы"
|
5
5
|
ext_static_content_static_pages_desc: "Управление статическими страницами"
|
@@ -11,6 +11,7 @@ ru-RU:
|
|
11
11
|
ext_static_content_foreign_link: "Внешняя ссылка (URL)"
|
12
12
|
ext_static_content_show_in_header: "Отображать в верхнем меню"
|
13
13
|
ext_static_content_show_in_footer: "Отображать в нижнем меню"
|
14
|
+
ext_static_content_show_in_sidebar: "Отображать в боковом меню"
|
14
15
|
ext_static_content_position: "Позиция в меню"
|
15
16
|
ext_static_content_visible: "Публиковать"
|
16
17
|
ext_static_content_confirm_delete: "Вы уверены, что хотите удалить страницу?"
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{spree_static_content}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.40.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Peter Berkenbosch", "Roman Smirnov"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-20}
|
13
13
|
s.description = %q{Extention to manage the static pages for your Spree shop.}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.rdoc"
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
"config/locales/nl-NL.yml",
|
37
37
|
"config/locales/pl.yml",
|
38
38
|
"config/locales/pt-BR.yml",
|
39
|
-
"config/locales/ru
|
39
|
+
"config/locales/ru.yml",
|
40
40
|
"config/routes.rb",
|
41
41
|
"lib/generators/spree_static_content/install_generator.rb",
|
42
42
|
"lib/generators/templates/db/migrate/20081216193152_create_pages.rb",
|
@@ -47,68 +47,6 @@ Gem::Specification.new do |s|
|
|
47
47
|
"lib/generators/templates/db/migrate/20091219021134_add_meta_fields_to_pages.rb",
|
48
48
|
"lib/generators/templates/db/migrate/20100204105222_add_layout_to_pages.rb",
|
49
49
|
"lib/generators/templates/db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb",
|
50
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-blockquote.png",
|
51
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h1.png",
|
52
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h2.png",
|
53
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h3.png",
|
54
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h4.png",
|
55
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h5.png",
|
56
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h6.png",
|
57
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-p.png",
|
58
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-pre.png",
|
59
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/wymiframe.css",
|
60
|
-
"lib/generators/templates/public/javascripts/wymeditor/iframe/default/wymiframe.html",
|
61
|
-
"lib/generators/templates/public/javascripts/wymeditor/jquery.wymeditor.js",
|
62
|
-
"lib/generators/templates/public/javascripts/wymeditor/jquery.wymeditor.pack.js",
|
63
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/ca.js",
|
64
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/cs.js",
|
65
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/de.js",
|
66
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/en.js",
|
67
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/es.js",
|
68
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/fa.js",
|
69
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/fr.js",
|
70
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/he.js",
|
71
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/hu.js",
|
72
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/it.js",
|
73
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/nb.js",
|
74
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/nl.js",
|
75
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/nn.js",
|
76
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/pl.js",
|
77
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/pt-br.js",
|
78
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/pt.js",
|
79
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/ru.js",
|
80
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/sv.js",
|
81
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/tr.js",
|
82
|
-
"lib/generators/templates/public/javascripts/wymeditor/lang/zh_cn.js",
|
83
|
-
"lib/generators/templates/public/javascripts/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js",
|
84
|
-
"lib/generators/templates/public/javascripts/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js",
|
85
|
-
"lib/generators/templates/public/javascripts/wymeditor/plugins/resizable/readme.txt",
|
86
|
-
"lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/README",
|
87
|
-
"lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js",
|
88
|
-
"lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/tidy.php",
|
89
|
-
"lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/wand.png",
|
90
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/default/icons.png",
|
91
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/default/skin.css",
|
92
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/default/skin.js",
|
93
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.header.gif",
|
94
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.selector.silver.gif",
|
95
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.wymeditor.png",
|
96
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/icons.silver.gif",
|
97
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/minimal/skin.css",
|
98
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/minimal/skin.js",
|
99
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/silver/COPYING",
|
100
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/silver/README",
|
101
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.header.gif",
|
102
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.selector.silver.gif",
|
103
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.wymeditor.png",
|
104
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/icons.silver.gif",
|
105
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/silver/skin.css",
|
106
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/silver/skin.js",
|
107
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/icons.png",
|
108
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/skin.css",
|
109
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/skin.js",
|
110
|
-
"lib/generators/templates/public/javascripts/wymeditor/skins/wymeditor_icon.png",
|
111
|
-
"lib/generators/templates/public/stylesheets/static.css",
|
112
50
|
"lib/spree_static_content.rb",
|
113
51
|
"lib/spree_static_content_hooks.rb",
|
114
52
|
"spec/controllers/admin/pages_controller_spec.rb",
|
@@ -135,12 +73,15 @@ Gem::Specification.new do |s|
|
|
135
73
|
s.specification_version = 3
|
136
74
|
|
137
75
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
138
|
-
s.add_runtime_dependency(%q<spree_core>, [">= 0.30.0
|
76
|
+
s.add_runtime_dependency(%q<spree_core>, [">= 0.30.0"])
|
77
|
+
s.add_runtime_dependency(%q<spree_editor>, [">= 0"])
|
139
78
|
else
|
140
|
-
s.add_dependency(%q<spree_core>, [">= 0.30.0
|
79
|
+
s.add_dependency(%q<spree_core>, [">= 0.30.0"])
|
80
|
+
s.add_dependency(%q<spree_editor>, [">= 0"])
|
141
81
|
end
|
142
82
|
else
|
143
|
-
s.add_dependency(%q<spree_core>, [">= 0.30.0
|
83
|
+
s.add_dependency(%q<spree_core>, [">= 0.30.0"])
|
84
|
+
s.add_dependency(%q<spree_editor>, [">= 0"])
|
144
85
|
end
|
145
86
|
end
|
146
87
|
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 40
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.40.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Peter Berkenbosch
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-20 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -29,10 +29,21 @@ dependencies:
|
|
29
29
|
- 0
|
30
30
|
- 30
|
31
31
|
- 0
|
32
|
-
|
33
|
-
version: 0.30.0.beta1
|
32
|
+
version: 0.30.0
|
34
33
|
type: :runtime
|
35
34
|
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: spree_editor
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
version: "0"
|
45
|
+
type: :runtime
|
46
|
+
version_requirements: *id002
|
36
47
|
description: Extention to manage the static pages for your Spree shop.
|
37
48
|
email:
|
38
49
|
executables: []
|
@@ -63,7 +74,7 @@ files:
|
|
63
74
|
- config/locales/nl-NL.yml
|
64
75
|
- config/locales/pl.yml
|
65
76
|
- config/locales/pt-BR.yml
|
66
|
-
- config/locales/ru
|
77
|
+
- config/locales/ru.yml
|
67
78
|
- config/routes.rb
|
68
79
|
- lib/generators/spree_static_content/install_generator.rb
|
69
80
|
- lib/generators/templates/db/migrate/20081216193152_create_pages.rb
|
@@ -74,68 +85,6 @@ files:
|
|
74
85
|
- lib/generators/templates/db/migrate/20091219021134_add_meta_fields_to_pages.rb
|
75
86
|
- lib/generators/templates/db/migrate/20100204105222_add_layout_to_pages.rb
|
76
87
|
- lib/generators/templates/db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb
|
77
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-blockquote.png
|
78
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h1.png
|
79
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h2.png
|
80
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h3.png
|
81
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h4.png
|
82
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h5.png
|
83
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-h6.png
|
84
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-p.png
|
85
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-pre.png
|
86
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/wymiframe.css
|
87
|
-
- lib/generators/templates/public/javascripts/wymeditor/iframe/default/wymiframe.html
|
88
|
-
- lib/generators/templates/public/javascripts/wymeditor/jquery.wymeditor.js
|
89
|
-
- lib/generators/templates/public/javascripts/wymeditor/jquery.wymeditor.pack.js
|
90
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/ca.js
|
91
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/cs.js
|
92
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/de.js
|
93
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/en.js
|
94
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/es.js
|
95
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/fa.js
|
96
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/fr.js
|
97
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/he.js
|
98
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/hu.js
|
99
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/it.js
|
100
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/nb.js
|
101
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/nl.js
|
102
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/nn.js
|
103
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/pl.js
|
104
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/pt-br.js
|
105
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/pt.js
|
106
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/ru.js
|
107
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/sv.js
|
108
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/tr.js
|
109
|
-
- lib/generators/templates/public/javascripts/wymeditor/lang/zh_cn.js
|
110
|
-
- lib/generators/templates/public/javascripts/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js
|
111
|
-
- lib/generators/templates/public/javascripts/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js
|
112
|
-
- lib/generators/templates/public/javascripts/wymeditor/plugins/resizable/readme.txt
|
113
|
-
- lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/README
|
114
|
-
- lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js
|
115
|
-
- lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/tidy.php
|
116
|
-
- lib/generators/templates/public/javascripts/wymeditor/plugins/tidy/wand.png
|
117
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/default/icons.png
|
118
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/default/skin.css
|
119
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/default/skin.js
|
120
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.header.gif
|
121
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.selector.silver.gif
|
122
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/bg.wymeditor.png
|
123
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/minimal/images/icons.silver.gif
|
124
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/minimal/skin.css
|
125
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/minimal/skin.js
|
126
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/silver/COPYING
|
127
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/silver/README
|
128
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.header.gif
|
129
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.selector.silver.gif
|
130
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/bg.wymeditor.png
|
131
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/silver/images/icons.silver.gif
|
132
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/silver/skin.css
|
133
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/silver/skin.js
|
134
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/icons.png
|
135
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/skin.css
|
136
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/twopanels/skin.js
|
137
|
-
- lib/generators/templates/public/javascripts/wymeditor/skins/wymeditor_icon.png
|
138
|
-
- lib/generators/templates/public/stylesheets/static.css
|
139
88
|
- lib/spree_static_content.rb
|
140
89
|
- lib/spree_static_content_hooks.rb
|
141
90
|
- spec/controllers/admin/pages_controller_spec.rb
|
data/lib/generators/templates/public/javascripts/wymeditor/iframe/default/lbl-blockquote.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,90 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
-
* Copyright (c) 2008 Jean-Francois Hovinne, http://www.wymeditor.org/
|
4
|
-
* Dual licensed under the MIT (MIT-license.txt)
|
5
|
-
* and GPL (GPL-license.txt) licenses.
|
6
|
-
*
|
7
|
-
* For further information visit:
|
8
|
-
* http://www.wymeditor.org/
|
9
|
-
*
|
10
|
-
* File Name:
|
11
|
-
* wymeditor.css
|
12
|
-
* Main editor css file.
|
13
|
-
* See the documentation for more info.
|
14
|
-
*
|
15
|
-
* File Authors:
|
16
|
-
* Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
|
17
|
-
* Daniel Reszka (d.reszka a-t wymeditor dotorg)
|
18
|
-
*/
|
19
|
-
|
20
|
-
/* VISUAL FEEDBACK */
|
21
|
-
|
22
|
-
/* basic */
|
23
|
-
body { background: #e1e8f1;}
|
24
|
-
|
25
|
-
/* make HTML blocs visible */
|
26
|
-
p,
|
27
|
-
h1,
|
28
|
-
h2,
|
29
|
-
h3,
|
30
|
-
h4,
|
31
|
-
h5,
|
32
|
-
h6,
|
33
|
-
ul,
|
34
|
-
ol,
|
35
|
-
table,
|
36
|
-
blockquote,
|
37
|
-
pre { background: #FFFFFF no-repeat 2px 2px;
|
38
|
-
padding:8px 5px 5px;
|
39
|
-
margin:10px; }
|
40
|
-
td { background: #F0F4F8; }
|
41
|
-
th { background: #ffffcc; }
|
42
|
-
ul,
|
43
|
-
ol { border-left:20px solid #B9C4D0; padding:0px 5px; }
|
44
|
-
caption { background: #E4E4B0; padding: 5px; font-weight: bold; }
|
45
|
-
table { font-size: 12px; width: 500px; }
|
46
|
-
td { width: 25%; }
|
47
|
-
blockquote { margin-left: 30px; }
|
48
|
-
pre { background-color:transparent; border: 1px solid white; }
|
49
|
-
|
50
|
-
/* Gecko min height fix */
|
51
|
-
p { min-height: 1em; } /*min-height is needed under Firefox, because empty parargraphs */
|
52
|
-
*+html p { min-height: auto; } /* but we have to remove it under IE7 because it triggers the 'haslayout' mode */
|
53
|
-
td { height: 1.6em; }
|
54
|
-
|
55
|
-
/* labels */
|
56
|
-
p { background-image: url(lbl-p.png); }
|
57
|
-
h1 { background-image: url(lbl-h1.png); }
|
58
|
-
h2 { background-image: url(lbl-h2.png); }
|
59
|
-
h3 { background-image: url(lbl-h3.png); }
|
60
|
-
h4 { background-image: url(lbl-h4.png); }
|
61
|
-
h5 { background-image: url(lbl-h5.png); }
|
62
|
-
h6 { background-image: url(lbl-h6.png); }
|
63
|
-
blockquote{ background-image: url(lbl-blockquote.png); }
|
64
|
-
pre { background-image: url(lbl-pre.png); }
|
65
|
-
|
66
|
-
/* specific HTML elements */
|
67
|
-
caption { text-align: left; }
|
68
|
-
img { margin-right: 5px;
|
69
|
-
border-style: solid;
|
70
|
-
border-color: gray;
|
71
|
-
border-width: 0; }
|
72
|
-
a img { border-width: 1px; border-color: blue; }
|
73
|
-
acronym { border: 1px solid gray; }
|
74
|
-
span { background-color: #eef; }
|
75
|
-
|
76
|
-
/* visual feedback for non-valid nesting of elements*/
|
77
|
-
h1 h1, h1 h2, h1 h3, h1 h4, h1 h5, h1 h6, h1 p, h1 pre, h1 address,
|
78
|
-
h2 h1, h2 h2, h2 h3, h2 h4, h2 h5, h2 h6, h2 p, h2 pre, h2 address,
|
79
|
-
h3 h1, h3 h2, h3 h3, h3 h4, h3 h5, h3 h6, h3 p, h3 pre, h3 address,
|
80
|
-
h4 h1, h4 h2, h4 h3, h4 h4, h4 h5, h4 h6, h4 p, h4 pre, h4 address,
|
81
|
-
h5 h1, h5 h2, h5 h3, h5 h4, h5 h5, h5 h6, h5 p, h5 pre, h5 address,
|
82
|
-
h6 h1, h6 h2, h6 h3, h6 h4, h6 h4, h6 h6, h6 p, h6 pre, h6 address,
|
83
|
-
p h1, p h2, p h3, p h4, p h5, p h6, p pre, p address,
|
84
|
-
pre h1, pre h2, pre h3, pre h4, pre h5, pre h6, pre p, pre pre, pre address,
|
85
|
-
address h1, address h2, address h3, address h4, address h5, address h6,
|
86
|
-
address p, address pre, address address
|
87
|
-
{ background-color: #ff9999 !important;
|
88
|
-
border: 1px solid red !important;
|
89
|
-
font-size: 12px !important;
|
90
|
-
font-weight: normal; }
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<!--
|
3
|
-
* WYMeditor : what you see is What You Mean web-based editor
|
4
|
-
* Copyright (c) 2008 Jean-Francois Hovinne, http://www.wymeditor.org/
|
5
|
-
* Dual licensed under the MIT (MIT-license.txt)
|
6
|
-
* and GPL (GPL-license.txt) licenses.
|
7
|
-
*
|
8
|
-
* For further information visit:
|
9
|
-
* http://www.wymeditor.org/
|
10
|
-
*
|
11
|
-
* File Name:
|
12
|
-
* wymiframe.html
|
13
|
-
* Iframe used by designMode.
|
14
|
-
* See the documentation for more info.
|
15
|
-
*
|
16
|
-
* File Authors:
|
17
|
-
* Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
|
18
|
-
-->
|
19
|
-
<html>
|
20
|
-
<head>
|
21
|
-
<title>WYMeditor iframe</title>
|
22
|
-
<link rel="stylesheet" type="text/css" media="screen" href="wymiframe.css" />
|
23
|
-
</head>
|
24
|
-
<body class="wym_iframe"></body>
|
25
|
-
</html>
|