alchemy_cms 2.5.3.1 → 2.6.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (331) hide show
  1. data/.gitignore +1 -1
  2. data/.travis.yml +5 -13
  3. data/Gemfile +6 -3
  4. data/README.md +3 -2
  5. data/alchemy_cms.gemspec +22 -22
  6. data/app/assets/fonts/alchemy-icons.eot +0 -0
  7. data/app/assets/fonts/alchemy-icons.svg +54 -0
  8. data/app/assets/fonts/alchemy-icons.ttf +0 -0
  9. data/app/assets/fonts/alchemy-icons.woff +0 -0
  10. data/app/assets/images/alchemy/icons.png +0 -0
  11. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +151 -0
  12. data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +3 -2
  13. data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +31 -0
  14. data/app/assets/javascripts/alchemy/alchemy.dragndrop.js +1 -1
  15. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +98 -0
  16. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +23 -24
  17. data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +27 -0
  18. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +11 -8
  19. data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +32 -0
  20. data/app/assets/javascripts/alchemy/alchemy.image_cropper.js.coffee +46 -0
  21. data/app/assets/javascripts/alchemy/alchemy.js +8 -2
  22. data/app/assets/javascripts/alchemy/alchemy.link_overlay.js.coffee +5 -4
  23. data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +49 -0
  24. data/app/assets/javascripts/alchemy/alchemy.onload.js.coffee +3 -0
  25. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +71 -0
  26. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +61 -0
  27. data/app/assets/javascripts/alchemy/alchemy.spinner.js.coffee +35 -0
  28. data/app/assets/javascripts/alchemy/alchemy.string_extension.js.coffee +11 -0
  29. data/app/assets/javascripts/alchemy/alchemy.windows.js.coffee +278 -0
  30. data/app/assets/stylesheets/alchemy/admin.css.scss +2 -0
  31. data/app/assets/stylesheets/alchemy/archive.scss +109 -65
  32. data/app/assets/stylesheets/alchemy/base.scss +16 -188
  33. data/app/assets/stylesheets/alchemy/dashboard.scss +2 -2
  34. data/app/assets/stylesheets/alchemy/defaults.scss +2 -1
  35. data/app/assets/stylesheets/alchemy/elements.scss +58 -94
  36. data/app/assets/stylesheets/alchemy/errors.scss +2 -2
  37. data/app/assets/stylesheets/alchemy/{mixins.scss → extends.scss} +104 -80
  38. data/app/assets/stylesheets/alchemy/flash.scss +4 -6
  39. data/app/assets/stylesheets/alchemy/fonts.scss +46 -0
  40. data/app/assets/stylesheets/alchemy/form_elements.scss +46 -45
  41. data/app/assets/stylesheets/alchemy/frame.scss +20 -15
  42. data/app/assets/stylesheets/alchemy/icons.scss +22 -9
  43. data/app/assets/stylesheets/alchemy/jquery-ui.scss +476 -399
  44. data/app/assets/stylesheets/alchemy/login.scss +1 -1
  45. data/app/assets/stylesheets/alchemy/menubar.css.scss +1 -1
  46. data/app/assets/stylesheets/alchemy/notices.scss +5 -5
  47. data/app/assets/stylesheets/alchemy/pagination.scss +25 -13
  48. data/app/assets/stylesheets/alchemy/search.scss +29 -17
  49. data/app/assets/stylesheets/alchemy/sitemap.scss +41 -36
  50. data/app/assets/stylesheets/alchemy/tables.scss +102 -50
  51. data/app/assets/stylesheets/alchemy/tinymce_dialog.css.scss +18 -16
  52. data/app/assets/stylesheets/alchemy/toolbar.scss +84 -24
  53. data/app/assets/stylesheets/alchemy/upload.scss +14 -9
  54. data/app/assets/stylesheets/alchemy/variables.scss +1 -0
  55. data/app/assets/stylesheets/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.scss +18 -21
  56. data/app/controllers/alchemy/admin/attachments_controller.rb +29 -39
  57. data/app/controllers/alchemy/admin/base_controller.rb +3 -9
  58. data/app/controllers/alchemy/admin/clipboard_controller.rb +1 -1
  59. data/app/controllers/alchemy/admin/contents_controller.rb +1 -1
  60. data/app/controllers/alchemy/admin/dashboard_controller.rb +1 -1
  61. data/app/controllers/alchemy/admin/elements_controller.rb +3 -3
  62. data/app/controllers/alchemy/admin/essence_files_controller.rb +1 -1
  63. data/app/controllers/alchemy/admin/essence_pictures_controller.rb +5 -5
  64. data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
  65. data/app/controllers/alchemy/admin/pages_controller.rb +18 -16
  66. data/app/controllers/alchemy/admin/pictures_controller.rb +11 -10
  67. data/app/controllers/alchemy/admin/resources_controller.rb +87 -14
  68. data/app/controllers/alchemy/admin/tags_controller.rb +3 -3
  69. data/app/controllers/alchemy/admin/trash_controller.rb +3 -3
  70. data/app/controllers/alchemy/admin/users_controller.rb +6 -11
  71. data/app/controllers/alchemy/attachments_controller.rb +8 -9
  72. data/app/controllers/alchemy/base_controller.rb +17 -10
  73. data/app/controllers/alchemy/pages_controller.rb +7 -19
  74. data/app/controllers/alchemy/passwords_controller.rb +15 -3
  75. data/app/controllers/alchemy/user_sessions_controller.rb +5 -4
  76. data/app/controllers/alchemy/users_controller.rb +1 -1
  77. data/app/helpers/alchemy/admin/attachments_helper.rb +2 -2
  78. data/app/helpers/alchemy/admin/base_helper.rb +62 -90
  79. data/app/helpers/alchemy/admin/elements_helper.rb +13 -5
  80. data/app/helpers/alchemy/admin/essences_helper.rb +3 -5
  81. data/app/helpers/alchemy/admin/pages_helper.rb +6 -3
  82. data/app/helpers/alchemy/admin/tags_helper.rb +60 -0
  83. data/app/helpers/alchemy/base_helper.rb +16 -20
  84. data/app/helpers/alchemy/elements_helper.rb +7 -11
  85. data/app/helpers/alchemy/essences_helper.rb +2 -2
  86. data/app/helpers/alchemy/pages_helper.rb +31 -69
  87. data/app/helpers/alchemy/url_helper.rb +11 -3
  88. data/app/models/alchemy/attachment.rb +73 -45
  89. data/app/models/alchemy/cell.rb +1 -1
  90. data/app/models/alchemy/content.rb +20 -9
  91. data/app/models/alchemy/element.rb +9 -7
  92. data/app/models/alchemy/page.rb +15 -248
  93. data/app/models/alchemy/page/cells.rb +71 -0
  94. data/app/models/alchemy/page/elements.rb +147 -0
  95. data/app/models/alchemy/page/naming.rb +90 -0
  96. data/app/models/alchemy/picture.rb +18 -13
  97. data/app/models/alchemy/tag.rb +1 -1
  98. data/app/models/alchemy/user.rb +38 -6
  99. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +14 -7
  100. data/app/views/alchemy/admin/attachments/_attachment.html.erb +17 -12
  101. data/app/views/alchemy/admin/attachments/_file_to_assign.html.erb +3 -8
  102. data/app/views/alchemy/admin/attachments/_files_list.html.erb +20 -12
  103. data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +11 -0
  104. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +31 -0
  105. data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +4 -0
  106. data/app/views/alchemy/admin/attachments/edit.html.erb +8 -7
  107. data/app/views/alchemy/admin/attachments/index.html.erb +19 -12
  108. data/app/views/alchemy/admin/attachments/new.html.erb +2 -2
  109. data/app/views/alchemy/admin/attachments/show.html.erb +3 -0
  110. data/app/views/alchemy/admin/contents/_missing.html.erb +4 -4
  111. data/app/views/alchemy/admin/contents/create.js.erb +1 -1
  112. data/app/views/alchemy/admin/contents/new.html.erb +6 -3
  113. data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +1 -1
  114. data/app/views/alchemy/admin/dashboard/_users.html.erb +1 -1
  115. data/app/views/alchemy/admin/dashboard/index.html.erb +3 -3
  116. data/app/views/alchemy/admin/dashboard/info.html.erb +16 -13
  117. data/app/views/alchemy/admin/elements/_add_picture.html.erb +1 -1
  118. data/app/views/alchemy/admin/elements/_element_foot.html.erb +4 -4
  119. data/app/views/alchemy/admin/elements/_element_head.html.erb +1 -7
  120. data/app/views/alchemy/admin/elements/_elements_select.html.erb +2 -2
  121. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +4 -4
  122. data/app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb +1 -1
  123. data/app/views/alchemy/admin/elements/create.js.erb +2 -2
  124. data/app/views/alchemy/admin/elements/fold.js.erb +3 -6
  125. data/app/views/alchemy/admin/elements/new.html.erb +1 -1
  126. data/app/views/alchemy/admin/elements/order.js.erb +1 -1
  127. data/app/views/alchemy/admin/elements/trash.js.erb +1 -1
  128. data/app/views/alchemy/admin/elements/update.js.erb +2 -2
  129. data/app/views/alchemy/admin/essence_files/edit.html.erb +4 -4
  130. data/app/views/alchemy/admin/essence_pictures/crop.html.erb +17 -18
  131. data/app/views/alchemy/admin/essence_pictures/edit.html.erb +2 -2
  132. data/app/views/alchemy/admin/essence_pictures/update.js.erb +1 -0
  133. data/app/views/alchemy/admin/languages/_form.html.erb +12 -10
  134. data/app/views/alchemy/admin/languages/_language.html.erb +2 -1
  135. data/app/views/alchemy/admin/languages/_table.html.erb +3 -3
  136. data/app/views/alchemy/admin/languages/index.html.erb +15 -15
  137. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +6 -6
  138. data/app/views/alchemy/admin/layoutpages/index.html.erb +41 -40
  139. data/app/views/alchemy/admin/pages/_contactform_links.html.erb +4 -4
  140. data/app/views/alchemy/admin/pages/_create_language_form.html.erb +6 -6
  141. data/app/views/alchemy/admin/pages/_external_link.html.erb +2 -2
  142. data/app/views/alchemy/admin/pages/_file_link.html.erb +3 -3
  143. data/app/views/alchemy/admin/pages/_internal_link.html.erb +1 -1
  144. data/app/views/alchemy/admin/pages/_new_page_form.html.erb +1 -1
  145. data/app/views/alchemy/admin/pages/_page.html.erb +13 -13
  146. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +2 -4
  147. data/app/views/alchemy/admin/pages/_sitemap.html.erb +5 -0
  148. data/app/views/alchemy/admin/pages/configure.html.erb +7 -7
  149. data/app/views/alchemy/admin/pages/configure_external.html.erb +4 -4
  150. data/app/views/alchemy/admin/pages/edit.html.erb +23 -30
  151. data/app/views/alchemy/admin/pages/index.html.erb +34 -23
  152. data/app/views/alchemy/admin/pages/new.html.erb +1 -1
  153. data/app/views/alchemy/admin/pages/sort.js.erb +1 -1
  154. data/app/views/alchemy/admin/partials/_flash_upload.html.erb +2 -3
  155. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
  156. data/app/views/alchemy/admin/partials/_search_form.html.erb +3 -3
  157. data/app/views/alchemy/admin/partials/_upload_form.html.erb +2 -2
  158. data/app/views/alchemy/admin/pictures/_archive.html.erb +7 -7
  159. data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
  160. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +6 -6
  161. data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +4 -4
  162. data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +1 -1
  163. data/app/views/alchemy/admin/pictures/_picture.html.erb +3 -8
  164. data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +9 -14
  165. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +27 -25
  166. data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +3 -1
  167. data/app/views/alchemy/admin/pictures/index.html.erb +49 -42
  168. data/app/views/alchemy/admin/pictures/new.html.erb +2 -2
  169. data/app/views/alchemy/admin/pictures/show.html.erb +11 -0
  170. data/app/views/alchemy/admin/resources/_boolean.html.erb +2 -2
  171. data/app/views/alchemy/admin/resources/_datetime.html.erb +2 -2
  172. data/app/views/alchemy/admin/resources/_form.html.erb +9 -8
  173. data/app/views/alchemy/admin/resources/_resource.html.erb +15 -21
  174. data/app/views/alchemy/admin/resources/_string.html.erb +2 -2
  175. data/app/views/alchemy/admin/resources/_table.html.erb +11 -13
  176. data/app/views/alchemy/admin/resources/_text.html.erb +2 -2
  177. data/app/views/alchemy/admin/resources/index.csv.erb +13 -0
  178. data/app/views/alchemy/admin/resources/index.html.erb +24 -15
  179. data/app/views/alchemy/admin/sites/index.html.erb +23 -0
  180. data/app/views/alchemy/admin/tags/_radio_tag.html.erb +1 -1
  181. data/app/views/alchemy/admin/tags/_tag.html.erb +2 -1
  182. data/app/views/alchemy/admin/tags/edit.html.erb +1 -1
  183. data/app/views/alchemy/admin/tags/index.html.erb +16 -11
  184. data/app/views/alchemy/admin/tags/new.html.erb +3 -3
  185. data/app/views/alchemy/admin/trash/clear.js.coffee +1 -1
  186. data/app/views/alchemy/admin/users/_table.html.erb +12 -5
  187. data/app/views/alchemy/admin/users/_user.html.erb +16 -16
  188. data/app/views/alchemy/admin/users/index.html.erb +28 -16
  189. data/app/views/alchemy/breadcrumb/_page.html.erb +15 -0
  190. data/app/views/alchemy/breadcrumb/_spacer.html.erb +1 -0
  191. data/app/views/alchemy/elements/_editor_not_found.html.erb +1 -1
  192. data/app/views/alchemy/essences/_essence_file_editor.html.erb +16 -16
  193. data/app/views/alchemy/essences/_essence_file_view.html.erb +8 -9
  194. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +3 -6
  195. data/app/views/alchemy/essences/_essence_picture_tools.html.erb +9 -8
  196. data/app/views/alchemy/essences/_essence_richtext_editor.html.erb +0 -5
  197. data/app/views/alchemy/essences/_linkable_essence_tools.html.erb +2 -2
  198. data/app/views/alchemy/navigation/_link.html.erb +7 -7
  199. data/app/views/alchemy/navigation/_renderer.html.erb +29 -36
  200. data/app/views/alchemy/notifications/admin_user_created.de.text.erb +5 -1
  201. data/app/views/alchemy/notifications/admin_user_created.en.text.erb +5 -1
  202. data/app/views/alchemy/notifications/registered_user_created.de.text.erb +13 -0
  203. data/app/views/alchemy/notifications/registered_user_created.en.text.erb +13 -0
  204. data/app/views/alchemy/search/_result.html.erb +4 -6
  205. data/app/views/alchemy/search/_results.html.erb +4 -5
  206. data/app/views/alchemy/user_sessions/leave.html.erb +1 -1
  207. data/app/views/alchemy/user_sessions/new.html.erb +2 -2
  208. data/app/views/kaminari/_first_page.html.erb +11 -0
  209. data/app/views/kaminari/_gap.html.erb +1 -1
  210. data/app/views/kaminari/_last_page.html.erb +11 -0
  211. data/app/views/kaminari/_next_page.html.erb +2 -2
  212. data/app/views/kaminari/_page.html.erb +1 -1
  213. data/app/views/kaminari/_paginator.html.erb +2 -0
  214. data/app/views/kaminari/_prev_page.html.erb +2 -2
  215. data/app/views/layouts/alchemy/admin.html.erb +4 -5
  216. data/config/alchemy/config.yml +8 -12
  217. data/config/authorization_rules.rb +4 -3
  218. data/config/initializers/dragonfly.rb +20 -12
  219. data/config/locales/alchemy.de.yml +20 -15
  220. data/config/locales/alchemy.en.yml +15 -10
  221. data/config/locales/devise.de.yml +1 -0
  222. data/config/routes.rb +3 -3
  223. data/{spec/dummy/db/migrate/20121118000000_alchemy_two_point_four.rb → db/migrate/20130214233001_alchemy_two_point_five.rb} +50 -36
  224. data/db/migrate/20130221200514_migrate_attachments_to_dragonfly.rb +21 -0
  225. data/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb +11 -0
  226. data/lib/alchemy/capistrano.rb +10 -8
  227. data/lib/alchemy/errors.rb +7 -0
  228. data/lib/alchemy/filetypes.rb +33 -0
  229. data/lib/alchemy/i18n.rb +9 -1
  230. data/lib/alchemy/name_conversions.rb +28 -0
  231. data/lib/alchemy/page_layout.rb +5 -3
  232. data/lib/alchemy/resource.rb +132 -29
  233. data/lib/alchemy/resources_helper.rb +81 -12
  234. data/lib/alchemy/upgrader.rb +14 -276
  235. data/lib/alchemy/version.rb +1 -1
  236. data/lib/alchemy_cms.rb +17 -2
  237. data/lib/rails/generators/alchemy/deploy_script/templates/deploy.rb.tt +1 -1
  238. data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +1 -1
  239. data/lib/tasks/alchemy/convert.rake +39 -0
  240. data/lib/tasks/alchemy/install.rake +4 -6
  241. data/lib/tasks/alchemy/upgrade.rake +18 -1
  242. data/spec/controllers/admin/clipboard_controller_spec.rb +4 -4
  243. data/spec/controllers/admin/elements_controller_spec.rb +23 -23
  244. data/spec/controllers/admin/pages_controller_spec.rb +15 -0
  245. data/spec/controllers/admin/resources_controller_spec.rb +1 -11
  246. data/spec/controllers/admin/trash_controller_spec.rb +9 -9
  247. data/spec/controllers/attachments_controller_spec.rb +3 -3
  248. data/spec/controllers/elements_controller_spec.rb +2 -2
  249. data/spec/controllers/pages_controller_spec.rb +160 -129
  250. data/spec/controllers/pictures_controller_spec.rb +2 -2
  251. data/spec/controllers/user_sessions_controller_spec.rb +3 -3
  252. data/spec/controllers/users_controller_spec.rb +2 -2
  253. data/spec/dummy/app/models/event.rb +2 -2
  254. data/spec/dummy/app/models/location.rb +4 -0
  255. data/spec/dummy/app/views/layouts/application.html.erb +6 -42
  256. data/spec/dummy/config/routes.rb +1 -1
  257. data/spec/dummy/db/migrate/20121026104128_create_events.rb +0 -1
  258. data/{db/migrate/20121118000000_alchemy_two_point_four.rb → spec/dummy/db/migrate/20130214233001_alchemy_two_point_five.rb} +50 -36
  259. data/spec/dummy/db/migrate/20130221200514_migrate_attachments_to_dragonfly.rb +21 -0
  260. data/spec/dummy/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb +11 -0
  261. data/spec/dummy/db/migrate/20130328101418_create_locations.rb +9 -0
  262. data/spec/dummy/db/schema.rb +15 -6
  263. data/spec/factories.rb +4 -4
  264. data/spec/{integration → features}/admin/link_overlay_spec.rb +0 -0
  265. data/spec/{integration → features}/admin/modules_integration_spec.rb +1 -1
  266. data/spec/{integration → features}/admin/pages_controller_spec.rb +9 -4
  267. data/spec/{integration → features}/admin/picture_library_integration_spec.rb +5 -5
  268. data/spec/{integration → features}/admin/resources_integration_spec.rb +1 -1
  269. data/spec/{integration → features}/navigation_spec.rb +0 -0
  270. data/spec/{integration → features}/pages_controller_spec.rb +42 -112
  271. data/spec/{integration → features}/picture_security_spec.rb +2 -2
  272. data/spec/{integration → features}/security_spec.rb +7 -7
  273. data/spec/{integration → features}/translation_integration_spec.rb +0 -0
  274. data/spec/helpers/admin/base_helper_spec.rb +0 -50
  275. data/spec/helpers/admin/tags_helper_spec.rb +53 -0
  276. data/spec/helpers/base_helper_spec.rb +19 -3
  277. data/spec/helpers/pages_helper_spec.rb +92 -44
  278. data/spec/{url_helpers_spec.rb → helpers/picture_url_helpers_spec.rb} +7 -7
  279. data/spec/helpers/url_helper_spec.rb +92 -72
  280. data/spec/{config_spec.rb → libraries/config_spec.rb} +0 -0
  281. data/spec/libraries/resource_spec.rb +215 -76
  282. data/spec/libraries/resources_helper_spec.rb +70 -28
  283. data/spec/models/attachment_spec.rb +75 -9
  284. data/spec/models/clipboard_spec.rb +1 -1
  285. data/spec/models/element_spec.rb +7 -0
  286. data/spec/models/page_spec.rb +144 -25
  287. data/spec/models/picture_spec.rb +5 -5
  288. data/spec/models/resource_spec.rb +47 -10
  289. data/spec/models/user_spec.rb +115 -3
  290. data/spec/{routing_spec.rb → routing/routing_spec.rb} +8 -20
  291. data/spec/spec_helper.rb +5 -6
  292. data/spec/support/alchemy/specs_helpers.rb +1 -1
  293. data/spec/support/ci/install_phantomjs +1 -1
  294. data/spec/support/image with spaces.png +0 -0
  295. data/vendor/assets/javascripts/jquery_plugins/jquery.Jcrop.min.js +18 -18
  296. data/vendor/assets/javascripts/jquery_plugins/{jquery.dialogextend.1_0_1.js → jquery.dialogextend.js} +25 -17
  297. data/vendor/assets/javascripts/jquery_plugins/jquery.scrollTo.min.js +7 -0
  298. data/vendor/assets/javascripts/jquery_plugins/jquery.ui.tabspaging.js +7 -7
  299. data/vendor/assets/javascripts/keymage.min.js +6 -0
  300. data/vendor/assets/javascripts/spin.min.js +1 -0
  301. metadata +122 -124
  302. data/app/assets/images/alchemy/ajax_loader.gif +0 -0
  303. data/app/assets/images/alchemy/gui/toggle.png +0 -0
  304. data/app/assets/images/alchemy/image_loader.gif +0 -0
  305. data/app/assets/images/alchemy/shading.png +0 -0
  306. data/app/assets/images/alchemy/tabs.gif +0 -0
  307. data/app/assets/javascripts/alchemy/alchemy.base.js +0 -172
  308. data/app/assets/javascripts/alchemy/alchemy.datepicker.js +0 -47
  309. data/app/assets/javascripts/alchemy/alchemy.element_editor_selector.js +0 -91
  310. data/app/assets/javascripts/alchemy/alchemy.growler.js +0 -46
  311. data/app/assets/javascripts/alchemy/alchemy.image_cropper.js +0 -60
  312. data/app/assets/javascripts/alchemy/alchemy.js_extensions.js +0 -15
  313. data/app/assets/javascripts/alchemy/alchemy.preview_window.js +0 -97
  314. data/app/assets/javascripts/alchemy/alchemy.windows.js +0 -321
  315. data/app/models/alchemy/clipboard_spec.rb +0 -0
  316. data/app/views/alchemy/admin/pictures/show_in_window.html.erb +0 -8
  317. data/app/views/alchemy/notifications/registered_user_created.text.erb +0 -11
  318. data/db/migrate/20121121162313_switch_from_fleximage_to_dragonfly.rb +0 -21
  319. data/db/migrate/20121205155004_create_alchemy_sites.rb +0 -14
  320. data/db/migrate/20121211163003_add_public_to_alchemy_sites.rb +0 -6
  321. data/db/migrate/20121220102223_add_aliases_to_site.rb +0 -6
  322. data/db/migrate/20130110212411_create_alchemy_legacy_page_urls.rb +0 -11
  323. data/db/migrate/20130121092645_migrate_to_devise.rb +0 -24
  324. data/spec/alchemy_spec.rb +0 -7
  325. data/spec/dummy/db/migrate/20121121162313_switch_from_fleximage_to_dragonfly.rb +0 -21
  326. data/spec/dummy/db/migrate/20121205155004_create_alchemy_sites.rb +0 -14
  327. data/spec/dummy/db/migrate/20121211163003_add_public_to_alchemy_sites.rb +0 -6
  328. data/spec/dummy/db/migrate/20121220102223_add_aliases_to_site.rb +0 -6
  329. data/spec/dummy/db/migrate/20130110212411_create_alchemy_legacy_page_urls.rb +0 -11
  330. data/spec/dummy/db/migrate/20130121092645_migrate_to_devise.rb +0 -24
  331. data/vendor/assets/javascripts/jquery_plugins/jquery.scrollTo-1.4.2-min.js +0 -11
