comfortable_mexican_sofa 1.3.8 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/app/assets/javascripts/comfortable_mexican_sofa/application.js +38 -25
- data/app/assets/javascripts/comfortable_mexican_sofa/jquery_ui.js +176 -174
- data/app/assets/stylesheets/comfortable_mexican_sofa/content.css +142 -32
- data/app/assets/stylesheets/comfortable_mexican_sofa/form.css +12 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/jquery_ui.css +16 -16
- data/app/assets/stylesheets/comfortable_mexican_sofa/structure.css +3 -2
- data/app/assets/stylesheets/comfortable_mexican_sofa/widgets.css +2 -1
- data/app/controllers/cms_admin/categories_controller.rb +33 -0
- data/app/controllers/cms_admin/files_controller.rb +82 -0
- data/app/controllers/cms_admin/pages_controller.rb +8 -4
- data/app/controllers/cms_admin/snippets_controller.rb +1 -1
- data/app/models/cms/categorization.rb +17 -0
- data/app/models/cms/category.rb +22 -0
- data/app/models/cms/{upload.rb → file.rb} +17 -3
- data/app/models/cms/page.rb +1 -0
- data/app/models/cms/site.rb +1 -1
- data/app/models/cms/snippet.rb +2 -0
- data/app/views/cms_admin/categories/_categories.html.erb +6 -0
- data/app/views/cms_admin/categories/_edit.html.erb +7 -0
- data/app/views/cms_admin/categories/_form.html.erb +12 -0
- data/app/views/cms_admin/categories/_index.html.erb +31 -0
- data/app/views/cms_admin/categories/_show.html.erb +16 -0
- data/app/views/cms_admin/categories/create.js.erb +7 -0
- data/app/views/cms_admin/categories/destroy.js.erb +3 -0
- data/app/views/cms_admin/categories/edit.js.erb +3 -0
- data/app/views/cms_admin/categories/update.js.erb +6 -0
- data/app/views/cms_admin/{uploads → files}/_file.html.erb +1 -1
- data/app/views/cms_admin/files/_form.html.erb +15 -0
- data/app/views/cms_admin/files/_index.html.erb +13 -0
- data/app/views/cms_admin/files/create.js.erb +3 -0
- data/app/views/cms_admin/files/destroy.js.erb +3 -0
- data/app/views/cms_admin/files/edit.html.erb +5 -0
- data/app/views/cms_admin/files/index.html.erb +25 -0
- data/app/views/cms_admin/files/new.html.erb +5 -0
- data/app/views/cms_admin/layouts/_form.html.erb +1 -1
- data/app/views/cms_admin/pages/_form.html.erb +3 -1
- data/app/views/cms_admin/pages/_index_branch.html.erb +6 -4
- data/app/views/cms_admin/pages/index.html.erb +2 -0
- data/app/views/cms_admin/snippets/_form.html.erb +3 -1
- data/app/views/cms_admin/snippets/index.html.erb +3 -0
- data/app/views/layouts/cms_admin/_head.html.erb +2 -6
- data/app/views/layouts/cms_admin/_left.html.erb +1 -0
- data/comfortable_mexican_sofa.gemspec +44 -21
- data/config/database.yml +2 -8
- data/config/locales/en.yml +35 -2
- data/config/locales/es.yml +38 -5
- data/config/routes.rb +3 -2
- data/db/migrate/01_create_cms.rb +23 -4
- data/db/migrate/upgrades/05_upgrade_to_1_4_0.rb +33 -0
- data/lib/comfortable_mexican_sofa.rb +6 -5
- data/lib/comfortable_mexican_sofa/{acts_as_tree.rb → extensions/acts_as_tree.rb} +0 -0
- data/lib/comfortable_mexican_sofa/{has_revisions.rb → extensions/has_revisions.rb} +0 -0
- data/lib/comfortable_mexican_sofa/extensions/is_categorized.rb +45 -0
- data/lib/comfortable_mexican_sofa/{is_mirrored.rb → extensions/is_mirrored.rb} +0 -0
- data/lib/comfortable_mexican_sofa/{rails_extensions.rb → extensions/rails.rb} +0 -0
- data/lib/comfortable_mexican_sofa/tag.rb +2 -2
- data/lib/comfortable_mexican_sofa/tags/{upload.rb → file.rb} +6 -6
- data/test/fixtures/cms/categories.yml +3 -0
- data/test/fixtures/cms/categorizations.yml +3 -0
- data/test/fixtures/cms/{uploads.yml → files.yml} +3 -1
- data/test/functional/cms_admin/categories_controller_test.rb +70 -0
- data/test/functional/cms_admin/files_controller_test.rb +168 -0
- data/test/functional/cms_admin/pages_controller_test.rb +19 -1
- data/test/functional/cms_admin/snippets_controller_test.rb +18 -0
- data/test/unit/models/block_test.rb +1 -1
- data/test/unit/models/categorization_test.rb +76 -0
- data/test/unit/models/category_test.rb +39 -0
- data/test/unit/models/file_test.rb +33 -0
- data/test/unit/models/site_test.rb +9 -0
- data/test/unit/tags/asset_test.rb +1 -1
- data/test/unit/tags/field_datetime_test.rb +1 -1
- data/test/unit/tags/field_integer_test.rb +1 -1
- data/test/unit/tags/field_string_test.rb +1 -1
- data/test/unit/tags/field_text_test.rb +1 -1
- data/test/unit/tags/file_test.rb +67 -0
- data/test/unit/tags/helper_test.rb +1 -1
- data/test/unit/tags/page_datetime_test.rb +1 -1
- data/test/unit/tags/page_integer_test.rb +1 -1
- data/test/unit/tags/page_rich_text.rb +1 -1
- data/test/unit/tags/page_string_test.rb +1 -1
- data/test/unit/tags/page_text_test.rb +1 -1
- data/test/unit/tags/partial_test.rb +1 -1
- data/test/unit/tags/snippet_test.rb +1 -1
- metadata +49 -26
- data/app/assets/javascripts/comfortable_mexican_sofa/plupload/plupload.html5.js +0 -1
- data/app/assets/javascripts/comfortable_mexican_sofa/plupload/plupload.js +0 -2
- data/app/controllers/cms_admin/uploads_controller.rb +0 -29
- data/app/views/cms_admin/uploads/_index.html.erb +0 -10
- data/app/views/cms_admin/uploads/destroy.js.erb +0 -3
- data/test/functional/cms_admin/uploads_controller_test.rb +0 -26
- data/test/unit/models/upload_test.rb +0 -32
- data/test/unit/tags/upload_test.rb +0 -67
@@ -6,7 +6,7 @@
|
|
6
6
|
</label>
|
7
7
|
<button></button>
|
8
8
|
</div>
|
9
|
-
<%= render :partial => 'cms_admin/
|
9
|
+
<%= render :partial => 'cms_admin/files/index' %>
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<%= form.text_field :label, :id => (@page.new_record?? 'slugify' : nil) %>
|
@@ -29,6 +29,8 @@
|
|
29
29
|
|
30
30
|
<%= render :partial => 'form_blocks' %>
|
31
31
|
|
32
|
+
<%= render :partial => 'cms_admin/categories/form', :object => form %>
|
33
|
+
|
32
34
|
<%= form.simple_field nil, nil, :class => 'submit_element' do %>
|
33
35
|
<%= form.check_box :is_published, :disable_builder => true %>
|
34
36
|
<%= form.label_for :is_published %>
|
@@ -3,35 +3,37 @@
|
|
3
3
|
has_children = page.children.present?
|
4
4
|
has_siblings = page.siblings.present?
|
5
5
|
branch_open = (session[:cms_page_tree] || []).member?(page.id.to_s) || page.root?
|
6
|
+
category_view = params[:category].present?
|
6
7
|
%>
|
7
8
|
|
8
9
|
<li id='<%= dom_id(page) %>'>
|
9
10
|
<div class='item'>
|
10
11
|
<div class='toggle <%= 'open' if branch_open %>'>
|
11
12
|
<%=
|
12
|
-
if has_children && !page.root?
|
13
|
+
if !category_view && has_children && !page.root?
|
13
14
|
link_to span_tag(t('.toggle')), toggle_branch_cms_admin_site_page_path(@site, page), :remote => true
|
14
15
|
end
|
15
16
|
%>
|
16
17
|
</div>
|
17
18
|
<div class='icon'>
|
18
|
-
<% if has_siblings %>
|
19
|
+
<% if !category_view && has_siblings %>
|
19
20
|
<div class='dragger'><span><%= t('cms.views.pages.drag') %></span></div>
|
20
21
|
<% end %>
|
21
22
|
</div>
|
22
23
|
<div class='action_links'>
|
23
|
-
<%= link_to t('.
|
24
|
+
<%= link_to t('.add_child_page'), new_cms_admin_site_page_path(@site, :parent_id => page.id) %>
|
24
25
|
<%= link_to t('.edit'), edit_cms_admin_site_page_path(@site, page) %>
|
25
26
|
<%= link_to t('.delete'), cms_admin_site_page_path(@site, page), :method => :delete, :confirm => t('.are_you_sure') %>
|
26
27
|
</div>
|
27
28
|
<div class='label'>
|
28
29
|
<%= link_to page.label, edit_cms_admin_site_page_path(@site, page) %>
|
30
|
+
<%= render :partial => '/cms_admin/categories/categories', :object => page %>
|
29
31
|
<div class='sublabel'>
|
30
32
|
<%= link_to page.url, page.full_path, :target => '_blank' %>
|
31
33
|
</div>
|
32
34
|
</div>
|
33
35
|
</div>
|
34
|
-
<% if has_children && branch_open %>
|
36
|
+
<% if !category_view && has_children && branch_open %>
|
35
37
|
<ul>
|
36
38
|
<%= render :partial => 'index_branch', :collection => page.children %>
|
37
39
|
</ul>
|
@@ -1,11 +1,13 @@
|
|
1
1
|
<% content_for :right_column do %>
|
2
|
-
<%= render :partial => 'cms_admin/
|
2
|
+
<%= render :partial => 'cms_admin/files/index' %>
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<%= form.text_field :label, :id => (@snippet.new_record?? 'slugify' : nil) %>
|
6
6
|
<%= form.text_field :slug, :id => 'slug', :class => 'delimiter-underscore' %>
|
7
7
|
<%= form.text_area :content, :class => 'code' %>
|
8
8
|
|
9
|
+
<%= render :partial => 'cms_admin/categories/form', :object => form %>
|
10
|
+
|
9
11
|
<%= form.simple_field nil, nil, :class => 'submit_element' do %>
|
10
12
|
<%= form.submit t(@snippet.new_record?? '.create' : '.update'), :disable_builder => true %>
|
11
13
|
<% end %>
|
@@ -5,6 +5,8 @@
|
|
5
5
|
<%= render :partial => 'cms_admin/sites/mirrors' %>
|
6
6
|
<% end %>
|
7
7
|
|
8
|
+
<%= render :partial => 'cms_admin/categories/index', :object => 'Cms::Snippet' %>
|
9
|
+
|
8
10
|
<ul class='list'>
|
9
11
|
<% @snippets.each do |snippet| %>
|
10
12
|
<li id='cms_snippet_<%= snippet.id %>'>
|
@@ -16,6 +18,7 @@
|
|
16
18
|
</div>
|
17
19
|
<div class='label'>
|
18
20
|
<%= link_to snippet.label, edit_cms_admin_site_snippet_path(@site, snippet) %>
|
21
|
+
<%= render :partial => '/cms_admin/categories/categories', :object => snippet %>
|
19
22
|
<div class='sublabel'>
|
20
23
|
<%= link_to snippet.slug, edit_cms_admin_site_snippet_path(@site, snippet) %>
|
21
24
|
</div>
|
@@ -13,8 +13,6 @@
|
|
13
13
|
<%= javascript_include_tag 'comfortable_mexican_sofa/application' %>
|
14
14
|
<%= javascript_include_tag 'comfortable_mexican_sofa/wymeditor/jquery.wymeditor.pack.js' %>
|
15
15
|
<%= javascript_include_tag 'comfortable_mexican_sofa/wymeditor/jquery.wymeditor.cms.js' %>
|
16
|
-
<%= javascript_include_tag 'comfortable_mexican_sofa/plupload/plupload.js' %>
|
17
|
-
<%= javascript_include_tag 'comfortable_mexican_sofa/plupload/plupload.html5.js' %>
|
18
16
|
|
19
17
|
<% else %>
|
20
18
|
|
@@ -23,15 +21,13 @@
|
|
23
21
|
'comfortable_mexican_sofa/typography',
|
24
22
|
'comfortable_mexican_sofa/form',
|
25
23
|
'comfortable_mexican_sofa/content',
|
26
|
-
'comfortable_mexican_sofa/widgets',
|
27
24
|
'comfortable_mexican_sofa/codemirror',
|
28
|
-
'comfortable_mexican_sofa/jquery_ui'
|
25
|
+
'comfortable_mexican_sofa/jquery_ui',
|
26
|
+
'comfortable_mexican_sofa/widgets' %>
|
29
27
|
<%= javascript_include_tag 'comfortable_mexican_sofa/jquery',
|
30
28
|
'comfortable_mexican_sofa/jquery_ui',
|
31
29
|
'comfortable_mexican_sofa/rails',
|
32
30
|
'comfortable_mexican_sofa/codemirror/codemirror',
|
33
|
-
'comfortable_mexican_sofa/plupload/plupload',
|
34
|
-
'comfortable_mexican_sofa/plupload/plupload.html5',
|
35
31
|
'comfortable_mexican_sofa/application' %>
|
36
32
|
<%= javascript_include_tag 'comfortable_mexican_sofa/wymeditor/jquery.wymeditor.pack',
|
37
33
|
'comfortable_mexican_sofa/wymeditor/jquery.wymeditor.cms' %>
|
@@ -4,6 +4,7 @@
|
|
4
4
|
<li><%= active_link_to t('cms_admin.base.layouts'), cms_admin_site_layouts_path(@site) %></li>
|
5
5
|
<li><%= active_link_to t('cms_admin.base.pages'), cms_admin_site_pages_path(@site) %></li>
|
6
6
|
<li><%= active_link_to t('cms_admin.base.snippets'), cms_admin_site_snippets_path(@site) %></li>
|
7
|
+
<li><%= active_link_to t('cms_admin.base.files'), cms_admin_site_files_path(@site) %></li>
|
7
8
|
<% end %>
|
8
9
|
<%= cms_hook :navigation %>
|
9
10
|
</ul>
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{comfortable_mexican_sofa}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oleg Khabarov", "The Working Group Inc"]
|
12
|
-
s.date = %q{2011-08-
|
12
|
+
s.date = %q{2011-08-26}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{oleg@theworkinggroup.ca}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -37,6 +37,7 @@ Gem::Specification.new do |s|
|
|
37
37
|
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_e6e6e6_1x400.png",
|
38
38
|
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_95_fef1ec_1x400.png",
|
39
39
|
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_highlight-soft_75_cccccc_1x100.png",
|
40
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_inset-soft_95_fef1ec_1x100.png",
|
40
41
|
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_222222_256x240.png",
|
41
42
|
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_2e83ff_256x240.png",
|
42
43
|
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_454545_256x240.png",
|
@@ -47,8 +48,6 @@ Gem::Specification.new do |s|
|
|
47
48
|
"app/assets/javascripts/comfortable_mexican_sofa/codemirror/codemirror.js",
|
48
49
|
"app/assets/javascripts/comfortable_mexican_sofa/jquery.js",
|
49
50
|
"app/assets/javascripts/comfortable_mexican_sofa/jquery_ui.js",
|
50
|
-
"app/assets/javascripts/comfortable_mexican_sofa/plupload/plupload.html5.js",
|
51
|
-
"app/assets/javascripts/comfortable_mexican_sofa/plupload/plupload.js",
|
52
51
|
"app/assets/javascripts/comfortable_mexican_sofa/rails.js",
|
53
52
|
"app/assets/javascripts/comfortable_mexican_sofa/wymeditor/iframe/default/lbl-blockquote.png",
|
54
53
|
"app/assets/javascripts/comfortable_mexican_sofa/wymeditor/iframe/default/lbl-h1.png",
|
@@ -99,20 +98,40 @@ Gem::Specification.new do |s|
|
|
99
98
|
"app/assets/stylesheets/comfortable_mexican_sofa/widgets.css",
|
100
99
|
"app/controllers/application_controller.rb",
|
101
100
|
"app/controllers/cms_admin/base_controller.rb",
|
101
|
+
"app/controllers/cms_admin/categories_controller.rb",
|
102
|
+
"app/controllers/cms_admin/files_controller.rb",
|
102
103
|
"app/controllers/cms_admin/layouts_controller.rb",
|
103
104
|
"app/controllers/cms_admin/pages_controller.rb",
|
104
105
|
"app/controllers/cms_admin/revisions_controller.rb",
|
105
106
|
"app/controllers/cms_admin/sites_controller.rb",
|
106
107
|
"app/controllers/cms_admin/snippets_controller.rb",
|
107
|
-
"app/controllers/cms_admin/uploads_controller.rb",
|
108
108
|
"app/controllers/cms_content_controller.rb",
|
109
109
|
"app/models/cms/block.rb",
|
110
|
+
"app/models/cms/categorization.rb",
|
111
|
+
"app/models/cms/category.rb",
|
112
|
+
"app/models/cms/file.rb",
|
110
113
|
"app/models/cms/layout.rb",
|
111
114
|
"app/models/cms/page.rb",
|
112
115
|
"app/models/cms/revision.rb",
|
113
116
|
"app/models/cms/site.rb",
|
114
117
|
"app/models/cms/snippet.rb",
|
115
|
-
"app/
|
118
|
+
"app/views/cms_admin/categories/_categories.html.erb",
|
119
|
+
"app/views/cms_admin/categories/_edit.html.erb",
|
120
|
+
"app/views/cms_admin/categories/_form.html.erb",
|
121
|
+
"app/views/cms_admin/categories/_index.html.erb",
|
122
|
+
"app/views/cms_admin/categories/_show.html.erb",
|
123
|
+
"app/views/cms_admin/categories/create.js.erb",
|
124
|
+
"app/views/cms_admin/categories/destroy.js.erb",
|
125
|
+
"app/views/cms_admin/categories/edit.js.erb",
|
126
|
+
"app/views/cms_admin/categories/update.js.erb",
|
127
|
+
"app/views/cms_admin/files/_file.html.erb",
|
128
|
+
"app/views/cms_admin/files/_form.html.erb",
|
129
|
+
"app/views/cms_admin/files/_index.html.erb",
|
130
|
+
"app/views/cms_admin/files/create.js.erb",
|
131
|
+
"app/views/cms_admin/files/destroy.js.erb",
|
132
|
+
"app/views/cms_admin/files/edit.html.erb",
|
133
|
+
"app/views/cms_admin/files/index.html.erb",
|
134
|
+
"app/views/cms_admin/files/new.html.erb",
|
116
135
|
"app/views/cms_admin/layouts/_form.html.erb",
|
117
136
|
"app/views/cms_admin/layouts/_index_branch.html.erb",
|
118
137
|
"app/views/cms_admin/layouts/edit.html.erb",
|
@@ -136,9 +155,6 @@ Gem::Specification.new do |s|
|
|
136
155
|
"app/views/cms_admin/snippets/edit.html.erb",
|
137
156
|
"app/views/cms_admin/snippets/index.html.erb",
|
138
157
|
"app/views/cms_admin/snippets/new.html.erb",
|
139
|
-
"app/views/cms_admin/uploads/_file.html.erb",
|
140
|
-
"app/views/cms_admin/uploads/_index.html.erb",
|
141
|
-
"app/views/cms_admin/uploads/destroy.js.erb",
|
142
158
|
"app/views/layouts/cms_admin.html.erb",
|
143
159
|
"app/views/layouts/cms_admin/_body.html.erb",
|
144
160
|
"app/views/layouts/cms_admin/_center.html.erb",
|
@@ -178,27 +194,30 @@ Gem::Specification.new do |s|
|
|
178
194
|
"db/migrate/upgrades/02_upgrade_to_1_1_0.rb",
|
179
195
|
"db/migrate/upgrades/03_upgrade_to_1_2_0.rb",
|
180
196
|
"db/migrate/upgrades/04_upgrade_to_1_3_0.rb",
|
197
|
+
"db/migrate/upgrades/05_upgrade_to_1_4_0.rb",
|
181
198
|
"db/seeds.rb",
|
182
199
|
"doc/page_editing.png",
|
183
200
|
"doc/sofa.png",
|
184
201
|
"lib/comfortable_mexican_sofa.rb",
|
185
|
-
"lib/comfortable_mexican_sofa/acts_as_tree.rb",
|
186
202
|
"lib/comfortable_mexican_sofa/configuration.rb",
|
187
203
|
"lib/comfortable_mexican_sofa/controller_methods.rb",
|
188
204
|
"lib/comfortable_mexican_sofa/engine.rb",
|
189
205
|
"lib/comfortable_mexican_sofa/error.rb",
|
206
|
+
"lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb",
|
207
|
+
"lib/comfortable_mexican_sofa/extensions/has_revisions.rb",
|
208
|
+
"lib/comfortable_mexican_sofa/extensions/is_categorized.rb",
|
209
|
+
"lib/comfortable_mexican_sofa/extensions/is_mirrored.rb",
|
210
|
+
"lib/comfortable_mexican_sofa/extensions/rails.rb",
|
190
211
|
"lib/comfortable_mexican_sofa/fixtures.rb",
|
191
212
|
"lib/comfortable_mexican_sofa/form_builder.rb",
|
192
|
-
"lib/comfortable_mexican_sofa/has_revisions.rb",
|
193
213
|
"lib/comfortable_mexican_sofa/http_auth.rb",
|
194
|
-
"lib/comfortable_mexican_sofa/is_mirrored.rb",
|
195
|
-
"lib/comfortable_mexican_sofa/rails_extensions.rb",
|
196
214
|
"lib/comfortable_mexican_sofa/tag.rb",
|
197
215
|
"lib/comfortable_mexican_sofa/tags/asset.rb",
|
198
216
|
"lib/comfortable_mexican_sofa/tags/field_datetime.rb",
|
199
217
|
"lib/comfortable_mexican_sofa/tags/field_integer.rb",
|
200
218
|
"lib/comfortable_mexican_sofa/tags/field_string.rb",
|
201
219
|
"lib/comfortable_mexican_sofa/tags/field_text.rb",
|
220
|
+
"lib/comfortable_mexican_sofa/tags/file.rb",
|
202
221
|
"lib/comfortable_mexican_sofa/tags/helper.rb",
|
203
222
|
"lib/comfortable_mexican_sofa/tags/page_datetime.rb",
|
204
223
|
"lib/comfortable_mexican_sofa/tags/page_integer.rb",
|
@@ -207,7 +226,6 @@ Gem::Specification.new do |s|
|
|
207
226
|
"lib/comfortable_mexican_sofa/tags/page_text.rb",
|
208
227
|
"lib/comfortable_mexican_sofa/tags/partial.rb",
|
209
228
|
"lib/comfortable_mexican_sofa/tags/snippet.rb",
|
210
|
-
"lib/comfortable_mexican_sofa/tags/upload.rb",
|
211
229
|
"lib/comfortable_mexican_sofa/version.rb",
|
212
230
|
"lib/comfortable_mexican_sofa/view_hooks.rb",
|
213
231
|
"lib/comfortable_mexican_sofa/view_methods.rb",
|
@@ -216,23 +234,26 @@ Gem::Specification.new do |s|
|
|
216
234
|
"lib/tasks/comfortable_mexican_sofa.rake",
|
217
235
|
"script/rails",
|
218
236
|
"test/fixtures/cms/blocks.yml",
|
237
|
+
"test/fixtures/cms/categories.yml",
|
238
|
+
"test/fixtures/cms/categorizations.yml",
|
239
|
+
"test/fixtures/cms/files.yml",
|
219
240
|
"test/fixtures/cms/layouts.yml",
|
220
241
|
"test/fixtures/cms/pages.yml",
|
221
242
|
"test/fixtures/cms/revisions.yml",
|
222
243
|
"test/fixtures/cms/sites.yml",
|
223
244
|
"test/fixtures/cms/snippets.yml",
|
224
|
-
"test/fixtures/cms/uploads.yml",
|
225
245
|
"test/fixtures/files/invalid_file.gif",
|
226
246
|
"test/fixtures/files/valid_image.jpg",
|
227
247
|
"test/fixtures/views/_nav_hook.html.erb",
|
228
248
|
"test/fixtures/views/_nav_hook_2.html.erb",
|
229
249
|
"test/functional/cms_admin/base_controller_test.rb",
|
250
|
+
"test/functional/cms_admin/categories_controller_test.rb",
|
251
|
+
"test/functional/cms_admin/files_controller_test.rb",
|
230
252
|
"test/functional/cms_admin/layouts_controller_test.rb",
|
231
253
|
"test/functional/cms_admin/pages_controller_test.rb",
|
232
254
|
"test/functional/cms_admin/revisions_controller_test.rb",
|
233
255
|
"test/functional/cms_admin/sites_controller_test.rb",
|
234
256
|
"test/functional/cms_admin/snippets_controller_test.rb",
|
235
|
-
"test/functional/cms_admin/uploads_controller_test.rb",
|
236
257
|
"test/functional/cms_content_controller_test.rb",
|
237
258
|
"test/integration/authentication_test.rb",
|
238
259
|
"test/integration/fixtures_test.rb",
|
@@ -247,11 +268,13 @@ Gem::Specification.new do |s|
|
|
247
268
|
"test/unit/form_builder_test.rb",
|
248
269
|
"test/unit/mirrors_test.rb",
|
249
270
|
"test/unit/models/block_test.rb",
|
271
|
+
"test/unit/models/categorization_test.rb",
|
272
|
+
"test/unit/models/category_test.rb",
|
273
|
+
"test/unit/models/file_test.rb",
|
250
274
|
"test/unit/models/layout_test.rb",
|
251
275
|
"test/unit/models/page_test.rb",
|
252
276
|
"test/unit/models/site_test.rb",
|
253
277
|
"test/unit/models/snippet_test.rb",
|
254
|
-
"test/unit/models/upload_test.rb",
|
255
278
|
"test/unit/revisions_test.rb",
|
256
279
|
"test/unit/tag_test.rb",
|
257
280
|
"test/unit/tags/asset_test.rb",
|
@@ -259,6 +282,7 @@ Gem::Specification.new do |s|
|
|
259
282
|
"test/unit/tags/field_integer_test.rb",
|
260
283
|
"test/unit/tags/field_string_test.rb",
|
261
284
|
"test/unit/tags/field_text_test.rb",
|
285
|
+
"test/unit/tags/file_test.rb",
|
262
286
|
"test/unit/tags/helper_test.rb",
|
263
287
|
"test/unit/tags/page_datetime_test.rb",
|
264
288
|
"test/unit/tags/page_integer_test.rb",
|
@@ -267,7 +291,6 @@ Gem::Specification.new do |s|
|
|
267
291
|
"test/unit/tags/page_text_test.rb",
|
268
292
|
"test/unit/tags/partial_test.rb",
|
269
293
|
"test/unit/tags/snippet_test.rb",
|
270
|
-
"test/unit/tags/upload_test.rb",
|
271
294
|
"test/unit/view_methods_test.rb"
|
272
295
|
]
|
273
296
|
s.homepage = %q{http://github.com/twg/comfortable-mexican-sofa}
|
@@ -279,16 +302,16 @@ Gem::Specification.new do |s|
|
|
279
302
|
s.specification_version = 3
|
280
303
|
|
281
304
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
282
|
-
s.add_runtime_dependency(%q<rails>, [">= 3.0.
|
305
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.1.0.rc6"])
|
283
306
|
s.add_runtime_dependency(%q<active_link_to>, [">= 1.0.0"])
|
284
307
|
s.add_runtime_dependency(%q<paperclip>, [">= 2.3.14"])
|
285
308
|
else
|
286
|
-
s.add_dependency(%q<rails>, [">= 3.0.
|
309
|
+
s.add_dependency(%q<rails>, [">= 3.1.0.rc6"])
|
287
310
|
s.add_dependency(%q<active_link_to>, [">= 1.0.0"])
|
288
311
|
s.add_dependency(%q<paperclip>, [">= 2.3.14"])
|
289
312
|
end
|
290
313
|
else
|
291
|
-
s.add_dependency(%q<rails>, [">= 3.0.
|
314
|
+
s.add_dependency(%q<rails>, [">= 3.1.0.rc6"])
|
292
315
|
s.add_dependency(%q<active_link_to>, [">= 1.0.0"])
|
293
316
|
s.add_dependency(%q<paperclip>, [">= 2.3.14"])
|
294
317
|
end
|
data/config/database.yml
CHANGED
@@ -4,7 +4,7 @@ development:
|
|
4
4
|
adapter: sqlite3
|
5
5
|
database: db/development.sqlite3
|
6
6
|
pool: 5
|
7
|
-
timeout:
|
7
|
+
timeout: 10000
|
8
8
|
|
9
9
|
# Warning: The database defined as "test" will be erased and
|
10
10
|
# re-generated from your development database when you run "rake".
|
@@ -13,10 +13,4 @@ test:
|
|
13
13
|
adapter: sqlite3
|
14
14
|
database: db/test.sqlite3
|
15
15
|
pool: 5
|
16
|
-
timeout:
|
17
|
-
|
18
|
-
production:
|
19
|
-
adapter: sqlite3
|
20
|
-
database: db/production.sqlite3
|
21
|
-
pool: 5
|
22
|
-
timeout: 5000
|
16
|
+
timeout: 10000
|
data/config/locales/en.yml
CHANGED
@@ -75,7 +75,13 @@ en:
|
|
75
75
|
record_not_found: Record Not Found
|
76
76
|
not_found: Revision Not Found
|
77
77
|
|
78
|
-
|
78
|
+
files:
|
79
|
+
created: Files uploaded
|
80
|
+
creation_failure: Failed to upload files
|
81
|
+
updated: File updated
|
82
|
+
update_failure: Failed to update file
|
83
|
+
deleted: File deleted
|
84
|
+
not_found: File not found
|
79
85
|
|
80
86
|
content:
|
81
87
|
site_not_found: Site Not Found
|
@@ -89,6 +95,7 @@ en:
|
|
89
95
|
layouts: Layouts
|
90
96
|
pages: Pages
|
91
97
|
snippets: Snippets
|
98
|
+
files: Files
|
92
99
|
|
93
100
|
sites:
|
94
101
|
index:
|
@@ -174,7 +181,33 @@ en:
|
|
174
181
|
slug: Slug
|
175
182
|
update: Update to this Revision
|
176
183
|
|
177
|
-
|
184
|
+
files:
|
178
185
|
index:
|
186
|
+
title: Files
|
187
|
+
new_link: Upload New File
|
188
|
+
edit: Edit
|
189
|
+
delete: Delete
|
190
|
+
are_you_sure: Are you sure?
|
179
191
|
button: Upload Files
|
192
|
+
new:
|
193
|
+
title: New File
|
194
|
+
edit:
|
195
|
+
title: Editing File
|
196
|
+
form:
|
197
|
+
create: Upload File
|
198
|
+
update: Update File
|
199
|
+
|
200
|
+
categories:
|
201
|
+
index:
|
202
|
+
label: Categories
|
203
|
+
edit: Edit
|
204
|
+
done: Done
|
205
|
+
all: All
|
206
|
+
add: Add
|
207
|
+
show:
|
208
|
+
are_you_sure: Are you sure?
|
209
|
+
edit:
|
210
|
+
save: Save
|
211
|
+
form:
|
212
|
+
label: Categories
|
180
213
|
|
data/config/locales/es.yml
CHANGED
@@ -75,7 +75,13 @@ es:
|
|
75
75
|
record_not_found: Registro no encontrado
|
76
76
|
not_found: Revisión no encontrada
|
77
77
|
|
78
|
-
|
78
|
+
files:
|
79
|
+
created: Files uploaded
|
80
|
+
creation_failure: Failed to upload files
|
81
|
+
updated: File updated
|
82
|
+
update_failure: Failed to update file
|
83
|
+
deleted: File deleted
|
84
|
+
not_found: File not found
|
79
85
|
|
80
86
|
content:
|
81
87
|
site_not_found: Sitio no encontrado
|
@@ -89,7 +95,8 @@ es:
|
|
89
95
|
layouts: Diseños
|
90
96
|
pages: Páginas
|
91
97
|
snippets: Fragmentos
|
92
|
-
|
98
|
+
files: Files
|
99
|
+
|
93
100
|
sites:
|
94
101
|
index:
|
95
102
|
title: Listado de Sitios
|
@@ -165,7 +172,7 @@ es:
|
|
165
172
|
form:
|
166
173
|
create: Crear Fragmento
|
167
174
|
update: Actualizar Fragmento
|
168
|
-
|
175
|
+
|
169
176
|
revisions:
|
170
177
|
show:
|
171
178
|
title: Revisiones de
|
@@ -173,7 +180,33 @@ es:
|
|
173
180
|
full_path: Ruta completa
|
174
181
|
slug: Identificador
|
175
182
|
update: Actualizar a esta versión
|
176
|
-
|
177
|
-
|
183
|
+
|
184
|
+
files:
|
178
185
|
index:
|
186
|
+
title: Files
|
187
|
+
new_link: Upload New File
|
188
|
+
edit: Edit
|
189
|
+
delete: Delete
|
190
|
+
are_you_sure: Are you sure?
|
179
191
|
button: Cargar Archivos
|
192
|
+
new:
|
193
|
+
title: New File
|
194
|
+
edit:
|
195
|
+
title: Editing File
|
196
|
+
form:
|
197
|
+
create: Upload File
|
198
|
+
update: Update File
|
199
|
+
|
200
|
+
categories:
|
201
|
+
index:
|
202
|
+
label: Categories
|
203
|
+
edit: Edit
|
204
|
+
done: Done
|
205
|
+
all: All
|
206
|
+
add: Add
|
207
|
+
show:
|
208
|
+
are_you_sure: Are you sure?
|
209
|
+
edit:
|
210
|
+
save: Save
|
211
|
+
form:
|
212
|
+
label: Categories
|