caboose-cms 0.9.84 → 0.9.85
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 +4 -4
- data/app/assets/javascripts/caboose/block_modal_controllers/block_dd_modal_controller.js +2 -11
- data/app/assets/javascripts/caboose/block_modal_controllers/block_modal_controller.js +0 -1
- data/app/assets/stylesheets/caboose/admin_edit_page_content_dragdrop.scss +4 -1
- data/app/controllers/caboose/pages_controller.rb +1 -1
- data/app/views/caboose/blocks/_file.html.erb +1 -1
- data/app/views/caboose/pages/admin_edit_content.html.erb +6 -7
- data/app/views/caboose/posts/admin_edit_content.html.erb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cea68206352e34bf1da4d5ed4d55c9f71f01a8df
|
4
|
+
data.tar.gz: 70393baf679e3e4f75785c3362ca0f143cf1ebda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cc4c2defa8b401b663a79591c6eab65c26ee38daf3de0807ae55ff0003878907b80fed66e1224af31aae8980c382f92a7452b521aaf66a2d21789ea086f1f87
|
7
|
+
data.tar.gz: 436adc06f4efb0e2271c42d1cc25b237a3c9a9dda5cccb8f9d4416af864f6659c04e7a135cb17c0bfdae68a9c4f0fbb3f6d26a26403b4a4498a89411cdd96cab
|
@@ -235,15 +235,6 @@ var BlockModalController = ModalController.extend({
|
|
235
235
|
},
|
236
236
|
|
237
237
|
/****************************************************************************/
|
238
|
-
|
239
|
-
//set_editable: function()
|
240
|
-
//{
|
241
|
-
// var that = this;
|
242
|
-
// that.set_block_value_editable(that.block);
|
243
|
-
// $.each(that.block.children, function(i, b) {
|
244
|
-
// that.set_block_value_editable(b);
|
245
|
-
// });
|
246
|
-
//},
|
247
238
|
|
248
239
|
set_block_value_editable: function(b)
|
249
240
|
{
|
@@ -291,7 +282,7 @@ var BlockModalController = ModalController.extend({
|
|
291
282
|
url: that.block_url(block) + '/remove-media',
|
292
283
|
type: 'put',
|
293
284
|
success: function(html) {
|
294
|
-
$('#the_modal img#block_' + block.id).attr('src','//
|
285
|
+
$('#the_modal img#block_' + block.id).attr('src','//d9hjv462jiw15.cloudfront.net/assets/blank.png').css('width','200px').css('height','120px');
|
295
286
|
$('#the_modal div#block_' + block.id + ' p').html('Empty file.');
|
296
287
|
$('#the_modal #block_' + block.id).parent().find('.caboose-btn').remove();
|
297
288
|
that.parent_controller.render_blocks();
|
@@ -328,7 +319,7 @@ var BlockModalController = ModalController.extend({
|
|
328
319
|
$('#the_modal #block_' + b.id).after(btn);
|
329
320
|
}
|
330
321
|
|
331
|
-
if ( b.block_type && b.block_type.field_type == 'file' && b.rendered_value.indexOf('
|
322
|
+
if ( b.block_type && b.block_type.field_type == 'file' && b.rendered_value.indexOf('Click to select a file') < 0 ) {
|
332
323
|
btn = $('<a href="#" class="caboose-btn">Remove</a>');
|
333
324
|
btn.css('margin-bottom','10px').css('font-size','13px');
|
334
325
|
btn.on('click', function(e) {
|
@@ -392,7 +392,6 @@ var BlockModalController = ModalController.extend({
|
|
392
392
|
});
|
393
393
|
if (bt.use_js_for_modal)
|
394
394
|
that.include_assets('caboose/block_modal_controllers/' + bt.name + '_modal_controller.js');
|
395
|
-
|
396
395
|
var h = {
|
397
396
|
authenticity_token: that.authenticity_token,
|
398
397
|
block_type_id: block_type_id
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@import url('https://fonts.googleapis.com/css?family=Roboto:300,300i');
|
2
2
|
|
3
|
-
#
|
3
|
+
#cb_block_sidebar {
|
4
4
|
position: fixed;
|
5
5
|
top: 0;
|
6
6
|
left: 0;
|
@@ -294,6 +294,9 @@ body > .container, body > .mm-page > .container {
|
|
294
294
|
font-size: 14px;
|
295
295
|
p {
|
296
296
|
color: #1d1d1d;
|
297
|
+
font-family: 'Roboto';
|
298
|
+
font-weight: 300;
|
299
|
+
font-size: 14px;
|
297
300
|
}
|
298
301
|
&.dropzone {
|
299
302
|
background: #dbeff7;
|
@@ -12,7 +12,7 @@ end
|
|
12
12
|
|
13
13
|
if editing
|
14
14
|
if url.nil? || url.starts_with?('http://placehold.it') || url.include?('missing')
|
15
|
-
%><div id='block_<%= block.id %>'><p>
|
15
|
+
%><div id='block_<%= block.id %>'><p>Click to select a file.</p></div><%
|
16
16
|
else
|
17
17
|
%><div id='block_<%= block.id %>'><p><span><%= name %></span></p></div><%
|
18
18
|
end
|
@@ -11,7 +11,6 @@
|
|
11
11
|
<% end %>
|
12
12
|
|
13
13
|
<% content_for :caboose_js do %>
|
14
|
-
|
15
14
|
<%= javascript_include_tag 'jquery-ui' %>
|
16
15
|
<%= javascript_include_tag 'caboose/model/all' %>
|
17
16
|
<%= javascript_include_tag 'caboose/jquery-ui.drag-multiple.min.js' %>
|
@@ -32,11 +31,11 @@ $(document).ready(function() {
|
|
32
31
|
controller = new BlockContentController({
|
33
32
|
page_id: <%= @page.id %>,
|
34
33
|
assets_path: <%= raw Caboose.json(asset_path('loading.gif').gsub('loading.gif', '')) %>,
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
34
|
+
<% if @site && @site.use_dragdrop %>
|
35
|
+
included_assets: ['caboose/block_modal_controllers/block_dd_modal_controller.js']
|
36
|
+
<% else %>
|
37
|
+
included_assets: ['caboose/block_modal_controllers/block_modal_controller.js']
|
38
|
+
<% end %>
|
40
39
|
});
|
41
40
|
|
42
41
|
$('body').append($('<div/>')
|
@@ -50,7 +49,7 @@ $(document).ready(function() {
|
|
50
49
|
<% if @site && @site.use_dragdrop %>
|
51
50
|
var html = "<%== (render :partial => 'caboose/pages/new_block_header').gsub( / *\n+/, '' ) %> ";
|
52
51
|
$('body').append($('<div/>')
|
53
|
-
.attr('id', '
|
52
|
+
.attr('id', 'cb_block_sidebar')
|
54
53
|
.append(html)
|
55
54
|
);
|
56
55
|
$("#new_blocks li.blocktype").draggable({ revert: true, helper: 'clone', appendTo: 'body', zIndex: 999999, scroll: false, start: function(event, ui) {
|
@@ -48,11 +48,11 @@ $(document).ready(function() {
|
|
48
48
|
<% if @site && @site.use_dragdrop %>
|
49
49
|
var html = "<%== (render :partial => 'caboose/pages/new_block_header').gsub( / *\n+/, '' ) %> ";
|
50
50
|
$('body').append($('<div/>')
|
51
|
-
.attr('id', '
|
51
|
+
.attr('id', 'cb_block_sidebar')
|
52
52
|
.append(html)
|
53
53
|
);
|
54
54
|
$("#new_blocks li.blocktype").draggable({ revert: true, helper: 'clone', appendTo: 'body', zIndex: 999999, scroll: false, start: function(event, ui) {
|
55
|
-
$(".line.ui-droppable").addClass('dropzone'); }, stop: function(event, ui) { $(".line.ui-droppable").removeClass('dropzone'); } });
|
55
|
+
$(".regular-dropper .line.ui-droppable").addClass('dropzone'); }, stop: function(event, ui) { $(".regular-dropper .line.ui-droppable").removeClass('dropzone'); } });
|
56
56
|
$('body').addClass('icons');
|
57
57
|
$('body').append($('<div/>').attr('id','caboose-loading').append( $('<div/>').addClass('table').append($('<div/>').addClass('table-cell').append('<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg id="loader" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="60px" height="60px" viewBox="0 0 128 128" xml:space="preserve"><g><path d="M64 0L40.08 21.9a10.98 10.98 0 0 0-5.05 8.75C34.37 44.85 64 60.63 64 60.63V0z" fill="#ffb118"/><path d="M128 64l-21.88-23.9a10.97 10.97 0 0 0-8.75-5.05C83.17 34.4 67.4 64 67.4 64H128z" fill="#80c141"/><path d="M63.7 69.73a110.97 110.97 0 0 1-5.04-20.54c-1.16-8.7.68-14.17.68-14.17h38.03s-4.3-.86-14.47 10.1c-3.06 3.3-19.2 24.58-19.2 24.58z" fill="#cadc28"/><path d="M64 128l23.9-21.88a10.97 10.97 0 0 0 5.05-8.75C93.6 83.17 64 67.4 64 67.4V128z" fill="#cf171f"/><path d="M58.27 63.7a110.97 110.97 0 0 1 20.54-5.04c8.7-1.16 14.17.68 14.17.68v38.03s.86-4.3-10.1-14.47c-3.3-3.06-24.58-19.2-24.58-19.2z" fill="#ec1b21"/><path d="M0 64l21.88 23.9a10.97 10.97 0 0 0 8.75 5.05C44.83 93.6 60.6 64 60.6 64H0z" fill="#018ed5"/><path d="M64.3 58.27a110.97 110.97 0 0 1 5.04 20.54c1.16 8.7-.68 14.17-.68 14.17H30.63s4.3.86 14.47-10.1c3.06-3.3 19.2-24.58 19.2-24.58z" fill="#00bbf2"/><path d="M69.73 64.34a111.02 111.02 0 0 1-20.55 5.05c-8.7 1.14-14.15-.7-14.15-.7V30.65s-.86 4.3 10.1 14.5c3.3 3.05 24.6 19.2 24.6 19.2z" fill="#f8f400"/><circle cx="64" cy="64" r="2.03"/><animateTransform attributeName="transform" type="rotate" from="0 64 64" to="-360 64 64" dur="2100ms" repeatCount="indefinite"></animateTransform></g></svg>').append('<h4>Loading...</h4>') ) ));
|
58
58
|
<% end %>
|
data/lib/caboose/version.rb
CHANGED
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.9.
|
4
|
+
version: 0.9.85
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|