kit_cms 2.3.9 → 2.3.10
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/images/mercury/dashboard.png +0 -0
- data/app/assets/images/mercury/info.png +0 -0
- data/app/assets/images/mercury/insertsPanel.png +0 -0
- data/app/assets/images/mercury/related.png +0 -0
- data/app/assets/images/mercury/view.png +0 -0
- data/app/assets/javascripts/{kit/best_in_place.js → best_in_place.js} +0 -0
- data/app/assets/javascripts/codemirror/editor.js +1 -1
- data/app/assets/javascripts/codemirror/sass.js +349 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/ajax.txt +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/blank.gif +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_close.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_loading.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_nav_left.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_nav_right.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_e.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_n.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_ne.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_nw.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_s.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_se.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_sw.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_w.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_title_left.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_title_main.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_title_over.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_title_right.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox-x.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox-y.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox.css +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox.js +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox.png +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/jquery.mousewheel-3.0.4.pack.js +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/index.html +0 -0
- data/app/assets/javascripts/{kit/fancybox → fancybox}/style.css +0 -0
- data/app/assets/javascripts/{kit/gadash-1.0.js → gadash-1.0.js} +0 -0
- data/app/assets/javascripts/{kit/jquery-ui.js → jquery-ui.js} +0 -0
- data/app/assets/javascripts/{kit/jquery.contextmenu.js → jquery.contextmenu.js} +0 -0
- data/app/assets/javascripts/{kit/jquery.fileupload-ui.js → jquery.fileupload-ui.js} +0 -0
- data/app/assets/javascripts/{kit/jquery.fileupload.js → jquery.fileupload.js} +0 -0
- data/app/assets/javascripts/{kit/jquery.js → jquery.js} +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/bg.jpg +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/d.png +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/doc.png +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/dot_for_ie.gif +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/gear.png +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/style.css +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/throbber.gif +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/bg.jpg +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/d.png +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/doc.png +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/dot_for_ie.gif +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/gear.png +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/style.css +0 -0
- data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/throbber.gif +0 -0
- data/app/assets/javascripts/{kit/jquery.validate.js → jquery.validate.js} +0 -0
- data/app/assets/javascripts/jqueryui.js +4 -0
- data/app/assets/javascripts/{kit/jsplumb-min.js → jsplumb-min.js} +0 -0
- data/app/assets/javascripts/{kit_admin.js → kit/cms.js} +5 -4
- data/app/assets/javascripts/kit/{mercury-editor.js.erb → editor.js} +5 -4
- data/app/assets/javascripts/kit/kit.js +12 -0
- data/app/assets/javascripts/kit/utilities.js +0 -15
- data/app/assets/javascripts/{kit/underscore.js → underscore.js} +0 -0
- data/app/assets/javascripts/{kit/waypoint.js → waypoint.js} +0 -0
- data/app/assets/stylesheets/codemirror/editor.css +6 -0
- data/app/assets/stylesheets/codemirror/style.css +2 -2
- data/app/assets/stylesheets/codemirror/theme.css +26 -1
- data/app/assets/stylesheets/{kit_admin.css → kit/admin.css} +0 -0
- data/app/assets/stylesheets/kit/cms.css +35 -0
- data/app/assets/stylesheets/{mercury_editor.css → kit/editor.css} +9 -0
- data/app/assets/stylesheets/{kit.css → kit/kit.css} +4 -4
- data/app/controllers/admin/ad_units_controller.rb +1 -1
- data/app/controllers/admin/block_controller.rb +1 -1
- data/app/controllers/admin/block_instance_controller.rb +1 -1
- data/app/controllers/admin/blocks_controller.rb +1 -1
- data/app/controllers/admin/calendar_entries_controller.rb +1 -1
- data/app/controllers/admin/calendars_controller.rb +1 -1
- data/app/controllers/admin/content_controller.rb +1 -1
- data/app/controllers/admin/dashboard_controller.rb +15 -6
- data/app/controllers/admin/forum_controller.rb +1 -1
- data/app/controllers/admin/help_controller.rb +1 -1
- data/app/controllers/admin/mapping_controller.rb +1 -1
- data/app/controllers/admin/newsletter_controller.rb +1 -1
- data/app/controllers/admin/page_template_terms_controller.rb +1 -1
- data/app/controllers/admin/page_templates_controller.rb +1 -1
- data/app/controllers/admin/preference_controller.rb +1 -1
- data/app/controllers/admin/snippet_controller.rb +1 -1
- data/app/controllers/admin/todo_controller.rb +2 -2
- data/app/controllers/admin/user_controller.rb +1 -1
- data/app/controllers/admin/views_controller.rb +1 -1
- data/app/controllers/admin_controller.rb +1 -1
- data/app/controllers/asset_controller.rb +1 -1
- data/app/controllers/calendar_controller.rb +1 -1
- data/app/controllers/category_controller.rb +2 -2
- data/app/controllers/menu_controller.rb +1 -1
- data/app/controllers/pages_controller.rb +5 -5
- data/app/controllers/utility_controller.rb +1 -1
- data/app/helpers/kit_helper.rb +5 -17
- data/app/helpers/kit_modules_helper.rb +1 -1
- data/app/models/asset.rb +2 -0
- data/app/models/block.rb +1 -0
- data/app/models/block_instance.rb +8 -3
- data/app/models/html_asset.rb +1 -0
- data/app/models/layout.rb +1 -0
- data/app/models/page.rb +2 -3
- data/app/models/page_template.rb +2 -0
- data/app/views/admin/blocks/_form.html.haml +1 -1
- data/app/views/admin/dashboard/system.html.haml +1 -0
- data/app/views/admin/help/edit.html.haml +1 -1
- data/app/views/admin/html_asset/show.html.haml +1 -1
- data/app/views/admin/layouts/show.html.haml +2 -2
- data/app/views/admin/page_templates/_form.html.haml +1 -1
- data/app/views/admin/snippet/edit.html.erb +1 -1
- data/app/views/admin/snippet/new.html.erb +1 -1
- data/app/views/admin/stylesheet/show.html.haml +1 -1
- data/app/views/asset/index.html.haml +0 -3
- data/app/views/layouts/_cms-common.html.erb +1 -1
- data/app/views/layouts/_kit_header.html.haml +2 -2
- data/app/views/layouts/{cms-boxed.html.haml → cms.html.haml} +1 -1
- data/app/views/layouts/mercury-editor.html.erb +2 -8
- data/app/views/pages/content_edit.html.haml +1 -1
- data/app/views/utility/_cm_editor.html.erb +19 -0
- data/app/views/utility/mercury_html.html.haml +0 -3
- data/lib/kit_cms.rb +2 -0
- metadata +66 -196
- data/app/assets/javascripts/admin/advertisments.js +0 -2
- data/app/assets/javascripts/admin/kit_engagement.js +0 -2
- data/app/assets/javascripts/admin/order.js +0 -2
- data/app/assets/javascripts/kit.js +0 -14
- data/app/assets/javascripts/kit/ace/ace.js +0 -11
- data/app/assets/javascripts/kit/ace/ext-static_highlight.js +0 -1
- data/app/assets/javascripts/kit/ace/ext-textarea.js +0 -1
- data/app/assets/javascripts/kit/ace/keybinding-emacs.js +0 -1
- data/app/assets/javascripts/kit/ace/keybinding-vim.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-abap.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-asciidoc.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-c9search.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-c_cpp.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-clojure.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-coffee.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-coldfusion.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-csharp.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-css.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-dart.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-diff.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-dot.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-glsl.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-golang.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-groovy.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-haml.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-haxe.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-html.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-jade.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-java.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-javascript.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-json.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-jsp.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-jsx.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-latex.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-less.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-liquid.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-lisp.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-lua.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-luapage.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-lucene.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-makefile.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-markdown.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-objectivec.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-ocaml.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-perl.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-pgsql.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-php.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-powershell.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-python.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-r.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-rdoc.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-rhtml.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-ruby.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-sass.js +0 -0
- data/app/assets/javascripts/kit/ace/mode-scad.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-scala.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-scss.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-sh.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-sql.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-stylus.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-svg.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-tcl.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-text.js +0 -0
- data/app/assets/javascripts/kit/ace/mode-textile.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-typescript.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-xml.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-xquery.js +0 -1
- data/app/assets/javascripts/kit/ace/mode-yaml.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-ambiance.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-chaos.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-chrome.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-clouds.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-clouds_midnight.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-cobalt.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-crimson_editor.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-dawn.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-dreamweaver.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-eclipse.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-github.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-idle_fingers.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-kr.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-merbivore.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-merbivore_soft.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-mono_industrial.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-monokai.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-pastel_on_dark.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-solarized_dark.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-solarized_light.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-textmate.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-tomorrow.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-tomorrow_night.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-tomorrow_night_blue.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-tomorrow_night_bright.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-tomorrow_night_eighties.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-twilight.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-vibrant_ink.js +0 -1
- data/app/assets/javascripts/kit/ace/theme-xcode.js +0 -1
- data/app/assets/javascripts/kit/ace/worker-coffee.js +0 -1
- data/app/assets/javascripts/kit/ace/worker-css.js +0 -1
- data/app/assets/javascripts/kit/ace/worker-javascript.js +0 -1
- data/app/assets/javascripts/kit/ace/worker-json.js +0 -1
- data/app/assets/javascripts/kit/ace/worker-xquery.js +0 -1
- data/app/assets/javascripts/kit/jquery-ui.min.js +0 -126
- data/app/assets/javascripts/kit/jquery.markitup.js +0 -635
- data/app/assets/javascripts/kit/jquery.min.js +0 -3
- data/app/assets/javascripts/kit/rails_admin/application.js +0 -7
- data/app/assets/javascripts/kit/rails_admin/jquery-1.5.1.min.js +0 -16
- data/app/assets/javascripts/kit/rails_admin/jquery-ui-1.8.10.min.js +0 -405
- data/app/assets/javascripts/kit/rails_admin/jquery.colorpicker.js +0 -484
- data/app/assets/javascripts/kit/rails_admin/jquery.ui.timepicker.js +0 -915
- data/app/assets/javascripts/kit/rails_admin/ra.datetimepicker.js +0 -67
- data/app/assets/javascripts/kit/rails_admin/ra.filtering-multiselect.js +0 -274
- data/app/assets/javascripts/kit/rails_admin/ra.filtering-select.js +0 -179
- data/app/assets/javascripts/kit/rails_admin/ra.remote-form.js +0 -111
- data/app/assets/javascripts/kit/rails_admin/ra.timeline.js +0 -206
- data/app/assets/javascripts/kit/rails_admin/rails.js +0 -289
- data/app/assets/stylesheets/application.css +0 -5
- data/app/assets/stylesheets/kit/rails_admin/aristo/images/bg_fallback.png +0 -0
- data/app/assets/stylesheets/kit/rails_admin/aristo/images/icon_sprite.png +0 -0
- data/app/assets/stylesheets/kit/rails_admin/aristo/images/progress_bar.gif +0 -0
- data/app/assets/stylesheets/kit/rails_admin/aristo/images/slider_handles.png +0 -0
- data/app/assets/stylesheets/kit/rails_admin/aristo/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/stylesheets/kit/rails_admin/aristo/images/ui-icons_454545_256x240.png +0 -0
- data/app/assets/stylesheets/kit/rails_admin/aristo/jquery-ui-1.8.7.custom.css +0 -703
- data/app/assets/stylesheets/kit/rails_admin/base.css +0 -349
- data/app/assets/stylesheets/kit/rails_admin/dashboard.css +0 -88
- data/app/assets/stylesheets/kit/rails_admin/form.css +0 -147
- data/app/assets/stylesheets/kit/rails_admin/jquery.colorpicker.css +0 -179
- data/app/assets/stylesheets/kit/rails_admin/jquery.ui.timepicker.css +0 -39
- data/app/assets/stylesheets/kit/rails_admin/list.css +0 -127
- data/app/assets/stylesheets/kit/rails_admin/ra.filtering-multiselect.css +0 -113
- data/app/assets/stylesheets/kit/rails_admin/ra.filtering-select.css +0 -7
- data/app/assets/stylesheets/kit/rails_admin/ra.timeline.css +0 -77
- data/app/assets/stylesheets/kit/ui.tar.gz +0 -0
- data/app/assets/stylesheets/mercury_overrides.css +0 -23
- data/app/views/layouts/cms.html.erb +0 -66
- data/app/views/utility/_ace_editor.html.erb +0 -10
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,9 +1,10 @@
|
|
1
1
|
/*
|
2
2
|
*= require './kit'
|
3
|
-
*= require './
|
4
|
-
*= require '
|
5
|
-
*= require '
|
6
|
-
*= require '
|
3
|
+
*= require './application-edit'
|
4
|
+
*= require '../underscore'
|
5
|
+
*= require '../jquery.contextmenu'
|
6
|
+
*= require '../jquery.fileupload'
|
7
|
+
*= require './tree'
|
7
8
|
*= require_self
|
8
9
|
*/
|
9
10
|
|
@@ -23,12 +23,13 @@
|
|
23
23
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
24
24
|
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
25
|
*
|
26
|
+
*= require '../jquery'
|
27
|
+
*= require '../jquery-ui'
|
28
|
+
*= require './utilities'
|
29
|
+
*= require './application-edit'
|
30
|
+
*= require '../codemirror/editor'
|
26
31
|
*= require_self
|
27
32
|
*
|
28
|
-
* Minimum jQuery requirements are 1.7
|
29
|
-
*= require jquery
|
30
|
-
*= require jquery-ui.min
|
31
|
-
*
|
32
33
|
* You can include the Rails jQuery ujs script here to get some nicer behaviors in modals, panels and lightviews when
|
33
34
|
* using :remote => true within the contents rendered in them.
|
34
35
|
* require jquery_ujs
|
@@ -17,21 +17,6 @@ select_change_parent = function(element, child, data, value) {
|
|
17
17
|
$('#' + child).html(op);
|
18
18
|
}
|
19
19
|
|
20
|
-
var ace_editor = null;
|
21
|
-
|
22
|
-
function create_ace_editor(mode, field, content) {
|
23
|
-
ace_editor = ace.edit('editor_body');
|
24
|
-
ace_editor.setTheme("ace/theme/textmate");
|
25
|
-
var editorMode = require("ace/mode/" + mode).Mode;
|
26
|
-
ace_editor.getSession().setMode(new editorMode());
|
27
|
-
ace_editor.getSession().setTabSize(2);
|
28
|
-
ace_editor.setShowPrintMargin(false);
|
29
|
-
ace_editor.getSession().setValue(content);
|
30
|
-
|
31
|
-
$('.cms_form form').on('submit', function() {
|
32
|
-
$('#'+ field).val(ace_editor.getSession().getValue());
|
33
|
-
});
|
34
|
-
}
|
35
20
|
|
36
21
|
function markup_menu(id) {
|
37
22
|
var first_top_level = true;
|
File without changes
|
File without changes
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
.cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
|
4
4
|
.cm-s-blackboard .CodeMirror-selected { background: blue !important; }
|
5
|
-
.cm-s-blackboard .CodeMirror-gutters { background: #
|
5
|
+
.cm-s-blackboard .CodeMirror-gutters { background: #4C5061; border-right: 0; }
|
6
6
|
.cm-s-blackboard .CodeMirror-linenumber { color: #888; }
|
7
7
|
.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
|
8
8
|
|
@@ -23,3 +23,28 @@
|
|
23
23
|
.cm-s-blackboard .cm-header { color: #FF6400; }
|
24
24
|
.cm-s-blackboard .cm-hr { color: #AEAEAE; }
|
25
25
|
.cm-s-blackboard .cm-link { color: #8DA6CE; }
|
26
|
+
|
27
|
+
.cm-s-blackboard-cms.CodeMirror { width: 740px !important; height: 600px !important; background: #0C1021; color: #F8F8F8; }
|
28
|
+
.cm-s-blackboard-cms .CodeMirror-selected { background: blue !important; }
|
29
|
+
.cm-s-blackboard-cms .CodeMirror-gutters { background: #4C5061; border-right: 0; }
|
30
|
+
.cm-s-blackboard-cms .CodeMirror-linenumber { color: #888; }
|
31
|
+
.cm-s-blackboard-cms .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
|
32
|
+
|
33
|
+
.cm-s-blackboard-cms .cm-keyword { color: #FBDE2D; }
|
34
|
+
.cm-s-blackboard-cms .cm-atom { color: #D8FA3C; }
|
35
|
+
.cm-s-blackboard-cms .cm-number { color: #D8FA3C; }
|
36
|
+
.cm-s-blackboard-cms .cm-def { color: #8DA6CE; }
|
37
|
+
.cm-s-blackboard-cms .cm-variable { color: #FF6400; }
|
38
|
+
.cm-s-blackboard-cms .cm-operator { color: #FBDE2D;}
|
39
|
+
.cm-s-blackboard-cms .cm-comment { color: #AEAEAE; }
|
40
|
+
.cm-s-blackboard-cms .cm-string { color: #61CE3C; }
|
41
|
+
.cm-s-blackboard-cms .cm-string-2 { color: #61CE3C; }
|
42
|
+
.cm-s-blackboard-cms .cm-meta { color: #D8FA3C; }
|
43
|
+
.cm-s-blackboard-cms .cm-error { background: #9D1E15; color: #F8F8F8; }
|
44
|
+
.cm-s-blackboard-cms .cm-builtin { color: #8DA6CE; }
|
45
|
+
.cm-s-blackboard-cms .cm-tag { color: #8DA6CE; }
|
46
|
+
.cm-s-blackboard-cms .cm-attribute { color: #8DA6CE; }
|
47
|
+
.cm-s-blackboard-cms .cm-header { color: #FF6400; }
|
48
|
+
.cm-s-blackboard-cms .cm-hr { color: #AEAEAE; }
|
49
|
+
.cm-s-blackboard-cms .cm-link { color: #8DA6CE; }
|
50
|
+
|
File without changes
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
*= require_tree "./cms"
|
3
|
+
*= require_tree "./ui-lightness"
|
4
|
+
*= require '../codemirror/editor'
|
5
|
+
*= require "./calendar"
|
6
|
+
*= require "./fancybox"
|
7
|
+
*/
|
8
|
+
|
9
|
+
.ui-widget {
|
10
|
+
background-color: white;
|
11
|
+
font-family: 'Oxygen', sans-serif, arial, helvetica, sans-serif;
|
12
|
+
font-size: 14px;
|
13
|
+
line-height: 18px;
|
14
|
+
}
|
15
|
+
|
16
|
+
.ui-widget-header {
|
17
|
+
background-color: #AD3131 !important;
|
18
|
+
border-color: black;
|
19
|
+
background-image: none;
|
20
|
+
}
|
21
|
+
|
22
|
+
.ui-dialog {
|
23
|
+
background-color: white;
|
24
|
+
}
|
25
|
+
|
26
|
+
.ui-dialog-content {
|
27
|
+
padding: 10px;
|
28
|
+
}
|
29
|
+
|
30
|
+
.ui-dialog-title {
|
31
|
+
background-color: #AD3131 !important;
|
32
|
+
|
33
|
+
}
|
34
|
+
|
35
|
+
|
@@ -1,3 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
*= require_self
|
3
|
+
*= require '../codemirror/editor'
|
4
|
+
*= require 'mercury'
|
5
|
+
*/
|
6
|
+
|
1
7
|
html { -webkit-text-size-adjust: none; }
|
2
8
|
|
3
9
|
/* Button example */
|
@@ -18,6 +24,9 @@ html { -webkit-text-size-adjust: none; }
|
|
18
24
|
.mercury-primary-toolbar .mercury-related-button em {
|
19
25
|
background-image: url(/assets/mercury/related.png);
|
20
26
|
}
|
27
|
+
.mercury-primary-toolbar .mercury-insertsPanel-button em {
|
28
|
+
background-image: url(/assets/mercury/insertsPanel.png);
|
29
|
+
}
|
21
30
|
|
22
31
|
div#mercury_notes {
|
23
32
|
width: 300px;
|
@@ -15,7 +15,7 @@ class Admin::BlockInstanceController < AdminController
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def show
|
18
|
-
@instance = BlockInstance.where(:
|
18
|
+
@instance = BlockInstance.where(:id=>params[:id]).sys(_sid).where(:version=>params[:version] || 0).first
|
19
19
|
if @instance
|
20
20
|
@block = @instance.block
|
21
21
|
@options = BlockInstance.where(:page_id=>params[:page_id]).where(:version=>@instance.version).where(:instance_id=>@instance.instance_id).sys(_sid).all
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class Admin::DashboardController < AdminController
|
2
|
-
layout "cms
|
2
|
+
layout "cms"
|
3
3
|
|
4
4
|
def user_comment
|
5
5
|
comment = Comment.sys(_sid).where(:id=>params[:id]).first
|
@@ -357,10 +357,19 @@ class Admin::DashboardController < AdminController
|
|
357
357
|
|
358
358
|
def reindex
|
359
359
|
@@to_search.each do |model|
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
360
|
+
modelk = Kernel.const_get(model)
|
361
|
+
|
362
|
+
modelk.index.delete rescue nil
|
363
|
+
modelk.create_elasticsearch_index
|
364
|
+
|
365
|
+
if params[:slow]
|
366
|
+
modelk.find_each do |record|
|
367
|
+
logger.info "Importing #{model} #{record.id}"
|
368
|
+
modelk.index.store record
|
369
|
+
end
|
370
|
+
else
|
371
|
+
modelk.import :per_page=>1000
|
372
|
+
end
|
364
373
|
end
|
365
374
|
|
366
375
|
flash[:notice] = "Reindex complete"
|
@@ -419,7 +428,7 @@ class Admin::DashboardController < AdminController
|
|
419
428
|
if request.xhr?
|
420
429
|
render :partial=>"activity_list"
|
421
430
|
else
|
422
|
-
render "activity", :layout=>"cms
|
431
|
+
render "activity", :layout=>"cms"
|
423
432
|
end
|
424
433
|
end
|
425
434
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class Admin::TodoController < AdminController
|
2
|
-
layout 'cms
|
2
|
+
layout 'cms'
|
3
3
|
|
4
4
|
def test
|
5
5
|
|
@@ -21,7 +21,7 @@ class Admin::TodoController < AdminController
|
|
21
21
|
if params[:todo_paginate]
|
22
22
|
render :partial=>"/admin/todo/sidebar"
|
23
23
|
else
|
24
|
-
render "/admin/todo/search", :layout=>"cms
|
24
|
+
render "/admin/todo/search", :layout=>"cms"
|
25
25
|
end
|
26
26
|
|
27
27
|
end
|