@@ -13,6 +13,7 @@ noscript {
13
13
  border-bottom: 1px solid #c4c19c;
14
14
  color: #726d23;
15
15
  background-color: #f3f0c1;
16
+
16
17
  h1, p {
17
18
  margin: 16px 0;
18
19
  }
@@ -32,7 +33,7 @@ body {
32
33
  }
33
34
 
34
35
  h1 {
35
- margin: 0 0 10px;
36
+ margin: 8px;
36
37
  padding: 0;
37
38
  font-weight: bold;
38
39
  font-size: $default-font-size;
@@ -67,7 +68,7 @@ a {
67
68
  }
68
69
 
69
70
  &:focus {
70
- @include default-focus-style(rgba(white, 0.5), none);
71
+ @extend %white-focus-style;
71
72
  color: black;
72
73
  }
73
74
 
@@ -280,27 +281,6 @@ ul.list span.right {
280
281
  font-weight: bold;
281
282
  }
282
283
 
283
- /* @group image_upload */
284
-
285
- table td.tools .icon, table td.icon .icon {
286
- width: 16px;
287
- height: 16px;
288
- @include disable-user-select;
289
- margin-top: 0;
290
- background-repeat: no-repeat;
291
- @include inline-block;
292
- margin-right: 4px;
293
- }
294
-
295
- div.spinner {
296
- background-color: #ffffff;
297
- width: 100%;
298
- height: 100%;
299
- position: absolute;
300
- top: 0;
301
- left: 0;
302
- }
303
-
304
284
  .headline_text_editor {
305
285
  overflow: auto;
306
286
  width: 374px;
@@ -394,37 +374,6 @@ div.all_rights {
394
374
  margin: 2*$default-padding;
395
375
  }
396
376
 
397
- .element_spinner {
398
- float: right;
399
- height: 23px;
400
- position: relative;
401
- bottom: 3px;
402
- right: -3px;
403
- }
404
-
405
- .element_folder_spinner {
406
- position: relative;
407
- bottom: 2px;
408
- width: 24px;
409
- height: 24px;
410
- right: -2px;
411
- }
412
-
413
- .element_spinner img {
414
- bottom: 1px;
415
- float: left;
416
- position: relative;
417
- width: 24px;
418
- height: 24px;
419
- right: 0;
420
- }
421
-
422
- span.spinner_wait_text {
423
- float: left;
424
- position: relative;
425
- top: 4px;
426
- }
427
-
428
377
  div.element_head span.ajax_folder span.error_icon {
429
378
  float: left;
430
379
  width: 14px;
@@ -447,7 +396,7 @@ p.foot_note {
447
396
  padding: $default-padding;
448
397
  background-color: $light_yellow;
449
398
  border: 1px solid $medium-gray;
450
- @include rounded-corner;
399
+ @extend .rounded-border;
451
400
  }
452
401
 
453
402
  #all_files td.name a {
@@ -467,21 +416,12 @@ p.foot_note {
467
416
  padding: 2 * $default-padding;
468
417
 
469
418
  .thumbnail_background {
470
- @include thumbnail-background;
419
+ @extend %thumbnail-background;
471
420
  width: 800px;
472
421
  height: 600px;
473
422
  position: relative;
474
423
  }
475
424
 
476
- .picture_content_spinner {
477
- left: 400px;
478
- top: 300px;
479
- margin-top: -16px;
480
- margin-left: -16px;
481
- width: 32px;
482
- height: 32px;
483
- }
484
-
485
425
  .jcrop-holder { @include inline-block }
486
426
 
487
427
  img {
@@ -522,7 +462,7 @@ textarea#essence_picture_caption {
522
462
  border: 1px inset #e8e8e8;
523
463
  overflow: auto;
524
464
  padding: 4px 0 0 4px;
525
- @include rounded-corner;
465
+ @extend .rounded-border;
526
466
  }
527
467
 
528
468
  #alchemyConfirmation .alchemy_window_buttons {
@@ -562,44 +502,6 @@ input#user_admin {
562
502
  line-height: 19px;
563
503
  }
564
504
 
565
- #alchemy div#overlay_toolbar div#image_assign_filter_and_image_sizing form {
566
- float: right;
567
- width: 310px;
568
- height: 25px;
569
- margin-top: 2px;
570
- padding: 0 !important;
571
- margin-right: 0;
572
-
573
- .button {
574
- margin: 0;
575
- }
576
- }
577
-
578
- div#image_assign_filter_and_image_sizing form input.button {
579
- float: right;
580
- }
581
-
582
- li.assign_file_file {
583
- display: block;
584
- text-align: center;
585
- width: 100%;
586
- margin-bottom: 4px;
587
- }
588
-
589
- #assign_file_list li.assign_file_file a {
590
- overflow: hidden;
591
- display: block;
592
- padding-right: 4px;
593
- text-align: left;
594
- line-height: 25px;
595
- }
596
-
597
- div.assign_file_file_icon {
598
- float: left;
599
- margin: $default-margin;
600
- line-height: normal;
601
- }
602
-
603
505
  #alchemy .ui-dialog-content a img {
604
506
  border-style: none;
605
507
  }
