caboose-cms 0.5.201 → 0.5.202

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +8 -8
  2. data/app/assets/javascripts/caboose/admin_block_edit.js +20 -10
  3. data/app/assets/javascripts/caboose/admin_post_edit_content.js +313 -0
  4. data/app/assets/stylesheets/caboose/admin_post_edit_content.css +46 -0
  5. data/app/controllers/caboose/admin_controller.rb +4 -4
  6. data/app/controllers/caboose/application_controller.rb +35 -0
  7. data/app/controllers/caboose/blocks_controller.rb +120 -78
  8. data/app/controllers/caboose/checkout_controller.rb +6 -0
  9. data/app/controllers/caboose/posts_controller.rb +87 -21
  10. data/app/controllers/caboose/sites_controller.rb +13 -1
  11. data/app/models/caboose/block.rb +14 -4
  12. data/app/models/caboose/caboose_plugin.rb +4 -0
  13. data/app/models/caboose/core_plugin.rb +1 -1
  14. data/app/models/caboose/post.rb +51 -7
  15. data/app/models/caboose/schema.rb +10 -3
  16. data/app/models/caboose/site.rb +5 -0
  17. data/app/views/caboose/admin/index.html.erb +43 -30
  18. data/app/views/caboose/application/show.html.erb +1 -1
  19. data/app/views/caboose/blocks/_layout_basic.html.erb +1 -1
  20. data/app/views/caboose/blocks/_layout_basic_content.html.erb +1 -1
  21. data/app/views/caboose/blocks/_layout_post.html.erb +28 -0
  22. data/app/views/caboose/blocks/_layout_post_content.html.erb +10 -0
  23. data/app/views/caboose/blocks/_layout_post_footer.html.erb +3 -0
  24. data/app/views/caboose/blocks/_layout_post_header.html.erb +3 -0
  25. data/app/views/caboose/blocks/_post.html.erb +30 -0
  26. data/app/views/caboose/blocks/admin_edit.html.erb +6 -7
  27. data/app/views/caboose/blocks/admin_new.html.erb +4 -3
  28. data/app/views/caboose/posts/_admin_header.html.erb +1 -0
  29. data/app/views/caboose/posts/admin_edit_content.html.erb +14 -21
  30. data/app/views/caboose/posts/admin_edit_content_old.html.erb +32 -0
  31. data/app/views/caboose/posts/admin_edit_general.html.erb +25 -12
  32. data/app/views/caboose/posts/admin_edit_layout.html.erb +48 -0
  33. data/app/views/caboose/posts/admin_edit_preview.html.erb +27 -0
  34. data/app/views/caboose/posts/show.html.erb +16 -0
  35. data/app/views/caboose/sites/admin_edit.html.erb +7 -5
  36. data/app/views/caboose/social/admin_edit.html.erb +1 -1
  37. data/app/views/layouts/caboose/application.html.erb +12 -6
  38. data/config/routes.rb +299 -278
  39. data/lib/caboose/version.rb +1 -1
  40. data/lib/tasks/caboose.rake +15 -1
  41. metadata +13 -2
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.201'
2
+ VERSION = '0.5.202'
3
3
  end
@@ -94,6 +94,20 @@ namespace :caboose do
94
94
  end
95
95
 
96
96
  end
97
+
98
+ desc "Set post slugs and URIs"
99
+ task :set_post_slugs => :environment do
100
+ Caboose::Post.where("slug is null or uri is null").all.each do |p|
101
+ p.set_slug_and_uri(p.title)
102
+ end
103
+ end
104
+
105
+ desc "Create blocsk for posts that were on the old post system"
106
+ task :set_post_blocks => :environment do
107
+ Caboose::Post.where("slug is null or uri is null").all.each do |p|
108
+ p.set_slug_and_uri(p.title)
109
+ end
110
+ end
97
111
 
98
112
  #=============================================================================
99
113
 
