camaleon_cms 0.2.0 → 0.2.1
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.
Potentially problematic release.
This version of camaleon_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/admin/grid-editor.js +255 -0
- data/app/assets/stylesheets/admin/bootstrap/{bootstrap-datetimepicker.css → bootstrap-datetimepicker.css.scss} +1 -1
- data/app/assets/stylesheets/admin/grid-editor.css.scss +300 -0
- data/app/decorators/site_decorator.rb +1 -1
- data/lib/camaleon_cms/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b50e18ba1373540299a6e15770552a38ee6c46e
|
4
|
+
data.tar.gz: 62c7b76bd64ee158012caa5ce7a5a27a09bf5746
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13016956ede770e599d3f96b841d5d2656d8e8822ecd63df8dee9a8a3eb2367957013ec87d0580be1a1dd148a364177ccabfee19668be496dc41cd915506af50
|
7
|
+
data.tar.gz: 2b1b18d5866277735b92a1efdec56a6709e2e96ffcffa22cb4f5be2c76b54c4974e5f07ddfeb13b0957de6ed70fa4356fa9768c75cad1454556ef2b7403ec013
|
@@ -0,0 +1,255 @@
|
|
1
|
+
jQuery(function(){
|
2
|
+
$.fn.fadeDestroy = function(speed){ $(this).fadeOut(speed, function(){ $(this).remove(); }) }
|
3
|
+
$.fn.gridEditor_extra_rows = [];
|
4
|
+
$.fn.gridEditor_options = {
|
5
|
+
text: {title: "Text", callback: function(panel){
|
6
|
+
open_modal({title: "Entere Your Text", modal_settings: { keyboard: false, backdrop: "static" }, show_footer: true, content: "<textarea rows='10' class='form-control'></textarea>", callback: function(modal){
|
7
|
+
var submit = $('<button type="button" class="btn btn-primary">Save</button>').click(function(){
|
8
|
+
alert(modal.find("textarea").val());
|
9
|
+
panel.html(modal.find("textarea").val());
|
10
|
+
modal.modal("hide");
|
11
|
+
})
|
12
|
+
modal.find(".modal-footer").prepend(submit);
|
13
|
+
}});
|
14
|
+
}},
|
15
|
+
editor: {title: "Editor", callback: function(panel){ }},
|
16
|
+
slider: {title: "Slider", callback: function(panel){ }},
|
17
|
+
};
|
18
|
+
|
19
|
+
// grid editor plugin
|
20
|
+
var gridEditor_id = 0;
|
21
|
+
$.fn.gridEditor = function(tinyEditor){
|
22
|
+
var tinymce_panel = $(tinyEditor.editorContainer).hide();
|
23
|
+
gridEditor_id ++;
|
24
|
+
var textarea = $(this);
|
25
|
+
if(textarea.prev().hasClass("panel_grid_editor")){ textarea.prev().show(); return textarea; }
|
26
|
+
var tpl_rows = "";
|
27
|
+
$.each({6: 50, 4: 33, 3: 25, 2: 16, 8: 66, 9: 75, 12: 100}, function(k, val){ tpl_rows += '<div class="" data-col="'+k+'" data-col_title="'+val+'%"><div class="grid_sortable_items"></div></div>'; });
|
28
|
+
|
29
|
+
// break line
|
30
|
+
tpl_rows += '<div class="clearfix" data-col_title="Break Line" data-col="12"></div>' + $.fn.gridEditor_extra_rows.join("");
|
31
|
+
|
32
|
+
// tpl options
|
33
|
+
var tpl_options = "";
|
34
|
+
$.each($.fn.gridEditor_options, function(key, item){ tpl_options += '<div class="" data-kind="'+key+'" data-content_title="'+item["title"]+'"><div class="grid_item_content"></div></div>'; });
|
35
|
+
|
36
|
+
var editor = $("<div class='panel_grid_editor'>"+
|
37
|
+
"<div class='grid_editor_menu'>"+
|
38
|
+
"<ul class='nav nav-tabs'>"+
|
39
|
+
"<li class='active'><a href='#grid_columns_"+gridEditor_id+"' role='tab' data-toggle='tab'>Rows</a></li>"+
|
40
|
+
"<li class=''><a href='#grid_contents_"+gridEditor_id+"' role='tab' data-toggle='tab'>Content</a></li>"+
|
41
|
+
"<li class=''><a href='#' class='toggle_panel_grid'>Text Editor</a></li>"+
|
42
|
+
"<li class=''><a class='export'>Export</a></li>"+
|
43
|
+
"<li class=''><a class='parse'>Parse</a></li>"+
|
44
|
+
"</ul>"+
|
45
|
+
"<div class='tab-content'>"+
|
46
|
+
"<div role='tabpanel' class='tab-pane active' id='grid_columns_"+gridEditor_id+"'> "+tpl_rows+" </div>"+
|
47
|
+
"<div role='tabpanel' class='tab-pane' id='grid_contents_"+gridEditor_id+"'>"+tpl_options+"</div>"+
|
48
|
+
"</div>"+
|
49
|
+
"</div>"+
|
50
|
+
"<style> .panel_grid_editor{ margin-top: 40px; } /*.panel_grid_body.hover-grid{ background: red !important; }*/ .panel_grid_body .drg_column .header_box .dropdown{ position: absolute; right: 8px; top: 0px; } .panel_grid_body .grid_sortable_items{ min-height: 100px; margin-top: -23px; padding-top: 23px; } .panel_grid_body .drg_item > *{ display: none; } .panel_grid_body .drg_item > :first-child{ display: block } /*.grid_sortable_items.hover-grid{ background: blue; }*/ </style>"+
|
51
|
+
"<div class='panel_grid_body row' style='min-height: 300px; background: #eee; border: 1px solid #ccc;'></div>"+
|
52
|
+
"</div>");
|
53
|
+
|
54
|
+
// grid editor export
|
55
|
+
function export_content(editor_body){
|
56
|
+
editor_body.children().each(function(){
|
57
|
+
var col = $(this).removeClass("drg_column btn btn-default grid-col-built ui-draggable ui-draggable-handle").removeAttr("style");
|
58
|
+
col.children(".header_box").remove();
|
59
|
+
col.find(".grid_sortable_items").children().each(function(){ //contents
|
60
|
+
var content = $(this).removeClass("drg_item btn btn-default ui-draggable ui-draggable-handle grid-item-built").removeAttr("style").children(".header_box").remove();
|
61
|
+
});
|
62
|
+
});
|
63
|
+
return editor_body;
|
64
|
+
}
|
65
|
+
|
66
|
+
// grid editor parser to recover
|
67
|
+
function parse_content(editor){
|
68
|
+
editor.find(".panel_grid_body").children().each(function(){
|
69
|
+
var col = parse_content_column($(this));
|
70
|
+
});
|
71
|
+
return editor;
|
72
|
+
}
|
73
|
+
|
74
|
+
// parse column editor
|
75
|
+
// column: content element
|
76
|
+
// skip_options: boolean to add drodown options
|
77
|
+
function parse_content_column(column, skip_options){
|
78
|
+
var html = '<div class="header_box">'+
|
79
|
+
'<a><i class="icon-bar"></i>'+column.attr("data-col_title")+'</a>'+
|
80
|
+
'</div>';
|
81
|
+
var options = "<div class='dropdown'>" +
|
82
|
+
"<a class='dropdown-toggle' data-toggle='dropdown'> <span class='caret'></span></a>" +
|
83
|
+
"<ul class='dropdown-menu' role='menu'>"+
|
84
|
+
"<li><a class='grid_col_remove' title='Remove' href='#'><i class='fa fa-trash-o'></i> Remove</a></li>"+
|
85
|
+
"<li><a class='grid_col_clone' title='Clone' href='#'><i class='fa fa-copy'></i> Clone</a></li>"+
|
86
|
+
"</ul>"+
|
87
|
+
"</div>" ;
|
88
|
+
column.addClass("drg_column btn btn-default");
|
89
|
+
if(column.children(".header_box").length == 0) column.prepend(html);
|
90
|
+
if(!skip_options){
|
91
|
+
column.find('.header_box').append(options);
|
92
|
+
grid_content_manager(column.find(".grid_sortable_items"));
|
93
|
+
column.find(".grid_sortable_items").children().each(function(){ //contents
|
94
|
+
parse_content_content($(this));
|
95
|
+
});
|
96
|
+
}
|
97
|
+
column;
|
98
|
+
}
|
99
|
+
|
100
|
+
// parse column editor
|
101
|
+
// content: content element
|
102
|
+
// skip_options: boolean to add drodown options
|
103
|
+
function parse_content_content(content, skip_options){
|
104
|
+
var html = '<div class="header_box">'+
|
105
|
+
'<a><i class="icon-bar"></i>'+content.attr("data-content_title")+'</a>'+
|
106
|
+
'</div>';
|
107
|
+
var options = "<div class='dropdown'>" +
|
108
|
+
"<a class='dropdown-toggle' data-toggle='dropdown'> <span class='caret'></span></a>" +
|
109
|
+
"<ul class='dropdown-menu' role='menu'>"+
|
110
|
+
"<li><a class='grid_content_remove' title='Remove' href='#'><i class='fa fa-trash-o'></i> Remove</a></li>"+
|
111
|
+
"<li><a class='grid_content_clone' title='Clone' href='#'><i class='fa fa-copy'></i> Clone</a></li>"+
|
112
|
+
"<li><a class='grid_content_edit' title='Clone' href='#'><i class='fa fa-pencil'></i> Edit</a></li>"+
|
113
|
+
"</ul>"+
|
114
|
+
"</div>";
|
115
|
+
content.addClass("drg_item btn btn-default");
|
116
|
+
if(content.children(".header_box").length == 0) content.prepend(html);
|
117
|
+
if(!skip_options){
|
118
|
+
content.find('.header_box').append(options);
|
119
|
+
}
|
120
|
+
content;
|
121
|
+
}
|
122
|
+
|
123
|
+
// grid editor reverse parser
|
124
|
+
|
125
|
+
// toggle editor
|
126
|
+
editor.find(".grid_editor_menu .toggle_panel_grid").click(function(){ if(!confirm("Are you sure to change the editor?")) return false; editor.hide(); tinymce_panel.show(); return false; })
|
127
|
+
editor.find(".grid_editor_menu .export").click(function(){ export_content(editor.find(".panel_grid_body")); return false; })
|
128
|
+
editor.find(".grid_editor_menu .parse").click(function(){ parse_content(editor); return false; })
|
129
|
+
editor.find("#grid_columns_"+gridEditor_id).children().each(function(){ parse_content_column($(this), true) });
|
130
|
+
editor.find("#grid_contents_"+gridEditor_id).children().each(function(){ parse_content_content($(this), true) });
|
131
|
+
textarea.before(editor);
|
132
|
+
var time_control;
|
133
|
+
$('.panel_grid_body', editor).bind("DOMSubtreeModified",function(){
|
134
|
+
var thiss = $(this);
|
135
|
+
if(time_control) clearTimeout(time_control);
|
136
|
+
time_control = setTimeout(function(){ textarea.val(export_content(thiss.clone()).html()); console.log(textarea.val()); }, 1000);
|
137
|
+
});
|
138
|
+
|
139
|
+
// drag columns
|
140
|
+
jQuery(".drg_column", editor).draggable({
|
141
|
+
connectToSortable: editor.find(".panel_grid_body"),
|
142
|
+
cursor: 'move', // sets the cursor apperance
|
143
|
+
revert: 'invalid', // makes the item to return if it isn't placed into droppable
|
144
|
+
revertDuration: -1, // duration while the item returns to its place
|
145
|
+
opacity: 1, // opacity while the element is dragged
|
146
|
+
helper: "clone"
|
147
|
+
});
|
148
|
+
|
149
|
+
//draggable content elements
|
150
|
+
jQuery(".drg_item", editor).draggable({
|
151
|
+
connectToSortable: '.grid_sortable_items',
|
152
|
+
cursor: 'move', // sets the cursor apperance
|
153
|
+
revert: 'invalid', // makes the item to return if it isn't placed into droppable
|
154
|
+
revertDuration: -1, // duration while the item returns to its place
|
155
|
+
opacity: 1, // opacity while the element is dragged
|
156
|
+
helper: "clone"
|
157
|
+
});
|
158
|
+
|
159
|
+
// Sort the parents
|
160
|
+
jQuery(".panel_grid_body", editor).sortable({
|
161
|
+
tolerance: "pointer",
|
162
|
+
cursor: "move",
|
163
|
+
revert: false,
|
164
|
+
delay: 150,
|
165
|
+
dropOnEmpty: true,
|
166
|
+
items: ".drg_column",
|
167
|
+
connectWith: '.panel_grid_body',
|
168
|
+
placeholder: "placeholder",
|
169
|
+
start: function (e, ui) {
|
170
|
+
ui.helper.css({'width': '' , 'height': ''}).addClass('col-md-' + jQuery(ui.helper).attr('data-col'));
|
171
|
+
ui.placeholder.attr('class', jQuery(ui.helper).attr("class")).html(ui.helper.html()).fadeTo("fast", 0.4);
|
172
|
+
},
|
173
|
+
over: function (e, ui) {
|
174
|
+
ui.placeholder.attr('class', jQuery(ui.helper).attr("class"));
|
175
|
+
$(this).addClass("hover-grid");
|
176
|
+
},
|
177
|
+
out: function (e, ui) {
|
178
|
+
$(this).removeClass("hover-grid");
|
179
|
+
},
|
180
|
+
stop: function (e, ui) {
|
181
|
+
ui.item.removeAttr('style');
|
182
|
+
if(!jQuery(ui.item).hasClass('grid-col-built')) parse_content_column(ui.item)
|
183
|
+
ui.item.addClass('grid-col-built');
|
184
|
+
}
|
185
|
+
});
|
186
|
+
|
187
|
+
// column dropdown options
|
188
|
+
jQuery('.panel_grid_body ', editor).on({
|
189
|
+
click: function (e) {
|
190
|
+
if(confirm("Are you sure to delete this block?")) jQuery(this).closest(".drg_column").fadeDestroy();
|
191
|
+
e.preventDefault();
|
192
|
+
}
|
193
|
+
}, '.grid_col_remove').on({
|
194
|
+
click: function (e) {
|
195
|
+
var widget = jQuery(this).closest(".drg_column");
|
196
|
+
var widget_clone = widget.clone();
|
197
|
+
widget.after(widget_clone);
|
198
|
+
grid_content_manager(widget_clone.find(".grid_sortable_items"));
|
199
|
+
e.preventDefault();
|
200
|
+
}
|
201
|
+
}, '.grid_col_clone');
|
202
|
+
|
203
|
+
// content dropdown options
|
204
|
+
jQuery('.panel_grid_body ', editor).on({
|
205
|
+
click: function (e) {
|
206
|
+
if(confirm("Are you sure to delete this content?")) jQuery(this).closest(".drg_item").fadeDestroy();
|
207
|
+
e.preventDefault();
|
208
|
+
}
|
209
|
+
}, '.drg_item .grid_content_remove').on({
|
210
|
+
click: function (e) {
|
211
|
+
var widget = jQuery(this).closest(".drg_item");
|
212
|
+
var widget_clone = widget.clone();
|
213
|
+
widget.after(widget_clone);
|
214
|
+
e.preventDefault();
|
215
|
+
}
|
216
|
+
}, '.drg_item .grid_content_clone').on({
|
217
|
+
click: function (e) {
|
218
|
+
var panel_content = $(this).closest(".drg_item");
|
219
|
+
var key = panel_content.attr("data-kind");
|
220
|
+
$.fn.gridEditor_options[key]["callback"](panel_content.children(".grid_item_content"));
|
221
|
+
e.preventDefault();
|
222
|
+
}
|
223
|
+
}, '.drg_item .grid_content_edit');
|
224
|
+
|
225
|
+
function grid_content_manager(item) {
|
226
|
+
// Sort the children (content elements)
|
227
|
+
jQuery(item).sortable({
|
228
|
+
tolerance: "pointer",
|
229
|
+
cursor: "move",
|
230
|
+
revert: false,
|
231
|
+
delay: 150,
|
232
|
+
dropOnEmpty: true,
|
233
|
+
items: ".drg_item",
|
234
|
+
connectWith: '.grid_sortable_items',
|
235
|
+
placeholder: "placeholder",
|
236
|
+
start: function (e, ui) {
|
237
|
+
ui.helper.css({'width': '' , 'height': ''}).addClass('col-md-12');
|
238
|
+
ui.placeholder.attr('class', jQuery(ui.helper).attr("class")).html(ui.helper.html()).fadeTo("fast", 0.4);
|
239
|
+
},
|
240
|
+
over: function (e, ui) {
|
241
|
+
$(this).addClass("hover-grid");
|
242
|
+
},
|
243
|
+
out: function (e, ui) {
|
244
|
+
$(this).removeClass("hover-grid");
|
245
|
+
},
|
246
|
+
stop: function (e, ui) {
|
247
|
+
ui.item.addClass('col-md-12').removeAttr('style');
|
248
|
+
if(!jQuery(ui.item).hasClass('grid-item-built')) parse_content_content(ui.item)
|
249
|
+
ui.item.addClass('grid-item-built');
|
250
|
+
}
|
251
|
+
});
|
252
|
+
}
|
253
|
+
return textarea;
|
254
|
+
}
|
255
|
+
});
|
@@ -327,7 +327,7 @@
|
|
327
327
|
}
|
328
328
|
|
329
329
|
[class^="icon-"], [class*=" icon-"] {
|
330
|
-
background-image: url("images/glyphicons-halflings.png");
|
330
|
+
background-image: asset-url("admin/bootstrap/images/glyphicons-halflings.png");
|
331
331
|
background-position: 14px 14px;
|
332
332
|
background-repeat: no-repeat;
|
333
333
|
display: inline-block;
|
@@ -0,0 +1,300 @@
|
|
1
|
+
.content_grill {
|
2
|
+
max-width: 786px;
|
3
|
+
background: gray;
|
4
|
+
}
|
5
|
+
|
6
|
+
#content_list {
|
7
|
+
list-style: none;
|
8
|
+
display: table;
|
9
|
+
margin: 0;
|
10
|
+
padding: 0;
|
11
|
+
}
|
12
|
+
|
13
|
+
section .box {
|
14
|
+
border-radius: 4px;;
|
15
|
+
float: left;
|
16
|
+
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
|
17
|
+
-moz-box-sizing: border-box; /* Firefox, other Gecko */
|
18
|
+
box-sizing: border-box; /* Opera/IE 8+ */
|
19
|
+
}
|
20
|
+
|
21
|
+
section .box .content_box {
|
22
|
+
border-radius: 4px;
|
23
|
+
padding: 5px;
|
24
|
+
}
|
25
|
+
|
26
|
+
.sky_close_widget {
|
27
|
+
text-decoration: none;
|
28
|
+
}
|
29
|
+
|
30
|
+
section .box .content_box h3 {
|
31
|
+
font-size: 16px;
|
32
|
+
font-weight: 300;
|
33
|
+
margin: 0;
|
34
|
+
text-align: center;
|
35
|
+
display: block;
|
36
|
+
height: 23px;
|
37
|
+
line-height: 23px;
|
38
|
+
padding-bottom: 13px;
|
39
|
+
color: #5e6776;
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
section .box .content_box h3.dark {
|
44
|
+
color: #494a5b;
|
45
|
+
line-height: 23px;
|
46
|
+
display: block;
|
47
|
+
height: 23px;
|
48
|
+
padding-bottom: 13px;
|
49
|
+
}
|
50
|
+
|
51
|
+
section .box .content_box .title_box {
|
52
|
+
display: table;
|
53
|
+
font-size: 18px;
|
54
|
+
margin-bottom: 5px;
|
55
|
+
color: #535438;
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
section .box .content_box .link_details {
|
60
|
+
color: #535438;
|
61
|
+
display: table;
|
62
|
+
font-style: italic;
|
63
|
+
text-decoration: underline;
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
section .box .content_box .body_box {
|
68
|
+
|
69
|
+
background: none repeat scroll 0 0 #fffcf4;
|
70
|
+
border-radius: 4px;
|
71
|
+
display: table;
|
72
|
+
width: 100%;
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
section .box .content_box .body_box ul.simple_list {
|
77
|
+
padding-left: 6px;
|
78
|
+
padding-right: 6px;
|
79
|
+
padding-top: 20px;
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
section .box .content_box .body_box ul.simple_list li {
|
84
|
+
width: auto;
|
85
|
+
padding-top: 0;
|
86
|
+
padding-left: 0;
|
87
|
+
padding-right: 0;
|
88
|
+
padding-bottom: 16px;
|
89
|
+
}
|
90
|
+
|
91
|
+
section .box .content_box .body_box ul {
|
92
|
+
list-style: none;
|
93
|
+
margin: 0;
|
94
|
+
padding-left: 0;
|
95
|
+
padding-top: 10px;
|
96
|
+
display: table;
|
97
|
+
|
98
|
+
}
|
99
|
+
|
100
|
+
section .box .content_box .body_box .content_text {
|
101
|
+
padding-left: 6px;
|
102
|
+
padding-right: 6px;
|
103
|
+
padding-top: 20px;
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
section .box .content_box .body_box ul li {
|
108
|
+
float: left;
|
109
|
+
text-align: center;
|
110
|
+
width: 106px;
|
111
|
+
padding: 23px;
|
112
|
+
|
113
|
+
}
|
114
|
+
|
115
|
+
/*graph*/
|
116
|
+
.demo {
|
117
|
+
display: block;
|
118
|
+
height: 60px;
|
119
|
+
width: 60px;
|
120
|
+
overflow: hidden;
|
121
|
+
margin: 0 auto;
|
122
|
+
margin-bottom: 16px;
|
123
|
+
|
124
|
+
}
|
125
|
+
|
126
|
+
/*graph*/
|
127
|
+
/*colors*/
|
128
|
+
.blue {
|
129
|
+
background: #3887a9;
|
130
|
+
}
|
131
|
+
|
132
|
+
.blue2 {
|
133
|
+
background: #b5d2d9;
|
134
|
+
}
|
135
|
+
|
136
|
+
.pink {
|
137
|
+
background: #ff5576;
|
138
|
+
}
|
139
|
+
|
140
|
+
.pink2 {
|
141
|
+
background: #ffbdc5;
|
142
|
+
}
|
143
|
+
|
144
|
+
.hi_blue {
|
145
|
+
background: #55cbff;
|
146
|
+
}
|
147
|
+
|
148
|
+
.hi_blue2 {
|
149
|
+
background: #c0ecf9;
|
150
|
+
}
|
151
|
+
|
152
|
+
.green {
|
153
|
+
background: #71df37;
|
154
|
+
}
|
155
|
+
|
156
|
+
.gray {
|
157
|
+
background: #494a5b;
|
158
|
+
}
|
159
|
+
|
160
|
+
.red {
|
161
|
+
background: #de593f;
|
162
|
+
}
|
163
|
+
|
164
|
+
/*colors*/
|
165
|
+
.content_items{
|
166
|
+
height: 100%;
|
167
|
+
}
|
168
|
+
|
169
|
+
/* Item placeholder (visual helper) */
|
170
|
+
|
171
|
+
.placeholder {
|
172
|
+
background-color: #BFB;
|
173
|
+
/*border: 1px dashed #666;*/
|
174
|
+
min-height: 50px;
|
175
|
+
height: 50px;
|
176
|
+
}
|
177
|
+
.placeholder_item {
|
178
|
+
background-color: #FF9B08;
|
179
|
+
/*border: 1px dashed #666;*/
|
180
|
+
height: 50px;
|
181
|
+
}
|
182
|
+
.placeholder_row {
|
183
|
+
background-color: #c0ecf9;
|
184
|
+
/*border: 1px dashed #666;*/
|
185
|
+
|
186
|
+
}
|
187
|
+
.header_box{
|
188
|
+
display: table;
|
189
|
+
width: 100%;
|
190
|
+
}
|
191
|
+
.header_box a{
|
192
|
+
float: left;
|
193
|
+
}
|
194
|
+
.header_box .dropdown{
|
195
|
+
float: right;
|
196
|
+
}
|
197
|
+
.header_box .dropdown > a{
|
198
|
+
border: 1px solid #efefef;
|
199
|
+
padding: 0px 5px;
|
200
|
+
}
|
201
|
+
|
202
|
+
/*sub sortable*/
|
203
|
+
.column_active .list_items{
|
204
|
+
margin-top: -22px;
|
205
|
+
min-height: 50px;
|
206
|
+
padding-top: 25px;
|
207
|
+
}
|
208
|
+
.sky_widget_item{
|
209
|
+
background: #b5d2d9;
|
210
|
+
}
|
211
|
+
/*sub sorteable*/
|
212
|
+
/*row sorteable*/
|
213
|
+
#sortable_row{
|
214
|
+
height: 100%;
|
215
|
+
}
|
216
|
+
/*row sorteable*/
|
217
|
+
/*row sorteable*/
|
218
|
+
.sky_widget_row{
|
219
|
+
margin: 0 !important;
|
220
|
+
padding: 0 !important;
|
221
|
+
|
222
|
+
}
|
223
|
+
.row_active .sortable_columns{
|
224
|
+
height: 50px;
|
225
|
+
}
|
226
|
+
.placeholder {
|
227
|
+
margin-left: 0 !important;
|
228
|
+
}
|
229
|
+
.bs-example{
|
230
|
+
height: 150px;
|
231
|
+
}
|
232
|
+
/*
|
233
|
+
.col-lg-3 {
|
234
|
+
width: 25%!important;
|
235
|
+
}
|
236
|
+
.col-lg-4{
|
237
|
+
width: 33.3333%!important;
|
238
|
+
}
|
239
|
+
.col-lg-6{
|
240
|
+
width: 50%!important;
|
241
|
+
}
|
242
|
+
.col-lg-8{
|
243
|
+
width: 66.6667%!important;
|
244
|
+
}
|
245
|
+
.col-lg-9{
|
246
|
+
width: 75%!important;
|
247
|
+
}
|
248
|
+
.col-lg-12{
|
249
|
+
width: 100%!important;
|
250
|
+
}
|
251
|
+
*/
|
252
|
+
|
253
|
+
|
254
|
+
#drop {
|
255
|
+
width: 60%;
|
256
|
+
height: 500px;
|
257
|
+
margin: 3px auto;
|
258
|
+
background: transparent;
|
259
|
+
font-size: 16px;
|
260
|
+
border: 1px solid;
|
261
|
+
border-radius: 4px;
|
262
|
+
}
|
263
|
+
.ui-draggable-handle{
|
264
|
+
|
265
|
+
}
|
266
|
+
#drop.drp {
|
267
|
+
/*background: #E0EEEE;*/
|
268
|
+
|
269
|
+
}
|
270
|
+
|
271
|
+
#drop #sw {
|
272
|
+
text-decoration: underline;
|
273
|
+
cursor: pointer;
|
274
|
+
}
|
275
|
+
|
276
|
+
#drag {
|
277
|
+
}
|
278
|
+
#drg .drg_row{
|
279
|
+
height: 100%;
|
280
|
+
min-height: 50px;
|
281
|
+
}
|
282
|
+
.drg {
|
283
|
+
height: auto;
|
284
|
+
min-height: 50px;
|
285
|
+
}
|
286
|
+
|
287
|
+
/*row sorteable*/
|
288
|
+
.sortable_columns{
|
289
|
+
height: 100%;
|
290
|
+
float: left;
|
291
|
+
background: transparent;
|
292
|
+
font-size: 16px;
|
293
|
+
border-radius: 4px;
|
294
|
+
margin: 0 auto;
|
295
|
+
width: 100%;
|
296
|
+
}
|
297
|
+
.sortable_columns .column_active.first{
|
298
|
+
clear: both;
|
299
|
+
background: gray;
|
300
|
+
}
|
@@ -16,7 +16,7 @@ class SiteDecorator < TermTaxonomyDecorator
|
|
16
16
|
# return logo url for this site
|
17
17
|
# default: this url will be returned if logo is not present.
|
18
18
|
def the_logo(default = nil)
|
19
|
-
object.options[:logo] || (default || "#{h.
|
19
|
+
object.options[:logo] || (default || "#{h.asset_url("camaleon.png")}")
|
20
20
|
end
|
21
21
|
|
22
22
|
def the_icon
|
data/lib/camaleon_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: camaleon_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo Diaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Camaleon CMS is a dynamic and advanced content management system based
|
14
14
|
on Ruby on Rails 4 as an alternative to Wordpress.
|
@@ -204,6 +204,7 @@ files:
|
|
204
204
|
- app/assets/javascripts/admin/form-builder/vendor.js
|
205
205
|
- app/assets/javascripts/admin/form/cropper.min.js
|
206
206
|
- app/assets/javascripts/admin/form/jquery.form.js
|
207
|
+
- app/assets/javascripts/admin/grid-editor.js
|
207
208
|
- app/assets/javascripts/admin/it.js
|
208
209
|
- app/assets/javascripts/admin/jquery-sieve.js
|
209
210
|
- app/assets/javascripts/admin/jquery-ui.min.js
|
@@ -267,7 +268,7 @@ files:
|
|
267
268
|
- app/assets/javascripts/jquery-1.11.3.min.js
|
268
269
|
- app/assets/stylesheets/admin/admin-manifest.css
|
269
270
|
- app/assets/stylesheets/admin/animate/animate.min.css
|
270
|
-
- app/assets/stylesheets/admin/bootstrap/bootstrap-datetimepicker.css
|
271
|
+
- app/assets/stylesheets/admin/bootstrap/bootstrap-datetimepicker.css.scss
|
271
272
|
- app/assets/stylesheets/admin/bootstrap/bootstrap.min.css
|
272
273
|
- app/assets/stylesheets/admin/bootstrap/images/glyphicons-halflings.png
|
273
274
|
- app/assets/stylesheets/admin/core.scss
|
@@ -296,6 +297,7 @@ files:
|
|
296
297
|
- app/assets/stylesheets/admin/fonts/OpenSans-Regular-webfont.ttf
|
297
298
|
- app/assets/stylesheets/admin/fonts/OpenSans-Regular-webfont.woff
|
298
299
|
- app/assets/stylesheets/admin/form-builder/formbuilder.css
|
300
|
+
- app/assets/stylesheets/admin/grid-editor.css.scss
|
299
301
|
- app/assets/stylesheets/admin/img/bg.png
|
300
302
|
- app/assets/stylesheets/admin/img/colorpicker/alpha.png
|
301
303
|
- app/assets/stylesheets/admin/img/colorpicker/hue.png
|