caboose-cms 0.4.150 → 0.4.151
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,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YzY1NmViNjUxMTY5MWU3MmQ2Y2Y0Y2EyNjIwYWI3NmJlZTFlZTIwOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NzRkZGIwZGRiZjBiOGVhZDJmMDk5MGIxNjg2MmI0MmEzMmJhZGMzYQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OTY3ZTgzY2JlNzdlMjlmZDJmMWQwYzA0NDVhYzAyZmI0NWIyNzA4MmNjOWFm
|
|
10
|
+
MTM5MjZmZDZlMjhjNzFhYjIyZDJmYWY5ZGY1NDU1YjUzODdjOGYyOGM0NTli
|
|
11
|
+
OGFkNTdjNmMzYmQzODc1NTEzZjU3OTY2ZjE3NDFiMzEyNWFhNTM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NzBiMGJmYzRiOWJhZjQ0ODA4YTZhOGNkOGU5NGQwMTY0MDZlMWIyOGQxY2Iw
|
|
14
|
+
MDFkZDYxOTg4YjM2NDM5MmQ1NmJjN2JkMWYxOWU0NjEzOTEwN2FkNWM3MDJj
|
|
15
|
+
OTdlNDJhOTFkNDA5NGYxN2M2NmM3MTlkOTQ3MjM0ZjIwNTRhYmU=
|
|
@@ -24,7 +24,11 @@ b = @block
|
|
|
24
24
|
<div class='icons'>
|
|
25
25
|
<% Caboose::BlockTypeCategory.reorder(:name).all.each do |cat| %>
|
|
26
26
|
<% next if cat.parent_id.nil? && cat.name == 'Layouts' %>
|
|
27
|
-
<%
|
|
27
|
+
<%
|
|
28
|
+
#kids = cat.block_types.where("parent_id is null and (site_id is null or site_id = ?)", @site.id).reorder(:name).all
|
|
29
|
+
arr = ["parent_id is null and block_type_category_id = ? and block_type_site_memberships.site_id = ?", cat.id, @site.id]
|
|
30
|
+
kids = Caboose::BlockType.includes(:block_type_site_memberships).where(arr).reorder(:name).all
|
|
31
|
+
%>
|
|
28
32
|
<% if kids && kids.count > 0 %>
|
|
29
33
|
<h2 onclick="$('#cat<%= cat.id %>_container').slideToggle();"><%= cat.name %></h3>
|
|
30
34
|
<div id='cat<%= cat.id %>_container'>
|
data/lib/caboose/version.rb
CHANGED
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.4.
|
|
4
|
+
version: 0.4.151
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Barry
|
|
@@ -207,6 +207,7 @@ files:
|
|
|
207
207
|
- app/assets/javascripts/caboose/main.js
|
|
208
208
|
- app/assets/javascripts/caboose/modal.js
|
|
209
209
|
- app/assets/javascripts/caboose/modal_integration.js
|
|
210
|
+
- app/assets/javascripts/caboose/model/#Untitled-1#
|
|
210
211
|
- app/assets/javascripts/caboose/model/all.js
|
|
211
212
|
- app/assets/javascripts/caboose/model/attribute.js
|
|
212
213
|
- app/assets/javascripts/caboose/model/bound_checkbox.js
|