caboose-cms 0.4.6 → 0.4.7
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 +8 -8
- data/app/views/caboose/blocks/_layout_basic_content.html.erb +2 -2
- data/config/routes.rb +4 -0
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NTVlNmIwMzQ5ZDlhYTMyNTAxNzQ3NDhhY2Y0NzBhNjA2Mzg4YWUxMA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NThkNWI1NTI5ODhmMGEzNTM5Yzg5ZjU5MmNkOTEyZThhMGM0MjE0NA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MTQwN2MyZmIyMmJkZjFhZGRhMzIyZDg5ZDRiMGU1MzA4Mjc0OTQ5NGRlYjdh
|
|
10
|
+
MzFlNjg0YzQyYTBkNzIxMjZiMmNhYzUzNzRkNmNjMTNkMzY5MGNhNWZmNzZi
|
|
11
|
+
NWRlY2VkZTljOTA5MTg1MTk4ZmZlNWRhM2MzOGY3NTUwNjM5Yzk=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MDk1NjhiNjU5Zjg3ZGE4YmM4ZTZkMWQwN2MwOTZlM2M2YzY5MWUyMDRmNDE5
|
|
14
|
+
NzczMzdhYmNjMDQzYmQ3YWIyZjk2ZTk5MTBmMzIxZjY4N2MxMTI0YzIyZTM4
|
|
15
|
+
YzliMzhhMDFlYzNkMWVkNzFhN2E2NGNhOWJlM2IzODc4ZTY4NGY=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="content_wrapper" id='block_<%= block.id %>'>
|
|
2
|
-
<div class="content_body">
|
|
3
|
-
<% if controller_view_content %>
|
|
2
|
+
<div class="content_body">
|
|
3
|
+
<% if controller_view_content && controller_view_content.strip.length > 0 %>
|
|
4
4
|
<%= raw controller_view_content %>
|
|
5
5
|
<% elsif block.children.count > 0 %>
|
|
6
6
|
<% block.children.each do |b| %><%= raw block.render(b, local_assigns) %><% end %>
|
data/config/routes.rb
CHANGED
|
@@ -174,6 +174,10 @@ Caboose::Engine.routes.draw do
|
|
|
174
174
|
post "admin/ab-variants/:variant_id/options" => "ab_options#admin_create"
|
|
175
175
|
delete "admin/ab-options/:id" => "ab_options#admin_delete"
|
|
176
176
|
|
|
177
|
+
# API
|
|
178
|
+
get "caboose/block-types" => "block_types#api_block_type_list"
|
|
179
|
+
get "caboose/block-types/:name" => "block_types#api_block_type"
|
|
180
|
+
|
|
177
181
|
match '*path' => 'pages#show'
|
|
178
182
|
root :to => 'pages#show'
|
|
179
183
|
|
data/lib/caboose/version.rb
CHANGED