@@ -713,13 +615,12 @@ div.elements_for_page {
713
615
  padding: $default-padding;
714
616
  border: $default-border;
715
617
  @include box-shadow(#9ea09f 0px 0px 4px);
716
- @include rounded-corner;
618
+ @extend .rounded-border;
717
619
 
718
- img {
719
- width: 20px;
720
- height: 20px;
620
+ .spinner {
621
+ top: 17px !important;
622
+ left: 50% !important;
721
623
  margin-left: 4px;
722
- margin-top: 7px;
723
624
  }
724
625
 
725
626
  .alchemy_selectbox {
@@ -765,18 +666,9 @@ a.close_elements_from_page_selector {
765
666
  float: none;
766
667
  }
767
668
 
768
- ul#assign_file_list {
769
- margin-bottom: 8px;
770
- margin-top: 8px;
771
- clear: both;
772
- height: 280px;
773
- overflow-x: hidden;
774
- overflow-y: auto;
775
- }
776
-
777
669
  ul#sitemap li .sitemap_sitename.selected_page a {
778
- background-color: #DB694C;
779
- color: #f5f5f5;
670
+ background-color: $linked-color;
671
+ color: $dark-gray;
780
672
  }
781
673
 
782
674
  #alchemy .ui-dialog-content ul#sitemap ul li span.sitemap_sitename.selected_page a {
@@ -788,20 +680,6 @@ ul#sitemap li .sitemap_sitename.selected_page a {
788
680
  font-weight: bold;
789
681
  }
790
682
 
791
- div.assign_file_file_name {
792
- float: left;
793
- }
794
-
795
- .selected_file a {
796
- font-weight: bold;
797
- white-space: nowrap;
798
- overflow: hidden;
799
- }
800
-
801
- div.assign_file_file_icon img {
802
- margin-top: 2px;
803
- }
804
-
805
683
  #external_link_table .padding_right {
806
684
  padding-right: 8px;
807
685
  }
