caboose-cms 0.7.11 → 0.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff306c78d0b489f8c5391054dcd5fd79949f7dc7
4
- data.tar.gz: 00a97b2eb20397c9f0368c3354a7eaa70e345137
3
+ metadata.gz: 1f63e4a06922bcc3cf9320007593f95d2dae4a56
4
+ data.tar.gz: 3fbc708695a2f581cda77d9294d0a2705394d70f
5
5
  SHA512:
6
- metadata.gz: d3fe40847cdd9b2d838e59cba6f8e33d2050f302970e3c8f7b73f05c879dfb723508c631408ceee7ae52fdc759cb2b8245ae6bd5cd53ee3a5872ed46b1a913be
7
- data.tar.gz: 1c79610d4cb1e667c5c68849e27fa0721c3ba2e9f3649d6193e668f699728cc9f71c5fe24df9198d925d8a8b1167bdb3c02848581bdf4d1368451aeabcaf934e
6
+ metadata.gz: 9cf76d4b54dbcf0b2a1dce894a1c3bb8cc211b56e555470df4f4400d4aae837221f2913804af2379a98654a6437423153a453d51258e8f06e518efd2fbe3ca5b
7
+ data.tar.gz: 3021c86c61295bce08620cf3f8b5dbb64e89ef0b247872df5ff17dac21713c8d809cce3b7a33749546ad120af680827473d7f3e863b90d513773113404ecf98c
@@ -7,6 +7,8 @@
7
7
  <p><div id='post_<%= @post.id %>_subtitle' ></div></p>
8
8
  <p><div id='post_<%= @post.id %>_author' ></div></p>
9
9
  <% @post.post_custom_field_values.each do |fv| %>
10
+ <% f = fv.post_custom_field %>
11
+ <% next if f.nil? %>
10
12
  <p><div id='postcustomfieldvalue_<%= fv.id %>_value'></div></p>
11
13
  <% end %>
12
14
  <p><div id='post_<%= @post.id %>_created_at'></div></p>
@@ -26,17 +28,18 @@ $(document).ready(function() {
26
28
  update_url: '/admin/posts/<%= @post.id %>',
27
29
  authenticity_token: '<%= form_authenticity_token %>',
28
30
  attributes: [
29
- { name: 'slug' , nice_name: 'Slug' , type: 'text' , value: <%= raw Caboose.json(@post.slug ) %>, width: 600, after_update: function() { refresh_uri(); } },
30
- { name: 'title' , nice_name: 'Title' , type: 'text' , value: <%= raw Caboose.json(@post.title ) %>, width: 600, after_update: function() { refresh_uri(); } },
31
- { name: 'subtitle' , nice_name: 'Subtitle' , type: 'text' , value: <%= raw Caboose.json(@post.subtitle ) %>, width: 600 },
32
- { name: 'author' , nice_name: 'Author' , type: 'text' , value: <%= raw Caboose.json(@post.author ) %>, width: 600 },
33
- { name: 'created_at' , nice_name: 'Date Published' , type: 'date' , value: <%= raw Caboose.json( @post.created_at.strftime('%m/%d/%Y') ) %>, width: 600 },
34
- { name: 'published' , nice_name: 'Published' , type: 'checkbox' , value: <%= raw @post.published ? true : false %>, width: 600 },
35
- { name: 'image' , nice_name: 'Image' , type: 'image' , value: <%= raw Caboose.json(@post.image.url(:thumb)) %>, width: 600, update_url: '/admin/posts/<%= @post.id %>/image' }
31
+ { name: 'slug' , nice_name: 'Slug' , type: 'text' , value: <%= raw Caboose.json(@post.slug ) %>, width: 600, after_update: function() { refresh_uri(); } },
32
+ { name: 'title' , nice_name: 'Title' , type: 'text' , value: <%= raw Caboose.json(@post.title ) %>, width: 600, after_update: function() { refresh_uri(); } },
33
+ { name: 'subtitle' , nice_name: 'Subtitle' , type: 'text' , value: <%= raw Caboose.json(@post.subtitle ) %>, width: 600 },
34
+ { name: 'author' , nice_name: 'Author' , type: 'text' , value: <%= raw Caboose.json(@post.author ) %>, width: 600 },
35
+ { name: 'created_at' , nice_name: 'Date Published' , type: 'date' , value: <%= raw Caboose.json(@post.created_at.strftime('%m/%d/%Y') ) %>, width: 600 },
36
+ { name: 'published' , nice_name: 'Published' , type: 'checkbox' , value: <%= raw @post.published ? true : false %>, width: 600 },
37
+ { name: 'image' , nice_name: 'Image' , type: 'image' , value: <%= raw Caboose.json(@post.image.url(:thumb)) %>, width: 600, update_url: '/admin/posts/<%= @post.id %>/image' }
36
38
  ]
37
39
  });
38
40
  <% @post.post_custom_field_values.each do |fv| %>
39
41
  <% f = fv.post_custom_field %>
42
+ <% next if f.nil? %>
40
43
  new ModelBinder({
41
44
  name: 'PostCustomFieldValue',
42
45
  id: <%= fv.id %>,
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.11'
2
+ VERSION = '0.7.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.11
4
+ version: 0.7.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry