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.
Files changed (261) hide show
  1. data/app/assets/images/mercury/dashboard.png +0 -0
  2. data/app/assets/images/mercury/info.png +0 -0
  3. data/app/assets/images/mercury/insertsPanel.png +0 -0
  4. data/app/assets/images/mercury/related.png +0 -0
  5. data/app/assets/images/mercury/view.png +0 -0
  6. data/app/assets/javascripts/{kit/best_in_place.js → best_in_place.js} +0 -0
  7. data/app/assets/javascripts/codemirror/editor.js +1 -1
  8. data/app/assets/javascripts/codemirror/sass.js +349 -0
  9. data/app/assets/javascripts/{kit/fancybox → fancybox}/ajax.txt +0 -0
  10. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/blank.gif +0 -0
  11. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_close.png +0 -0
  12. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_loading.png +0 -0
  13. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_nav_left.png +0 -0
  14. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_nav_right.png +0 -0
  15. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_e.png +0 -0
  16. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_n.png +0 -0
  17. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_ne.png +0 -0
  18. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_nw.png +0 -0
  19. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_s.png +0 -0
  20. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_se.png +0 -0
  21. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_sw.png +0 -0
  22. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_shadow_w.png +0 -0
  23. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_title_left.png +0 -0
  24. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_title_main.png +0 -0
  25. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_title_over.png +0 -0
  26. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancy_title_right.png +0 -0
  27. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox-x.png +0 -0
  28. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox-y.png +0 -0
  29. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox.css +0 -0
  30. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox.js +0 -0
  31. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/fancybox.png +0 -0
  32. data/app/assets/javascripts/{kit/fancybox → fancybox}/fancybox/jquery.mousewheel-3.0.4.pack.js +0 -0
  33. data/app/assets/javascripts/{kit/fancybox → fancybox}/index.html +0 -0
  34. data/app/assets/javascripts/{kit/fancybox → fancybox}/style.css +0 -0
  35. data/app/assets/javascripts/{kit/gadash-1.0.js → gadash-1.0.js} +0 -0
  36. data/app/assets/javascripts/{kit/jquery-ui.js → jquery-ui.js} +0 -0
  37. data/app/assets/javascripts/{kit/jquery.contextmenu.js → jquery.contextmenu.js} +0 -0
  38. data/app/assets/javascripts/{kit/jquery.fileupload-ui.js → jquery.fileupload-ui.js} +0 -0
  39. data/app/assets/javascripts/{kit/jquery.fileupload.js → jquery.fileupload.js} +0 -0
  40. data/app/assets/javascripts/{kit/jquery.js → jquery.js} +0 -0
  41. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/bg.jpg +0 -0
  42. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/d.png +0 -0
  43. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/doc.png +0 -0
  44. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/dot_for_ie.gif +0 -0
  45. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/gear.png +0 -0
  46. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/style.css +0 -0
  47. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/apple/throbber.gif +0 -0
  48. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/bg.jpg +0 -0
  49. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/d.png +0 -0
  50. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/doc.png +0 -0
  51. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/dot_for_ie.gif +0 -0
  52. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/gear.png +0 -0
  53. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/style.css +0 -0
  54. data/app/assets/javascripts/{kit/jquery.themes → jquery.themes}/default/throbber.gif +0 -0
  55. data/app/assets/javascripts/{kit/jquery.validate.js → jquery.validate.js} +0 -0
  56. data/app/assets/javascripts/jqueryui.js +4 -0
  57. data/app/assets/javascripts/{kit/jsplumb-min.js → jsplumb-min.js} +0 -0
  58. data/app/assets/javascripts/{kit_admin.js → kit/cms.js} +5 -4
  59. data/app/assets/javascripts/kit/{mercury-editor.js.erb → editor.js} +5 -4
  60. data/app/assets/javascripts/kit/kit.js +12 -0
  61. data/app/assets/javascripts/kit/utilities.js +0 -15
  62. data/app/assets/javascripts/{kit/underscore.js → underscore.js} +0 -0
  63. data/app/assets/javascripts/{kit/waypoint.js → waypoint.js} +0 -0
  64. data/app/assets/stylesheets/codemirror/editor.css +6 -0
  65. data/app/assets/stylesheets/codemirror/style.css +2 -2
  66. data/app/assets/stylesheets/codemirror/theme.css +26 -1
  67. data/app/assets/stylesheets/{kit_admin.css → kit/admin.css} +0 -0
  68. data/app/assets/stylesheets/kit/cms.css +35 -0
  69. data/app/assets/stylesheets/{mercury_editor.css → kit/editor.css} +9 -0
  70. data/app/assets/stylesheets/{kit.css → kit/kit.css} +4 -4
  71. data/app/controllers/admin/ad_units_controller.rb +1 -1
  72. data/app/controllers/admin/block_controller.rb +1 -1
  73. data/app/controllers/admin/block_instance_controller.rb +1 -1
  74. data/app/controllers/admin/blocks_controller.rb +1 -1
  75. data/app/controllers/admin/calendar_entries_controller.rb +1 -1
  76. data/app/controllers/admin/calendars_controller.rb +1 -1
  77. data/app/controllers/admin/content_controller.rb +1 -1
  78. data/app/controllers/admin/dashboard_controller.rb +15 -6
  79. data/app/controllers/admin/forum_controller.rb +1 -1
  80. data/app/controllers/admin/help_controller.rb +1 -1
  81. data/app/controllers/admin/mapping_controller.rb +1 -1
  82. data/app/controllers/admin/newsletter_controller.rb +1 -1
  83. data/app/controllers/admin/page_template_terms_controller.rb +1 -1
  84. data/app/controllers/admin/page_templates_controller.rb +1 -1
  85. data/app/controllers/admin/preference_controller.rb +1 -1
  86. data/app/controllers/admin/snippet_controller.rb +1 -1
  87. data/app/controllers/admin/todo_controller.rb +2 -2
  88. data/app/controllers/admin/user_controller.rb +1 -1
  89. data/app/controllers/admin/views_controller.rb +1 -1
  90. data/app/controllers/admin_controller.rb +1 -1
  91. data/app/controllers/asset_controller.rb +1 -1
  92. data/app/controllers/calendar_controller.rb +1 -1
  93. data/app/controllers/category_controller.rb +2 -2
  94. data/app/controllers/menu_controller.rb +1 -1
  95. data/app/controllers/pages_controller.rb +5 -5
  96. data/app/controllers/utility_controller.rb +1 -1
  97. data/app/helpers/kit_helper.rb +5 -17
  98. data/app/helpers/kit_modules_helper.rb +1 -1
  99. data/app/models/asset.rb +2 -0
  100. data/app/models/block.rb +1 -0
  101. data/app/models/block_instance.rb +8 -3
  102. data/app/models/html_asset.rb +1 -0
  103. data/app/models/layout.rb +1 -0
  104. data/app/models/page.rb +2 -3
  105. data/app/models/page_template.rb +2 -0
  106. data/app/views/admin/blocks/_form.html.haml +1 -1
  107. data/app/views/admin/dashboard/system.html.haml +1 -0
  108. data/app/views/admin/help/edit.html.haml +1 -1
  109. data/app/views/admin/html_asset/show.html.haml +1 -1
  110. data/app/views/admin/layouts/show.html.haml +2 -2
  111. data/app/views/admin/page_templates/_form.html.haml +1 -1
  112. data/app/views/admin/snippet/edit.html.erb +1 -1
  113. data/app/views/admin/snippet/new.html.erb +1 -1
  114. data/app/views/admin/stylesheet/show.html.haml +1 -1
  115. data/app/views/asset/index.html.haml +0 -3
  116. data/app/views/layouts/_cms-common.html.erb +1 -1
  117. data/app/views/layouts/_kit_header.html.haml +2 -2
  118. data/app/views/layouts/{cms-boxed.html.haml → cms.html.haml} +1 -1
  119. data/app/views/layouts/mercury-editor.html.erb +2 -8
  120. data/app/views/pages/content_edit.html.haml +1 -1
  121. data/app/views/utility/_cm_editor.html.erb +19 -0
  122. data/app/views/utility/mercury_html.html.haml +0 -3
  123. data/lib/kit_cms.rb +2 -0
  124. metadata +66 -196
  125. data/app/assets/javascripts/admin/advertisments.js +0 -2
  126. data/app/assets/javascripts/admin/kit_engagement.js +0 -2
  127. data/app/assets/javascripts/admin/order.js +0 -2
  128. data/app/assets/javascripts/kit.js +0 -14
  129. data/app/assets/javascripts/kit/ace/ace.js +0 -11
  130. data/app/assets/javascripts/kit/ace/ext-static_highlight.js +0 -1
  131. data/app/assets/javascripts/kit/ace/ext-textarea.js +0 -1
  132. data/app/assets/javascripts/kit/ace/keybinding-emacs.js +0 -1
  133. data/app/assets/javascripts/kit/ace/keybinding-vim.js +0 -1
  134. data/app/assets/javascripts/kit/ace/mode-abap.js +0 -1
  135. data/app/assets/javascripts/kit/ace/mode-asciidoc.js +0 -1
  136. data/app/assets/javascripts/kit/ace/mode-c9search.js +0 -1
  137. data/app/assets/javascripts/kit/ace/mode-c_cpp.js +0 -1
  138. data/app/assets/javascripts/kit/ace/mode-clojure.js +0 -1
  139. data/app/assets/javascripts/kit/ace/mode-coffee.js +0 -1
  140. data/app/assets/javascripts/kit/ace/mode-coldfusion.js +0 -1
  141. data/app/assets/javascripts/kit/ace/mode-csharp.js +0 -1
  142. data/app/assets/javascripts/kit/ace/mode-css.js +0 -1
  143. data/app/assets/javascripts/kit/ace/mode-dart.js +0 -1
  144. data/app/assets/javascripts/kit/ace/mode-diff.js +0 -1
  145. data/app/assets/javascripts/kit/ace/mode-dot.js +0 -1
  146. data/app/assets/javascripts/kit/ace/mode-glsl.js +0 -1
  147. data/app/assets/javascripts/kit/ace/mode-golang.js +0 -1
  148. data/app/assets/javascripts/kit/ace/mode-groovy.js +0 -1
  149. data/app/assets/javascripts/kit/ace/mode-haml.js +0 -1
  150. data/app/assets/javascripts/kit/ace/mode-haxe.js +0 -1
  151. data/app/assets/javascripts/kit/ace/mode-html.js +0 -1
  152. data/app/assets/javascripts/kit/ace/mode-jade.js +0 -1
  153. data/app/assets/javascripts/kit/ace/mode-java.js +0 -1
  154. data/app/assets/javascripts/kit/ace/mode-javascript.js +0 -1
  155. data/app/assets/javascripts/kit/ace/mode-json.js +0 -1
  156. data/app/assets/javascripts/kit/ace/mode-jsp.js +0 -1
  157. data/app/assets/javascripts/kit/ace/mode-jsx.js +0 -1
  158. data/app/assets/javascripts/kit/ace/mode-latex.js +0 -1
  159. data/app/assets/javascripts/kit/ace/mode-less.js +0 -1
  160. data/app/assets/javascripts/kit/ace/mode-liquid.js +0 -1
  161. data/app/assets/javascripts/kit/ace/mode-lisp.js +0 -1
  162. data/app/assets/javascripts/kit/ace/mode-lua.js +0 -1
  163. data/app/assets/javascripts/kit/ace/mode-luapage.js +0 -1
  164. data/app/assets/javascripts/kit/ace/mode-lucene.js +0 -1
  165. data/app/assets/javascripts/kit/ace/mode-makefile.js +0 -1
  166. data/app/assets/javascripts/kit/ace/mode-markdown.js +0 -1
  167. data/app/assets/javascripts/kit/ace/mode-objectivec.js +0 -1
  168. data/app/assets/javascripts/kit/ace/mode-ocaml.js +0 -1
  169. data/app/assets/javascripts/kit/ace/mode-perl.js +0 -1
  170. data/app/assets/javascripts/kit/ace/mode-pgsql.js +0 -1
  171. data/app/assets/javascripts/kit/ace/mode-php.js +0 -1
  172. data/app/assets/javascripts/kit/ace/mode-powershell.js +0 -1
  173. data/app/assets/javascripts/kit/ace/mode-python.js +0 -1
  174. data/app/assets/javascripts/kit/ace/mode-r.js +0 -1
  175. data/app/assets/javascripts/kit/ace/mode-rdoc.js +0 -1
  176. data/app/assets/javascripts/kit/ace/mode-rhtml.js +0 -1
  177. data/app/assets/javascripts/kit/ace/mode-ruby.js +0 -1
  178. data/app/assets/javascripts/kit/ace/mode-sass.js +0 -0
  179. data/app/assets/javascripts/kit/ace/mode-scad.js +0 -1
  180. data/app/assets/javascripts/kit/ace/mode-scala.js +0 -1
  181. data/app/assets/javascripts/kit/ace/mode-scss.js +0 -1
  182. data/app/assets/javascripts/kit/ace/mode-sh.js +0 -1
  183. data/app/assets/javascripts/kit/ace/mode-sql.js +0 -1
  184. data/app/assets/javascripts/kit/ace/mode-stylus.js +0 -1
  185. data/app/assets/javascripts/kit/ace/mode-svg.js +0 -1
  186. data/app/assets/javascripts/kit/ace/mode-tcl.js +0 -1
  187. data/app/assets/javascripts/kit/ace/mode-text.js +0 -0
  188. data/app/assets/javascripts/kit/ace/mode-textile.js +0 -1
  189. data/app/assets/javascripts/kit/ace/mode-typescript.js +0 -1
  190. data/app/assets/javascripts/kit/ace/mode-xml.js +0 -1
  191. data/app/assets/javascripts/kit/ace/mode-xquery.js +0 -1
  192. data/app/assets/javascripts/kit/ace/mode-yaml.js +0 -1
  193. data/app/assets/javascripts/kit/ace/theme-ambiance.js +0 -1
  194. data/app/assets/javascripts/kit/ace/theme-chaos.js +0 -1
  195. data/app/assets/javascripts/kit/ace/theme-chrome.js +0 -1
  196. data/app/assets/javascripts/kit/ace/theme-clouds.js +0 -1
  197. data/app/assets/javascripts/kit/ace/theme-clouds_midnight.js +0 -1
  198. data/app/assets/javascripts/kit/ace/theme-cobalt.js +0 -1
  199. data/app/assets/javascripts/kit/ace/theme-crimson_editor.js +0 -1
  200. data/app/assets/javascripts/kit/ace/theme-dawn.js +0 -1
  201. data/app/assets/javascripts/kit/ace/theme-dreamweaver.js +0 -1
  202. data/app/assets/javascripts/kit/ace/theme-eclipse.js +0 -1
  203. data/app/assets/javascripts/kit/ace/theme-github.js +0 -1
  204. data/app/assets/javascripts/kit/ace/theme-idle_fingers.js +0 -1
  205. data/app/assets/javascripts/kit/ace/theme-kr.js +0 -1
  206. data/app/assets/javascripts/kit/ace/theme-merbivore.js +0 -1
  207. data/app/assets/javascripts/kit/ace/theme-merbivore_soft.js +0 -1
  208. data/app/assets/javascripts/kit/ace/theme-mono_industrial.js +0 -1
  209. data/app/assets/javascripts/kit/ace/theme-monokai.js +0 -1
  210. data/app/assets/javascripts/kit/ace/theme-pastel_on_dark.js +0 -1
  211. data/app/assets/javascripts/kit/ace/theme-solarized_dark.js +0 -1
  212. data/app/assets/javascripts/kit/ace/theme-solarized_light.js +0 -1
  213. data/app/assets/javascripts/kit/ace/theme-textmate.js +0 -1
  214. data/app/assets/javascripts/kit/ace/theme-tomorrow.js +0 -1
  215. data/app/assets/javascripts/kit/ace/theme-tomorrow_night.js +0 -1
  216. data/app/assets/javascripts/kit/ace/theme-tomorrow_night_blue.js +0 -1
  217. data/app/assets/javascripts/kit/ace/theme-tomorrow_night_bright.js +0 -1
  218. data/app/assets/javascripts/kit/ace/theme-tomorrow_night_eighties.js +0 -1
  219. data/app/assets/javascripts/kit/ace/theme-twilight.js +0 -1
  220. data/app/assets/javascripts/kit/ace/theme-vibrant_ink.js +0 -1
  221. data/app/assets/javascripts/kit/ace/theme-xcode.js +0 -1
  222. data/app/assets/javascripts/kit/ace/worker-coffee.js +0 -1
  223. data/app/assets/javascripts/kit/ace/worker-css.js +0 -1
  224. data/app/assets/javascripts/kit/ace/worker-javascript.js +0 -1
  225. data/app/assets/javascripts/kit/ace/worker-json.js +0 -1
  226. data/app/assets/javascripts/kit/ace/worker-xquery.js +0 -1
  227. data/app/assets/javascripts/kit/jquery-ui.min.js +0 -126
  228. data/app/assets/javascripts/kit/jquery.markitup.js +0 -635
  229. data/app/assets/javascripts/kit/jquery.min.js +0 -3
  230. data/app/assets/javascripts/kit/rails_admin/application.js +0 -7
  231. data/app/assets/javascripts/kit/rails_admin/jquery-1.5.1.min.js +0 -16
  232. data/app/assets/javascripts/kit/rails_admin/jquery-ui-1.8.10.min.js +0 -405
  233. data/app/assets/javascripts/kit/rails_admin/jquery.colorpicker.js +0 -484
  234. data/app/assets/javascripts/kit/rails_admin/jquery.ui.timepicker.js +0 -915
  235. data/app/assets/javascripts/kit/rails_admin/ra.datetimepicker.js +0 -67
  236. data/app/assets/javascripts/kit/rails_admin/ra.filtering-multiselect.js +0 -274
  237. data/app/assets/javascripts/kit/rails_admin/ra.filtering-select.js +0 -179
  238. data/app/assets/javascripts/kit/rails_admin/ra.remote-form.js +0 -111
  239. data/app/assets/javascripts/kit/rails_admin/ra.timeline.js +0 -206
  240. data/app/assets/javascripts/kit/rails_admin/rails.js +0 -289
  241. data/app/assets/stylesheets/application.css +0 -5
  242. data/app/assets/stylesheets/kit/rails_admin/aristo/images/bg_fallback.png +0 -0
  243. data/app/assets/stylesheets/kit/rails_admin/aristo/images/icon_sprite.png +0 -0
  244. data/app/assets/stylesheets/kit/rails_admin/aristo/images/progress_bar.gif +0 -0
  245. data/app/assets/stylesheets/kit/rails_admin/aristo/images/slider_handles.png +0 -0
  246. data/app/assets/stylesheets/kit/rails_admin/aristo/images/ui-icons_222222_256x240.png +0 -0
  247. data/app/assets/stylesheets/kit/rails_admin/aristo/images/ui-icons_454545_256x240.png +0 -0
  248. data/app/assets/stylesheets/kit/rails_admin/aristo/jquery-ui-1.8.7.custom.css +0 -703
  249. data/app/assets/stylesheets/kit/rails_admin/base.css +0 -349
  250. data/app/assets/stylesheets/kit/rails_admin/dashboard.css +0 -88
  251. data/app/assets/stylesheets/kit/rails_admin/form.css +0 -147
  252. data/app/assets/stylesheets/kit/rails_admin/jquery.colorpicker.css +0 -179
  253. data/app/assets/stylesheets/kit/rails_admin/jquery.ui.timepicker.css +0 -39
  254. data/app/assets/stylesheets/kit/rails_admin/list.css +0 -127
  255. data/app/assets/stylesheets/kit/rails_admin/ra.filtering-multiselect.css +0 -113
  256. data/app/assets/stylesheets/kit/rails_admin/ra.filtering-select.css +0 -7
  257. data/app/assets/stylesheets/kit/rails_admin/ra.timeline.css +0 -77
  258. data/app/assets/stylesheets/kit/ui.tar.gz +0 -0
  259. data/app/assets/stylesheets/mercury_overrides.css +0 -23
  260. data/app/views/layouts/cms.html.erb +0 -66
  261. data/app/views/utility/_ace_editor.html.erb +0 -10
File without changes
@@ -0,0 +1,4 @@
1
+ /*
2
+ *= require './kit/jquery'
3
+ *= require './kit/jquery-ui'
4
+ */
@@ -1,9 +1,10 @@
1
1
  /*
2
2
  *= require './kit'
3
- *= require './kit/application-edit'
4
- *= require './kit/underscore'
5
- *= require './kit/jquery.contextmenu'
6
- *= require './kit/tree'
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
@@ -0,0 +1,12 @@
1
+ /* kit.js from within kit */
2
+ /*
3
+ *= require "../jquery"
4
+ *= require "../jquery-ui"
5
+ *= require "../jquery.validate"
6
+ *= require "../best_in_place"
7
+ *= require "./markdown"
8
+ *= require "jquery_ujs"
9
+ *= require "./utilities.js"
10
+ */
11
+
12
+
@@ -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;
@@ -0,0 +1,6 @@
1
+ /*
2
+ *= require "./style.css"
3
+ *= require "./theme.css"
4
+ *= require "./dialog.css"
5
+ */
6
+
@@ -4,8 +4,8 @@
4
4
  /* Set height, width, borders, and global font properties here */
5
5
  font-family: monospace;
6
6
  height: 800px;
7
- font-size: 16px;
8
- line-height: 16px;
7
+ font-size: 15px;
8
+ line-height: 18px;
9
9
  }