@@ -839,63 +717,13 @@ select#url_protocol.medium {
839
717
  vertical-align: inherit;
840
718
  }
841
719
 
842
- .assign_file_file.selected_file {
843
- background-color: #d1d1d1;
844
- }
845
-
846
- div#overlay_toolbar {
847
- background: $medium-gray url('shading.png') repeat-x 0 -42px;
848
- border: $default-border;
849
- height: 44px;
850
- border-top-style: none;
851
- border-left-style: none;
852
- border-right-style: none;
853
- padding: $default-padding;
854
- }
855
-
856
- div#overlay_toolbar div.toolbar_spacer {
857
- float: left;
858
- width: 1px;
859
- height: 37px;
860
- border-right-style: dotted;
861
- border-right-width: 1px;
862
- margin-right: 8px;
863
- margin-left: 4px;
864
- }
865
-
866
- div#overlay_toolbar a.button {
867
- width: 25px;
868
- height: 21px;
869
- text-decoration: none;
870
- float: right;
871
- border-width: 0;
872
- border-style: none;
873
- font-size: 0;
874
- padding: 0;
875
- background-repeat: no-repeat;
876
- background-position: 0 0;
877
- }
878
-
879
- div#overlay_toolbar a.button:active {
880
- text-decoration: none;
881
- background-position: 0 -21px;
882
- }
883
-
884
- #alchemy div#overlay_toolbar form {
885
- float: left;
886
- padding: 0;
887
- margin-right: 8px;
888
- }
889
-
890
720
  #alchemy .ui-dialog #alchemyConfirmation.ui-dialog-content {