@@ -200,6 +214,6 @@ namespace :assets do
200
214
  i = i + 1
201
215
  end
202
216
  end
203
- end
217
+ end
204
218
 
205
219
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.201
4
+ version: 0.5.202
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-17 00:00:00.000000000 Z
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -401,6 +401,7 @@ files:
401
401
  - app/assets/javascripts/caboose/admin_main.js
402
402
  - app/assets/javascripts/caboose/admin_page_edit_content.js
403
403
  - app/assets/javascripts/caboose/admin_page_new_blocks.js
404
+ - app/assets/javascripts/caboose/admin_post_edit_content.js
404
405
  - app/assets/javascripts/caboose/admin_products.js
405
406
  - app/assets/javascripts/caboose/application.js
406
407
  - app/assets/javascripts/caboose/authorize.net.js
@@ -468,6 +469,7 @@ files:
468
469
  - app/assets/stylesheets/caboose/admin_images_index.css.scss
469
470
  - app/assets/stylesheets/caboose/admin_main.css
470
471
  - app/assets/stylesheets/caboose/admin_page_edit_content.css
472
+ - app/assets/stylesheets/caboose/admin_post_edit_content.css
471
473
  - app/assets/stylesheets/caboose/admin_products.css
472
474
  - app/assets/stylesheets/caboose/application.css
473
475
  - app/assets/stylesheets/caboose/bound_input.css
@@ -699,11 +701,16 @@ files:
699
701
  - app/views/caboose/blocks/_layout_left_sidebar_footer.html.erb
700
702
  - app/views/caboose/blocks/_layout_left_sidebar_header.html.erb
701
703
  - app/views/caboose/blocks/_layout_left_sidebar_sidebar.html.erb
704
+ - app/views/caboose/blocks/_layout_post.html.erb
705
+ - app/views/caboose/blocks/_layout_post_content.html.erb
706
+ - app/views/caboose/blocks/_layout_post_footer.html.erb
707
+ - app/views/caboose/blocks/_layout_post_header.html.erb
702
708
  - app/views/caboose/blocks/_layout_right_sidebar.html.erb
703
709
  - app/views/caboose/blocks/_layout_right_sidebar_content.html.erb
704
710
  - app/views/caboose/blocks/_layout_right_sidebar_footer.html.erb
705
711
  - app/views/caboose/blocks/_layout_right_sidebar_header.html.erb
706
712
  - app/views/caboose/blocks/_layout_right_sidebar_sidebar.html.erb
713
+ - app/views/caboose/blocks/_post.html.erb
707
714
  - app/views/caboose/blocks/_product_category.html.erb
708
715
  - app/views/caboose/blocks/_product_crumbtrail.html.erb
709
716
  - app/views/caboose/blocks/_product_details.html.erb
@@ -832,11 +839,15 @@ files:
832
839
  - app/views/caboose/posts/admin_delete_form.html.erb
833
840
  - app/views/caboose/posts/admin_edit_categories.html.erb
834
841
  - app/views/caboose/posts/admin_edit_content.html.erb
842
+ - app/views/caboose/posts/admin_edit_content_old.html.erb
835
843
  - app/views/caboose/posts/admin_edit_general.html.erb
844
+ - app/views/caboose/posts/admin_edit_layout.html.erb
845
+ - app/views/caboose/posts/admin_edit_preview.html.erb
836
846
  - app/views/caboose/posts/admin_index.html.erb
837
847
  - app/views/caboose/posts/admin_new.html.erb
838
848
  - app/views/caboose/posts/detail.html.erb
839
849
  - app/views/caboose/posts/index.html.erb
850
+ - app/views/caboose/posts/show.html.erb
840
851
  - app/views/caboose/products/_admin_footer.html.erb
841
852
  - app/views/caboose/products/_admin_header.html.erb
842
853
  - app/views/caboose/products/_sort_options.html.erb