10
10
  .CodeMirror-scroll {
11
11
  /* Set scrolling behaviour here */
@@ -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: #0C1021; border-right: 0; }
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
+
@@ -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;
@@ -1,8 +1,8 @@
1
1
  /*
2
- *= require './kit/forums'
3
- *= require './kit/calendar'
4
- *= require './kit/dsc'
5
- *= require './kit/markdown.css'
2
+ *= require './forums'
3
+ *= require './calendar'
4
+ *= require './dsc'
5
+ *= require './markdown.css'
6
6
  *= require_self
7
7
  */
8
8
 
@@ -1,6 +1,6 @@
1
1
  class Admin::AdUnitsController < AdminController
2
2
 
3
- layout 'cms-boxed'
3
+ layout 'cms'
4
4
 
5
5
  def create_block
6
6
  @ad_unit = AdUnit.find_sys_id(_sid, params[:id])
@@ -1,6 +1,6 @@
1
1
  class Admin::BlockController < AdminController
2
2
 
3
- layout "cms-boxed"
3
+ layout "cms"
4
4
 
5
5
  def index
6
6
  @blocks = Block
@@ -15,7 +15,7 @@ class Admin::BlockInstanceController < AdminController
15
15
  end
16
16
 
17
17
  def show
18
- @instance = BlockInstance.where(:page_id=>params[:page_id]).where(:id=>params[:id]).sys(_sid).where(:version=>params[:version] || 0).first
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::BlocksController < AdminController
2
- layout "cms-boxed"
2
+ layout "cms"
3
3
 
4
4
  def index
5
5
  @blocks = Block.sys(_sid).order(:name)
@@ -2,7 +2,7 @@ class Admin::CalendarEntriesController < AdminController
2
2
 
3
3
  before_filter { licensed('calendars') }
4
4
 
5
- layout "cms-boxed"
5
+ layout "cms"
6
6
 
7
7
  def sold
8
8
  @calendar_entry = CalendarEntry.where(:id=>params[:id]).sys(_sid).first
@@ -1,7 +1,7 @@
1
1
  class Admin::CalendarsController < AdminController
2
2
  before_filter :licensed
3
3
 
4
- layout "cms-boxed"
4
+ layout "cms"
5
5
 
6
6
 
7
7
  def index
@@ -1,6 +1,6 @@
1
1
  class Admin::ContentController < AdminController
2
2
 
3
- layout 'cms-boxed'
3
+ layout 'cms'
4
4
 
5
5
  def match
6
6
  @page = Page.where(:id=>params[:id]).sys(_sid).first
@@ -1,5 +1,5 @@
1
1
  class Admin::DashboardController < AdminController
2
- layout "cms-boxed"
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
- force_class = model.constantize.new
361
- eval("#{model}.index.delete") rescue nil
362
- eval("#{model}.create_elasticsearch_index")
363
- eval("#{model}.import :per_page=>5000")
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-boxed"
431
+ render "activity", :layout=>"cms"
423
432
  end
424
433
  end
425
434
 
@@ -1,7 +1,7 @@
1
1
  class Admin::ForumController < AdminController
2
2
  before_filter { licensed("forums") }
3
3
 
4
- layout 'cms-boxed'
4
+ layout 'cms'
5
5
 
6
6
 
7
7
  def index
@@ -1,6 +1,6 @@
1
1
  class Admin::HelpController < AdminController
2
2
 
3
- layout 'cms-boxed'
3
+ layout 'cms'
4
4
  def edit
5
5
  @help = Help.find(params[:id])
6
6
  end
@@ -1,6 +1,6 @@
1
1
  class Admin::MappingController < AdminController
2
2
 
3
- layout "cms-boxed"
3
+ layout "cms"
4
4
 
5
5
  def index
6
6
  @mappings = Mapping.sys(_sid).where(:hidden=>0).order(:source_url).page(params[:page]).per(20)
@@ -2,7 +2,7 @@ require 'net/pop'
2
2
  require 'net/smtp'
3
3
 
4
4
  class Admin::NewsletterController < AdminController
5
- layout "cms-boxed"
5
+ layout "cms"
6
6
  before_filter { licensed("newsletters") }
7
7
 
8
8
  def email
@@ -1,6 +1,6 @@
1
1
  class Admin::PageTemplateTermsController < AdminController
2
2
 
3
- layout "cms-boxed"
3
+ layout "cms"
4
4
 
5
5
  def index
6
6
  @page_template_terms = PageTemplateTerm.where(:page_template_id=>params[:page_template_id]).sys(_sid).all
@@ -1,5 +1,5 @@
1
1
  class Admin::PageTemplatesController < AdminController
2
- layout "cms-boxed"
2
+ layout "cms"
3
3
 
4
4
  def pages
5
5
  @page_template = PageTemplate.sys(_sid).where(:id=>params[:id]).first
@@ -1,6 +1,6 @@
1
1
  class Admin::PreferenceController < AdminController
2
2
 
3
- layout "cms-boxed"
3
+ layout "cms"
4
4
 
5
5
  def index
6
6
  @user_link = UserLink.new
@@ -1,6 +1,6 @@
1
1
  class Admin::SnippetController < AdminController
2
2
 
3
- layout "cms-boxed"
3
+ layout "cms"
4
4
 
5
5
  def index
6
6
  @snippets = Snippet
@@ -1,5 +1,5 @@
1
1
  class Admin::TodoController < AdminController
2
- layout 'cms-boxed'
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-boxed"
24
+ render "/admin/todo/search", :layout=>"cms"
25
25
  end
26
26
 
27
27
  end