891
721
  padding: 2*$default-padding;
892
722
  }
893
723
 
894
- #preview_load_info {
724
+ .ui-dialog-titlebar .preview-refresh-spinner {
895
725
  float: left;
896
- width: 16px;
897
- height: 16px;
898
- margin: 1px 0 0 -12px;
726
+ margin-top: 8px;
899
727
  }
900
728
 
901
729
  #clipboard_items {
@@ -912,7 +740,7 @@ div#overlay_toolbar a.button:active {
912
740
  padding: 2*$default-padding;
913
741
  border: $default-border;
914
742
  background-color: white;
915
- @include rounded-corner;
743
+ @extend .rounded-border;
916
744
  &.elements {
917
745
  background-color: #E5DCCA;
918
746
  border: 1px solid #BBA589;
@@ -935,7 +763,7 @@ div#overlay_toolbar a.button:active {
935
763
  #dropbox {
936
764
  background: $medium-gray;
937
765
  border: $default-border;
938
- @include rounded-corner;
766
+ @extend .rounded-border;
939
767
  padding: $default-padding;
940
768
  margin-bottom: 2*$default-padding;
941
769
  text-align: center;
@@ -8,7 +8,7 @@
8
8
 
9
9
  h1 {
10
10
  font-size: 2em;
11
- margin-bottom: 8px;
11
+ margin: 0 0 8px 0;
12
12
  }
13
13
 
14
14
  h2 {
@@ -27,7 +27,7 @@
27
27
  margin-bottom: 16px;
28
28
  background-color: $medium-gray;
29
29
  border: $default-border;
30
- @include top-rounded-border;
30
+ @extend .top-rounded-border;
31
31
  float: left;
32
32
 
33
33
  h2 {
@@ -2,4 +2,5 @@
2
2
  @import "compass/css3/user-interface";
3
3
  @import "sassy-buttons";
4
4
  @import "alchemy/variables";
5
- @import "alchemy/mixins";
5
+ @import "alchemy/extends";
6
+ @import "alchemy/fonts";
@@ -1,7 +1,18 @@
1
- .element_heading .preview_text_quote {
2
- font-size: 10px;
3
- font-style: italic;
4
- line-height: 15px;
1
+ .element_heading {
2
+ padding: 0;
3
+ z-index: 0;
4
+ overflow: hidden;
5
+ white-space: nowrap;
6
+ position: absolute;
7
+ left: 35px;
8
+ top: 11px;
9
+ width: 322px;
10
+
11
+ .preview_text_quote {
12
+ font-size: 10px;
13
+ font-style: italic;
14
+ line-height: 15px;
15
+ }
5
16
  }
6
17
 
7
18
  span.preview_text_element_name {
@@ -11,14 +22,6 @@ span.preview_text_element_name {
11
22
  line-height: 15px;
12
23
  }
13
24
 
14
- img.add_element_spinner {
15
- width: 24px;
16
- height: 24px;
17
- position: absolute;
18
- left: 5px;
19
- bottom: 6px;
20
- }
21
-
22
25
  div#element_area {
23
26
  padding: 0;
24
27
  margin: 0;
@@ -101,7 +104,7 @@ div#element_area {
101
104
  padding: 4px;
102
105
  background-color: #f0e8d7;
103
106
  border: 1px solid #c2baab;
104
- @include rounded-corner;
107
+ @extend .rounded-border;
105
108
  height: 115px;
106
109
 
107
110
  a {
@@ -110,7 +113,7 @@ div#element_area {
110
113
  text-align: center;
111
114
  font-weight: bold;
112
115
  line-height: 104px;
113
- @include rounded-corner;
116
+ @extend .rounded-border;
114
117
  font-size: 40px;
115
118
  display: block;
116
119
  height: 100%;
@@ -118,9 +121,10 @@ div#element_area {
118
121
  position: relative;
119
122
 
120
123
  .icon {
124
+ font-size: 30px;
121
125
  position: absolute;
122
- top: 52px;
123
- left: 47px;
126
+ top: 45px;
127
+ left: 45px;
124
128
  }
125
129
  }
126
130
  }
@@ -159,20 +163,9 @@ div#element_area {
159
163
  top: 8px;
160
164
  }
161
165
 
162
- .element_heading {
163
- padding: 0;
164
- z-index: 0;
165
- overflow: hidden;
166
- white-space: nowrap;
167
- position: absolute;
168
- left: 35px;
169
- top: 11px;
170
- width: 322px;
171
- }
172
-
173
- div.element_editor {
166
+ .element_editor {
174
167
  border: 1px solid #bba589;
175
- @include rounded-corner;
168
+ @extend .rounded-border;
176
169
  background-color: #f0e8d7;
177
170
  margin-bottom: 8px;
178
171
 
@@ -202,13 +195,13 @@ div.element_editor {
202
195
  margin-bottom: 1em;
203
196
  }
204
197
 
205
- p.content_editor_error {
198
+ .content_editor_error {
206
199
  border: 1px solid #f5b04e;
207
200
  padding: 4px 8px;
208
201
  line-height: 21px;
209
202
  background-color: #f5dea9;
210
203
  margin-top: 4px;
211
- @include rounded-corner;
204
+ @extend .rounded-border;
212
205
 
213
206
  span.icon.warning {
214
207
  position: relative;
@@ -224,8 +217,8 @@ div.element_editor {
224
217
  padding: 2*$default-padding;
225
218
 
226
219
  label {
227
- top: 18px;
228
- left: 14px;
220
+ top: 21px;
221
+ left: 16px;
229
222
  }
230
223
 
231
224
  input[data-autocomplete] {
@@ -275,7 +268,12 @@ a.element_move_button {
275
268
  border-top-color: #e3e3e3;
276
269
  height: 20px;
277
270
  background-color: #e5dcca;
278
- @include disable-user-select;
271
+ @extend .disable-user-select;
272
+
273
+ .spinner {
274
+ top: 9px;
275
+ right: 9px;
276
+ }
279
277
  }
280
278
 
281
279
  form.add_gallery_to_index {
@@ -286,7 +284,7 @@ div.picture_gallery_images {
286
284
  overflow: hidden;
287
285
  margin: $default-margin 0;
288
286
  border: 1px inset #cecece;
289
- @include rounded-corner;
287
+ @extend .rounded-border;
290
288
  background-color: #e5dcca;
291
289
  padding: 1px;
292
290
 
@@ -304,7 +302,7 @@ div.picture_thumbnail div.picture_image {
304
302
  overflow: hidden;
305
303
 
306
304
  img.img_paddingtop {
307
- @include disable-user-select;
305
+ @extend .disable-user-select;
308
306
  }
309
307
  }
310
308
 
@@ -312,14 +310,6 @@ div#cells {
312
310
  min-height: 100px;
313
311
  }
314
312
 
315
- .place_element_spinner {
316
- position: absolute;
317
- right: 8px;
318
- width: 24px;
319
- height: 24px;
320
- top: 5px;
321
- }
322
-
323
313
  span.linkable_essence_tools {
324
314
  position: absolute;
325
315
  bottom: 0;
@@ -330,11 +320,11 @@ span.linkable_essence_tools {
330
320
  position: absolute;
331
321
  bottom: 4px;
332
322
  right: 28px;
333
- @include reset-border-radius;
323
+ @extend %border-radius-reset;
334
324
 
335
325
  &.unlink {
336
326
  right: 0;
337
- @include right-rounded-border;
327
+ @extend .right-rounded-border;
338
328
  }
339
329
  }
340
330
  }
@@ -382,17 +372,16 @@ a.fold_element {
382
372
 
383
373
  .edit_images_bottom a.linked {
384
374
  position: relative;
385
- @include rounded-corner;
386
- background-image: url('shading.png');
387
- background-repeat: repeat-x;
388
- background-position: 0 -75px;
389
- background-color: #ffd77a;
375
+ @extend .rounded-border;
376
+ background-color: $linked-color;
390
377
  border: 1px solid #9a9a9a;
391
378
  bottom: 1px;
392
379
  margin-right: 2px;
393
- width: 17px;
394
- height: 17px;
395
- margin-left: 1px;
380
+ width: 18px;
381
+ height: 18px;
382
+ margin-left: 0;
383
+
384
+ .icon { margin-left: 1px }
396
385
  }
397
386
 
398
387
  .edit_images_bottom a.disabled {
@@ -473,36 +462,20 @@ div.essence_picture_css_class {
473
462
  top: 4px;
474
463
  left: 4px;
475
464
  background-color: transparent;
476
- @include disable-user-select;
465
+ @extend .disable-user-select;
477
466
  }
478
467
 
479
468
  .dragable_picture .picture_handle {
480
469
  cursor: move;
481
470
  }
482
471
 
483
- .picture_content_spinner {
484
- background: #666666;
485
- height: 93px;
486
- left: 4px;
487
- position: absolute;
488
- top: 4px;
489
- width: inherit;
490
- img {
491
- top: 50%;
492
- left: 50%;
493
- position: absolute;
494
- margin-top: -16px;
495
- margin-left: -16px;
496
- }
497
- }
498
-
499
472
  div.file {
500
473
  padding: 0;
501
474
  margin-top: 8px;
502
475
  margin-bottom: 4px;
503
476
  border: 1px solid #c0c0c0;
504
477
  background-color: #f3f3f3;
505
- @include rounded-corner;
478
+ @extend .rounded-border;
506
479
  height: 24px;
507
480
  }
508
481
 
@@ -579,22 +552,10 @@ a.new_content_link {
579
552
  div.tinymce_container {
580
553
  position: relative;
581
554
  margin: $default-margin 0;
582
- }
583
-
584
- div.essence_richtext_loader {
585
- position: absolute;
586
- top: 0;
587
- left: 0;
588
- z-index: 1;
589
- width: 100%;
590
- height: 100%;
591
- background-color: #F0E8D7;
592
- @include opacity(0.9);
593
555
 
594
- img {
595
- position: absolute;
596
- top: 46%;
597
- left: 46%;
556
+ .spinner {
557
+ top: 70px;
558
+ left: 50%;
598
559
  }
599
560
  }
600
561
 
@@ -639,7 +600,7 @@ div.content_editor {
639
600
  padding: 2*$default-padding;
640
601
  border: 1px solid #f5b04e;
641
602
  background-color: #f5dea9;
642
- @include rounded-corner;
603
+ @extend .rounded-border;
643
604
  font-size: 11px;
644
605
 
645
606
  span.icon.warning {
@@ -654,7 +615,7 @@ div.content_editor {
654
615
  margin-right: 4px;
655
616
  vertical-align: top;
656
617
 
657
- input.thin_border {
618
+ .thin_border {
658
619
  width: 170px;
659
620
  }
660
621
  }
@@ -662,7 +623,7 @@ div.content_editor {
662
623
  &.validation_failed {
663
624
 
664
625
  label { color: $error_text_color }
665
- input { @include field_with_error }
626
+ input { @extend %field-with-error }
666
627
  .tinymce_container {
667
628
  outline: 1px solid $error_border_color;
668
629
  }
@@ -720,6 +681,10 @@ div.content_editor {
720
681
  width: 100% !important;
721
682
  height: 100%;
722
683
  }
684
+
685
+ &.display_inline .selectboxit-container {
686
+ width: 170px;
687
+ }
723
688
  }
724
689
 
725
690
  &:hover label a.icon_button.small {
@@ -732,7 +697,7 @@ div.content_editor {
732
697
  }
733
698
 
734
699
  select.essence_editor_select {
735
- @include rounded-corner;
700
+ @extend .rounded-border;
736
701
  background: white;
737
702
  border: 1px solid $button-border-color;
738
703
  font-size: 11px;
@@ -772,7 +737,6 @@ div.content_editor {
772
737
  float: none;
773
738
  height: auto;
774
739
  @include inline-block;
775
- margin: 8px 0;
776
740
  }
777
741
  }
778
742
 
@@ -816,7 +780,7 @@ textarea.default_tinymce, textarea.custom_tinymce {
816
780
  background-color: $error_background_color;
817
781
  padding: 2*$default-padding;
818
782
  list-style-type: none;
819
- @include rounded-corner;
783
+ @extend .rounded-border;
820
784
  color: $error_text_color;
821
785
  border: 1px solid $error_border_color;
822
786
 
@@ -835,7 +799,7 @@ a.hint {
835
799
  cursor: help !important;
836
800
 
837
801
  &:hover span.bubble { display: block }
838
- span.bubble { @include tooltip }
802
+ span.bubble { @extend %tooltip }
839
803
  }
840
804
 
841
805
  .content_editor .hint {