alchemy_cms 4.0.6 → 4.1.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +1 -0
  3. data/.gitignore +1 -0
  4. data/.localeapp/config.rb +8 -0
  5. data/.rubocop.yml +26 -13
  6. data/.travis.yml +12 -14
  7. data/CHANGELOG.md +5 -24
  8. data/Gemfile +10 -7
  9. data/README.md +16 -14
  10. data/Rakefile +1 -1
  11. data/alchemy_cms.gemspec +6 -7
  12. data/app/assets/images/alchemy/alchemy-logo.png +0 -0
  13. data/app/assets/images/alchemy/alchemy-logo.svg +1 -70
  14. data/app/assets/images/alchemy/favicon.ico +0 -0
  15. data/app/assets/images/alchemy/icon.svg +1 -14
  16. data/app/assets/javascripts/alchemy/admin.js +0 -7
  17. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +2 -2
  18. data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +1 -1
  19. data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +1 -1
  20. data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +1 -0
  21. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +19 -6
  22. data/app/assets/javascripts/alchemy/alchemy.dirty.js.coffee +2 -7
  23. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +36 -26
  24. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +6 -15
  25. data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +1 -1
  26. data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +8 -11
  27. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +4 -1
  28. data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +1 -1
  29. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +5 -14
  30. data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +54 -75
  31. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +4 -13
  32. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +1 -0
  33. data/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee +12 -6
  34. data/app/assets/javascripts/alchemy/alchemy.translations.js.coffee +0 -158
  35. data/app/assets/stylesheets/alchemy/_defaults.scss +0 -2
  36. data/app/assets/stylesheets/alchemy/_extends.scss +13 -18
  37. data/app/assets/stylesheets/alchemy/_mixins.scss +72 -46
  38. data/app/assets/stylesheets/alchemy/_variables.scss +128 -59
  39. data/app/assets/stylesheets/alchemy/admin.scss +7 -1
  40. data/app/assets/stylesheets/alchemy/archive.scss +23 -27
  41. data/app/assets/stylesheets/alchemy/base.scss +5 -355
  42. data/app/assets/stylesheets/alchemy/buttons.scss +23 -60
  43. data/app/assets/stylesheets/alchemy/clipboard.scss +26 -0
  44. data/app/assets/stylesheets/alchemy/dashboard.scss +7 -40
  45. data/app/assets/stylesheets/alchemy/dialogs.scss +23 -36
  46. data/app/assets/stylesheets/alchemy/elements.scss +80 -156
  47. data/app/assets/stylesheets/alchemy/errors.scss +2 -2
  48. data/app/assets/stylesheets/alchemy/flash.scss +19 -10
  49. data/app/assets/stylesheets/alchemy/fonts.scss +13 -0
  50. data/app/assets/stylesheets/alchemy/forms.scss +6 -1
  51. data/app/assets/stylesheets/alchemy/frame.scss +24 -65
  52. data/app/assets/stylesheets/alchemy/hints.scss +2 -2
  53. data/app/assets/stylesheets/alchemy/icons.scss +3 -337
  54. data/app/assets/stylesheets/alchemy/image_library.scss +9 -10
  55. data/app/assets/stylesheets/alchemy/jquery-ui.scss +21 -839
  56. data/app/assets/stylesheets/alchemy/jquery.datetimepicker.scss +32 -57
  57. data/app/assets/stylesheets/alchemy/lists.scss +4 -8
  58. data/app/assets/stylesheets/alchemy/menubar.scss +26 -29
  59. data/app/assets/stylesheets/alchemy/navigation.scss +23 -25
  60. data/app/assets/stylesheets/alchemy/notices.scss +25 -25
  61. data/app/assets/stylesheets/alchemy/pagination.scss +12 -7
  62. data/app/assets/stylesheets/alchemy/preview_window.scss +20 -0
  63. data/app/assets/stylesheets/alchemy/resource_info.scss +1 -1
  64. data/app/assets/stylesheets/alchemy/search.scss +19 -15
  65. data/app/assets/stylesheets/alchemy/selects.scss +63 -32
  66. data/app/assets/stylesheets/alchemy/sitemap.scss +70 -148
  67. data/app/assets/stylesheets/alchemy/tables.scss +16 -59
  68. data/app/assets/stylesheets/alchemy/toolbar.scss +9 -36
  69. data/app/assets/stylesheets/alchemy/trash.scss +8 -0
  70. data/app/assets/stylesheets/alchemy/upload.scss +5 -6
  71. data/app/assets/stylesheets/tinymce/skins/alchemy/content.min.css.scss +1 -0
  72. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +78 -43
  73. data/app/controllers/alchemy/admin/attachments_controller.rb +6 -6
  74. data/app/controllers/alchemy/admin/base_controller.rb +9 -9
  75. data/app/controllers/alchemy/admin/contents_controller.rb +0 -17
  76. data/app/controllers/alchemy/admin/elements_controller.rb +1 -4
  77. data/app/controllers/alchemy/admin/essence_files_controller.rb +1 -3
  78. data/app/controllers/alchemy/admin/essence_pictures_controller.rb +1 -3
  79. data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
  80. data/app/controllers/alchemy/admin/pictures_controller.rb +5 -5
  81. data/app/controllers/alchemy/admin/resources_controller.rb +10 -10
  82. data/app/controllers/alchemy/admin/tags_controller.rb +7 -7
  83. data/app/controllers/alchemy/api/contents_controller.rb +6 -1
  84. data/app/controllers/alchemy/api/elements_controller.rb +5 -1
  85. data/app/controllers/alchemy/api/pages_controller.rb +6 -1
  86. data/app/controllers/alchemy/base_controller.rb +5 -3
  87. data/app/controllers/alchemy/pages_controller.rb +1 -1
  88. data/app/helpers/alchemy/admin/base_helper.rb +14 -15
  89. data/app/helpers/alchemy/admin/contents_helper.rb +1 -2
  90. data/app/helpers/alchemy/admin/elements_helper.rb +7 -6
  91. data/app/helpers/alchemy/admin/tags_helper.rb +3 -4
  92. data/app/helpers/alchemy/base_helper.rb +35 -5
  93. data/app/helpers/alchemy/elements_helper.rb +2 -2
  94. data/app/helpers/alchemy/pages_helper.rb +4 -2
  95. data/app/models/alchemy/attachment.rb +14 -23
  96. data/app/models/alchemy/base_record.rb +13 -0
  97. data/app/models/alchemy/cell.rb +1 -1
  98. data/app/models/alchemy/content.rb +1 -2
  99. data/app/models/alchemy/content/factory.rb +1 -1
  100. data/app/models/alchemy/element.rb +10 -12
  101. data/app/models/alchemy/essence_boolean.rb +1 -1
  102. data/app/models/alchemy/essence_date.rb +2 -2
  103. data/app/models/alchemy/essence_file.rb +1 -1
  104. data/app/models/alchemy/essence_html.rb +1 -1
  105. data/app/models/alchemy/essence_link.rb +1 -1
  106. data/app/models/alchemy/essence_picture.rb +1 -1
  107. data/app/models/alchemy/essence_richtext.rb +1 -1
  108. data/app/models/alchemy/essence_select.rb +1 -1
  109. data/app/models/alchemy/essence_text.rb +1 -1
  110. data/app/models/alchemy/folded_page.rb +1 -1
  111. data/app/models/alchemy/language.rb +21 -5
  112. data/app/models/alchemy/page.rb +17 -5
  113. data/app/models/alchemy/page/page_elements.rb +14 -2
  114. data/app/models/alchemy/page/page_naming.rb +17 -4
  115. data/app/models/alchemy/picture.rb +4 -7
  116. data/app/models/alchemy/site.rb +3 -3
  117. data/app/models/alchemy/tag.rb +3 -3
  118. data/app/models/concerns/alchemy/content_touching.rb +23 -0
  119. data/app/serializers/alchemy/element_serializer.rb +2 -0
  120. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +1 -1
  121. data/app/views/alchemy/admin/attachments/_attachment.html.erb +11 -21
  122. data/app/views/alchemy/admin/attachments/_files_list.html.erb +26 -29
  123. data/app/views/alchemy/admin/attachments/_filter_bar.html.erb +2 -3
  124. data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +3 -4
  125. data/app/views/alchemy/admin/attachments/_replace_button.html.erb +2 -3
  126. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +3 -3
  127. data/app/views/alchemy/admin/attachments/destroy.js.erb +1 -1
  128. data/app/views/alchemy/admin/attachments/edit.html.erb +2 -2
  129. data/app/views/alchemy/admin/attachments/index.html.erb +3 -2
  130. data/app/views/alchemy/admin/attachments/show.html.erb +7 -8
  131. data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
  132. data/app/views/alchemy/admin/clipboard/index.html.erb +23 -7
  133. data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
  134. data/app/views/alchemy/admin/clipboard/remove.js.erb +2 -2
  135. data/app/views/alchemy/admin/contents/create.js.erb +1 -1
  136. data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +9 -6
  137. data/app/views/alchemy/admin/dashboard/_recent_pages.html.erb +6 -4
  138. data/app/views/alchemy/admin/dashboard/_sites.html.erb +4 -2
  139. data/app/views/alchemy/admin/dashboard/_users.html.erb +6 -4
  140. data/app/views/alchemy/admin/dashboard/index.html.erb +3 -3
  141. data/app/views/alchemy/admin/dashboard/info.html.erb +6 -7
  142. data/app/views/alchemy/admin/elements/_add_picture.html.erb +1 -1
  143. data/app/views/alchemy/admin/elements/_element.html.erb +1 -1
  144. data/app/views/alchemy/admin/elements/_element_header.html.erb +14 -14
  145. data/app/views/alchemy/admin/elements/_element_toolbar.html.erb +3 -3
  146. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +2 -3
  147. data/app/views/alchemy/admin/elements/index.html.erb +2 -4
  148. data/app/views/alchemy/admin/elements/new.html.erb +1 -2
  149. data/app/views/alchemy/admin/elements/publish.js.erb +5 -5
  150. data/app/views/alchemy/admin/languages/_language.html.erb +4 -9
  151. data/app/views/alchemy/admin/languages/_table.html.erb +1 -1
  152. data/app/views/alchemy/admin/languages/index.html.erb +1 -1
  153. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +5 -5
  154. data/app/views/alchemy/admin/layoutpages/index.html.erb +5 -4
  155. data/app/views/alchemy/admin/leave.html.erb +1 -1
  156. data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +1 -1
  157. data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +1 -1
  158. data/app/views/alchemy/admin/pages/_form.html.erb +1 -1
  159. data/app/views/alchemy/admin/pages/_locked_page.html.erb +1 -1
  160. data/app/views/alchemy/admin/pages/_page.html.erb +31 -23
  161. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +5 -5
  162. data/app/views/alchemy/admin/pages/_page_infos.html.erb +3 -3
  163. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +1 -1
  164. data/app/views/alchemy/admin/pages/edit.html.erb +22 -21
  165. data/app/views/alchemy/admin/pages/index.html.erb +5 -21
  166. data/app/views/alchemy/admin/pages/info.html.erb +5 -5
  167. data/app/views/alchemy/admin/pages/sort.html.erb +1 -1
  168. data/app/views/alchemy/admin/pages/unlock.js.erb +2 -4
  169. data/app/views/alchemy/admin/partials/_flash.html.erb +1 -1
  170. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +7 -3
  171. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
  172. data/app/views/alchemy/admin/partials/_search_form.html.erb +3 -3
  173. data/app/views/alchemy/admin/pictures/_archive.html.erb +19 -17
  174. data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
  175. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +13 -13
  176. data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +2 -3
  177. data/app/views/alchemy/admin/pictures/_form.html.erb +3 -3
  178. data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +2 -3
  179. data/app/views/alchemy/admin/pictures/_picture.html.erb +7 -7
  180. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +3 -3
  181. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +6 -7
  182. data/app/views/alchemy/admin/pictures/index.html.erb +12 -12
  183. data/app/views/alchemy/admin/pictures/index.js.erb +0 -1
  184. data/app/views/alchemy/admin/pictures/show.html.erb +9 -9
  185. data/app/views/alchemy/admin/resources/_filter_bar.html.erb +2 -3
  186. data/app/views/alchemy/admin/resources/_form.html.erb +10 -2
  187. data/app/views/alchemy/admin/resources/_resource.html.erb +9 -14
  188. data/app/views/alchemy/admin/resources/_table.html.erb +1 -1
  189. data/app/views/alchemy/admin/resources/_tag_list.html.erb +4 -4
  190. data/app/views/alchemy/admin/resources/index.html.erb +2 -3
  191. data/app/views/alchemy/admin/sites/index.html.erb +1 -1
  192. data/app/views/alchemy/admin/tags/_tag.html.erb +7 -11
  193. data/app/views/alchemy/admin/tags/index.html.erb +4 -4
  194. data/app/views/alchemy/admin/trash/index.html.erb +2 -3
  195. data/app/views/alchemy/admin/uploader/_button.html.erb +1 -2
  196. data/app/views/alchemy/base/500.html.erb +1 -1
  197. data/app/views/alchemy/base/permission_denied.js.erb +1 -1
  198. data/app/views/alchemy/base/redirect.js.erb +1 -2
  199. data/app/views/alchemy/elements/_editor_not_found.html.erb +2 -3
  200. data/app/views/alchemy/essences/_essence_date_editor.html.erb +1 -1
  201. data/app/views/alchemy/essences/_essence_file_editor.html.erb +7 -11
  202. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +9 -7
  203. data/app/views/alchemy/essences/shared/_essence_picture_tools.html.erb +1 -1
  204. data/app/views/alchemy/pages/_meta_data.html.erb +1 -1
  205. data/app/views/kaminari/alchemy/_first_page.html.erb +7 -3
  206. data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
  207. data/app/views/kaminari/alchemy/_last_page.html.erb +7 -3
  208. data/app/views/kaminari/alchemy/_next_page.html.erb +4 -2
  209. data/app/views/kaminari/alchemy/_page.html.erb +1 -1
  210. data/app/views/kaminari/alchemy/_prev_page.html.erb +4 -2
  211. data/app/views/layouts/alchemy/admin.html.erb +8 -6
  212. data/bin/rails +2 -2
  213. data/bin/rspec +1 -1
  214. data/config/alchemy/config.yml +0 -2
  215. data/config/alchemy/modules.yml +5 -5
  216. data/config/initializers/simple_form.rb +45 -8
  217. data/config/locales/alchemy.en.yml +66 -179
  218. data/config/routes.rb +1 -1
  219. data/db/migrate/20180226123013_alchemy_four_point_zero.rb +392 -0
  220. data/db/migrate/20180227224537_migrate_tags_to_gutentag.rb +41 -0
  221. data/lib/alchemy/config.rb +0 -2
  222. data/lib/alchemy/engine.rb +5 -9
  223. data/lib/alchemy/essence.rb +6 -6
  224. data/lib/alchemy/filetypes.rb +13 -1
  225. data/lib/alchemy/forms/builder.rb +5 -3
  226. data/lib/alchemy/i18n.rb +8 -6
  227. data/lib/alchemy/modules.rb +1 -1
  228. data/lib/alchemy/name_conversions.rb +0 -2
  229. data/lib/alchemy/page_layout.rb +3 -2
  230. data/lib/alchemy/paths.rb +5 -5
  231. data/lib/alchemy/resource.rb +9 -9
  232. data/lib/alchemy/resources_helper.rb +11 -15
  233. data/lib/alchemy/routing_constraints.rb +2 -2
  234. data/lib/alchemy/shell.rb +0 -1
  235. data/lib/alchemy/taggable.rb +40 -0
  236. data/lib/alchemy/tasks/tidy.rb +1 -9
  237. data/lib/alchemy/test_support/factories/content_factory.rb +10 -0
  238. data/lib/alchemy/test_support/factories/element_factory.rb +5 -0
  239. data/lib/alchemy/test_support/shared_contexts.rb +1 -1
  240. data/lib/alchemy/tinymce.rb +2 -2
  241. data/lib/alchemy/upgrader/four_point_one.rb +42 -0
  242. data/lib/alchemy/upgrader/tasks/harden_acts_as_taggable_on_migrations.rb +27 -0
  243. data/lib/alchemy/version.rb +1 -1
  244. data/lib/alchemy_cms.rb +2 -3
  245. data/lib/rails/generators/alchemy/elements/elements_generator.rb +2 -2
  246. data/lib/rails/generators/alchemy/essence/essence_generator.rb +1 -1
  247. data/lib/rails/generators/alchemy/install/install_generator.rb +4 -8
  248. data/lib/rails/generators/alchemy/module/module_generator.rb +1 -1
  249. data/lib/rails/generators/alchemy/page_layouts/page_layouts_generator.rb +2 -2
  250. data/lib/rails/generators/alchemy/site_layouts/site_layouts_generator.rb +2 -2
  251. data/lib/rails/generators/alchemy/views/views_generator.rb +1 -1
  252. data/lib/tasks/alchemy/db.rake +2 -1
  253. data/lib/tasks/alchemy/tidy.rake +0 -6
  254. data/lib/tasks/alchemy/upgrade.rake +11 -144
  255. data/vendor/assets/fonts/fa-regular-400.eot +0 -0
  256. data/vendor/assets/fonts/fa-regular-400.svg +363 -0
  257. data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
  258. data/vendor/assets/fonts/fa-regular-400.woff +0 -0
  259. data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
  260. data/vendor/assets/fonts/fa-solid-900.eot +0 -0
  261. data/vendor/assets/fonts/fa-solid-900.svg +1413 -0
  262. data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
  263. data/vendor/assets/fonts/fa-solid-900.woff +0 -0
  264. data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
  265. data/vendor/assets/javascripts/tinymce/license.txt +6 -6
  266. data/vendor/assets/javascripts/tinymce/tinymce.min.js +2 -15
  267. data/vendor/assets/stylesheets/fontawesome/_animated.scss +20 -0
  268. data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +20 -0
  269. data/vendor/assets/stylesheets/fontawesome/_core.scss +16 -0
  270. data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +6 -0
  271. data/vendor/assets/stylesheets/fontawesome/_icons.scss +792 -0
  272. data/vendor/assets/stylesheets/fontawesome/_larger.scss +23 -0
  273. data/vendor/assets/stylesheets/fontawesome/_list.scss +18 -0
  274. data/vendor/assets/stylesheets/fontawesome/_mixins.scss +57 -0
  275. data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +23 -0
  276. data/vendor/assets/stylesheets/fontawesome/_screen-reader.scss +5 -0
  277. data/vendor/assets/stylesheets/fontawesome/_stacked.scss +31 -0
  278. data/vendor/assets/stylesheets/fontawesome/_variables.scss +805 -0
  279. data/vendor/assets/stylesheets/fontawesome/fa-regular.scss +22 -0
  280. data/vendor/assets/stylesheets/fontawesome/fa-solid.scss +23 -0
  281. data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +16 -0
  282. metadata +78 -112
  283. data/app/assets/fonts/alchemy/icons.eot +0 -0
  284. data/app/assets/fonts/alchemy/icons.svg +0 -33
  285. data/app/assets/fonts/alchemy/icons.ttf +0 -0
  286. data/app/assets/fonts/alchemy/icons.woff +0 -0
  287. data/app/assets/images/alchemy/icons.png +0 -0
  288. data/app/assets/images/alchemy/ui-icons_666666_256x240.png +0 -0
  289. data/app/assets/images/sassy-ie-overlay.png +0 -0
  290. data/app/assets/javascripts/alchemy/alchemy.jquery_loader.js +0 -42
  291. data/app/assets/stylesheets/alchemy/icon-font.scss +0 -75
  292. data/app/assets/stylesheets/alchemy/modules.scss +0 -27
  293. data/app/models/alchemy.rb +0 -7
  294. data/app/views/alchemy/admin/contents/destroy.js.erb +0 -4
  295. data/app/views/alchemy/admin/pictures/flush.js.erb +0 -2
  296. data/config/locales/alchemy.de.yml +0 -932
  297. data/config/locales/alchemy.es.yml +0 -960
  298. data/config/locales/alchemy.fr.yml +0 -938
  299. data/config/locales/alchemy.it.yml +0 -938
  300. data/config/locales/alchemy.nl.yml +0 -918
  301. data/config/locales/alchemy.ru.yml +0 -830
  302. data/config/locales/simple_form.de.yml +0 -26
  303. data/config/locales/simple_form.en.yml +0 -25
  304. data/config/locales/simple_form.es.yml +0 -6
  305. data/config/locales/simple_form.fr.yml +0 -26
  306. data/config/locales/simple_form.it.yml +0 -25
  307. data/config/locales/simple_form.nl.yml +0 -25
  308. data/config/locales/simple_form.ru.yml +0 -25
  309. data/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -378
  310. data/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -5
  311. data/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -5
  312. data/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -5
  313. data/db/migrate/20150608204610_add_parent_element_id_to_alchemy_elements.rb +0 -6
  314. data/db/migrate/20150729151825_add_link_text_to_alchemy_essence_files.rb +0 -5
  315. data/db/migrate/20150906195818_add_locale_to_alchemy_languages.rb +0 -7
  316. data/db/migrate/20160108174834_add_timebased_publishing_columns_to_pages.rb +0 -32
  317. data/db/migrate/20160422195310_add_image_file_format_to_alchemy_pictures.rb +0 -9
  318. data/db/migrate/20160617224938_change_alchemy_pages_locked_to_locked_at.rb +0 -22
  319. data/db/migrate/20160912223112_add_index_to_alchemy_pages_rgt.rb +0 -9
  320. data/db/migrate/20160927205604_add_foreign_key_indices_and_null_constraints.rb +0 -20
  321. data/db/migrate/20160928080104_add_foreign_keys.rb +0 -27
  322. data/lib/alchemy/touching.rb +0 -42
  323. data/lib/alchemy/upgrader/tasks/available_contents_upgrader.rb +0 -161
  324. data/lib/alchemy/upgrader/tasks/install_asset_manifests.rb +0 -15
  325. data/lib/alchemy/upgrader/tasks/install_dragonfly_config.rb +0 -14
  326. data/lib/alchemy/upgrader/tasks/nestable_elements_migration.rb +0 -71
  327. data/lib/alchemy/upgrader/tasks/three_point_two_task.rb +0 -31
  328. data/lib/alchemy/upgrader/three_point_five.rb +0 -32
  329. data/lib/alchemy/upgrader/three_point_four.rb +0 -52
  330. data/lib/alchemy/upgrader/three_point_one.rb +0 -54
  331. data/lib/alchemy/upgrader/three_point_three.rb +0 -50
  332. data/lib/alchemy/upgrader/three_point_two.rb +0 -40
  333. data/lib/alchemy/upgrader/three_point_zero.rb +0 -92
  334. data/vendor/assets/javascripts/jquery_plugins/jquery.floatThead.min.js +0 -3
  335. data/vendor/assets/javascripts/tinymce/langs/de.js +0 -219
  336. data/vendor/assets/javascripts/tinymce/langs/es.js +0 -219
  337. data/vendor/assets/javascripts/tinymce/langs/fr.js +0 -219
  338. data/vendor/assets/javascripts/tinymce/langs/it.js +0 -219
  339. data/vendor/assets/javascripts/tinymce/langs/nl.js +0 -219
  340. data/vendor/assets/javascripts/tinymce/langs/ru.js +0 -219
@@ -7,7 +7,7 @@
7
7
  [Alchemy.t(:last_upload_only), 'last_upload'],
8
8
  [Alchemy.t(:recently_uploaded_only), 'recent'],
9
9
  [Alchemy.t(:without_tag), 'without_tag']
10
- ], params[:filter]),
10
+ ], search_filter_params[:filter]),
11
11
  :data => { :remote => !!request.xhr? },
12
12
  :class => 'alchemy_selectbox'
13
13
  ) %>
@@ -21,9 +21,8 @@
21
21
  if ($this.data('remote') === true) {
22
22
  $.get(url, {filter: $this.val()}, null, 'script');
23
23
  } else {
24
- Alchemy.pleaseWaitOverlay();
25
24
  delimiter = url.match(/\?/) ? '&' : '?';
26
- window.location = url + delimiter + 'filter=' + $this.val();
25
+ Turbolinks.visit(url + delimiter + 'filter=' + $this.val());
27
26
  }
28
27
  return false;
29
28
  });
@@ -6,9 +6,9 @@
6
6
  <%= render 'alchemy/admin/partials/autocomplete_tag_list', f: f %>
7
7
  <small class="hint"><%= Alchemy.t('Please seperate the tags with commata') %></small>
8
8
  </div>
9
- <%= hidden_field_tag :q, params[:q] %>
9
+ <%= hidden_field_tag :q, search_filter_params[:q] %>
10
10
  <%= hidden_field_tag :size, params[:size] %>
11
- <%= hidden_field_tag :tagged_with, params[:tagged_with] %>
12
- <%= hidden_field_tag :filter, params[:filter] %>
11
+ <%= hidden_field_tag :tagged_with, search_filter_params[:tagged_with] %>
12
+ <%= hidden_field_tag :filter, search_filter_params[:filter] %>
13
13
  <%= f.submit Alchemy.t(:save) %>
14
14
  <% end %>
@@ -1,8 +1,7 @@
1
1
  <% if @pictures.empty? %>
2
- <div class="info">
3
- <%= render_icon('info') %>
2
+ <%= render_message do %>
4
3
  <%= Alchemy.t(:no_images_in_archive) %>
5
- </div>
4
+ <% end %>
6
5
  <% else %>
7
6
  <%= render partial: 'picture_to_assign',
8
7
  collection: @pictures,
@@ -5,15 +5,15 @@
5
5
  <% if picture.deletable? && can?(:destroy, picture) %>
6
6
  <span class="picture_tool delete">
7
7
  <%= link_to_confirm_dialog(
8
- "",
8
+ render_icon(:minus),
9
9
  Alchemy.t(:confirm_to_delete_image_from_server),
10
10
  alchemy.admin_picture_path(
11
11
  id: picture,
12
- q: params[:q],
12
+ q: search_filter_params[:q],
13
13
  page: params[:page],
14
- tagged_with: params[:tagged_with],
14
+ tagged_with: search_filter_params[:tagged_with],
15
15
  size: params[:size],
16
- filter: params[:filter]
16
+ filter: search_filter_params[:filter]
17
17
  ),
18
18
  {
19
19
  title: Alchemy.t('Delete image')
@@ -31,11 +31,11 @@
31
31
  image,
32
32
  alchemy.admin_picture_path(
33
33
  id: picture,
34
- q: params[:q],
34
+ q: search_filter_params[:q],
35
35
  page: params[:page],
36
- tagged_with: params[:tagged_with],
36
+ tagged_with: search_filter_params[:tagged_with],
37
37
  size: params[:size],
38
- filter: params[:filter]
38
+ filter: search_filter_params[:filter]
39
39
  ),
40
40
  class: 'thumbnail_background'
41
41
  ) %>
@@ -4,12 +4,12 @@
4
4
  <ul>
5
5
  <%= render_tag_list('Alchemy::Picture') %>
6
6
  </ul>
7
- <% if params[:tagged_with].present? %>
7
+ <% if search_filter_params[:tagged_with].present? %>
8
8
  <%= link_to(
9
- render_icon('delete-small') + Alchemy.t('Remove tag filter'),
9
+ render_icon(:times, size: 'xs') + Alchemy.t('Remove tag filter'),
10
10
  url_for(search_filter_params.except(:tagged_with)),
11
11
  remote: request.xhr?,
12
- class: 'button small with_icon please_wait'
12
+ class: 'secondary button small with_icon'
13
13
  ) %>
14
14
  <% end %>
15
15
  <% end %>
@@ -1,17 +1,16 @@
1
1
  <%= form_tag update_multiple_admin_pictures_path do %>
2
- <%= hidden_field_tag :q, params[:q] %>
2
+ <%= hidden_field_tag :q, search_filter_params[:q] %>
3
3
  <%= hidden_field_tag :size, params[:size] %>
4
- <%= hidden_field_tag :tagged_with, params[:tagged_with] %>
5
- <%= hidden_field_tag :filter, params[:filter] %>
4
+ <%= hidden_field_tag :tagged_with, search_filter_params[:tagged_with] %>
5
+ <%= hidden_field_tag :filter, search_filter_params[:filter] %>
6
6
 
7
7
  <% @pictures.pluck(:id).each do |id| %>
8
8
  <%= hidden_field_tag "picture_ids[]", id %>
9
9
  <% end %>
10
10
 
11
- <div class="info">
12
- <%= render_icon :info %>
13
- <p><%= Alchemy.t('You are about to edit many pictures at once') % {length: @pictures.size} %></p>
14
- </div>
11
+ <%= render_message do %>
12
+ <%= Alchemy.t('You are about to edit many pictures at once') % {length: @pictures.size} %>
13
+ <% end %>
15
14
 
16
15
  <div class="input text">
17
16
  <%= label_tag :pictures_name, Alchemy.t('Name'), class: 'control-label' %>
@@ -13,26 +13,26 @@
13
13
  <div class="button_group">
14
14
  <div class="button_with_label">
15
15
  <%= link_to(
16
- render_icon('zoom-out'),
17
- alchemy.admin_pictures_path(size: "small", q: params[:q]),
16
+ render_icon('search-minus'),
17
+ alchemy.admin_pictures_path(size: "small", q: search_filter_params[:q]),
18
18
  title: Alchemy.t(:small_thumbnails),
19
- class: "icon_button please_wait"
19
+ class: "icon_button"
20
20
  ) %>
21
21
  </div>
22
22
  <div class="button_with_label">
23
23
  <%= link_to(
24
- render_icon('zoom-equal'),
25
- alchemy.admin_pictures_path(size: "medium", q: params[:q]),
24
+ render_icon('search'),
25
+ alchemy.admin_pictures_path(size: "medium", q: search_filter_params[:q]),
26
26
  title: Alchemy.t(:medium_thumbnails),
27
- class: "icon_button please_wait"
27
+ class: "icon_button"
28
28
  ) %>
29
29
  </div>
30
30
  <div class="button_with_label">
31
31
  <%= link_to(
32
- render_icon('zoom-in'),
33
- alchemy.admin_pictures_path(size: "large", q: params[:q]),
32
+ render_icon('search-plus'),
33
+ alchemy.admin_pictures_path(size: "large", q: search_filter_params[:q]),
34
34
  title: Alchemy.t(:big_thumbnails),
35
- class: "icon_button please_wait"
35
+ class: "icon_button"
36
36
  ) %>
37
37
  </div>
38
38
  <label><%= Alchemy.t('Image size') %></label>
@@ -41,8 +41,8 @@
41
41
  <div class="toolbar_spacer"></div>
42
42
  <div class="button_with_label">
43
43
  <%= link_to(
44
- render_icon('select_all'),
45
- '',
44
+ render_icon('check-square', style: 'regular'),
45
+ nil,
46
46
  id: 'select_all_pictures',
47
47
  class: 'icon_button',
48
48
  'data-alchemy-hotkey' => 'alt+a'
@@ -59,7 +59,7 @@
59
59
  <h1>
60
60
  <%= @pictures.total_count %>
61
61
  <%= Alchemy::Picture.model_name.human(count: @pictures.total_count) %>
62
- <%= Alchemy.t("picture_library.filter.#{params[:filter]}") if params[:filter].present? %>
62
+ <%= Alchemy.t("picture_library.filter.#{search_filter_params[:filter]}") if search_filter_params[:filter].present? %>
63
63
  </h1>
64
64
  <%= render 'archive' %>
65
65
  </div>
@@ -1,3 +1,2 @@
1
- Alchemy.pleaseWaitOverlay(false);
2
1
  $('#archive_all').html('<%= j render("archive") %>');
3
2
  $('#filter_bar').replaceWith('<%= j render("filter_bar") %>');
@@ -6,29 +6,29 @@
6
6
  <% if @previous %>
7
7
  <%= link_to alchemy.admin_picture_path(
8
8
  id: @previous,
9
- q: params[:q],
9
+ q: search_filter_params[:q],
10
10
  page: params[:page],
11
- tagged_with: params[:tagged_with],
11
+ tagged_with: search_filter_params[:tagged_with],
12
12
  size: params[:size],
13
- filter: params[:filter]
13
+ filter: search_filter_params[:filter]
14
14
  ),
15
15
  class: "previous-picture",
16
16
  remote: true do %>
17
- <span class="icon-angle-left"></span>
17
+ <i class="icon fas fa-angle-left fa-fw"></i>
18
18
  <% end %>
19
19
  <% end %>
20
20
  <% if @next %>
21
21
  <%= link_to alchemy.admin_picture_path(
22
22
  id: @next,
23
- q: params[:q],
23
+ q: search_filter_params[:q],
24
24
  page: params[:page],
25
- tagged_with: params[:tagged_with],
25
+ tagged_with: search_filter_params[:tagged_with],
26
26
  size: params[:size],
27
- filter: params[:filter]
27
+ filter: search_filter_params[:filter]
28
28
  ),
29
29
  class: "next-picture",
30
30
  remote: true do %>
31
- <span class="icon-angle-right"></span>
31
+ <i class="icon fas fa-angle-right fa-fw"></i>
32
32
  <% end %>
33
33
  <% end %>
34
34
  </div>
@@ -39,5 +39,5 @@
39
39
  </div>
40
40
 
41
41
  <div class="picture-overlay-handle">
42
- <span class="icon-angle-double-right"></span>
42
+ <i class="icon fas fa-angle-double-right fa-fw"></i>
43
43
  </div>
@@ -3,7 +3,7 @@
3
3
  <%= select_tag(
4
4
  'resource_filter',
5
5
  options_for_select(
6
- resource_filter_select, params[:filter]
6
+ resource_filter_select, search_filter_params[:filter]
7
7
  ),
8
8
  include_blank: Alchemy.t(:all, scope: ['resources', resource_name, 'filters']),
9
9
  data: { remote: !!request.xhr? },
@@ -19,9 +19,8 @@
19
19
  if ($this.data('remote') === true) {
20
20
  $.get(url, {filter: $this.val()}, null, 'script');
21
21
  } else {
22
- Alchemy.pleaseWaitOverlay();
23
22
  delimiter = url.match(/\?/) ? '&' : '?';
24
- window.location = url + delimiter + 'filter=' + encodeURIComponent($this.val());
23
+ Turbolinks.visit(url + delimiter + 'filter=' + encodeURIComponent($this.val()));
25
24
  }
26
25
  return false;
27
26
  });
@@ -1,16 +1,24 @@
1
- <%= alchemy_form_for resource_instance_variable, url: resource_path(resource_instance_variable, current_location_params) do |f| %>
1
+ <%= alchemy_form_for resource_instance_variable, url: resource_path(resource_instance_variable, search_filter_params) do |f| %>
2
2
  <% resource_handler.editable_attributes.each do |attribute| %>
3
3
  <% if relation = attribute[:relation] %>
4
4
  <%= f.association relation[:name].to_sym,
5
5
  label_method: relation[:attr_method],
6
6
  include_blank: Alchemy.t(:blank, scope: 'resources.relation_select'),
7
7
  input_html: {class: 'alchemy_selectbox'} %>
8
+ <% elsif attribute[:type] == :datetime || attribute[:type] == :time %>
9
+ <div class="input <%= attribute[:type] %>">
10
+ <label class="control-label">
11
+ <%= f.object.class.human_attribute_name(attribute[:name]) %>
12
+ </label>
13
+ <%= alchemy_datepicker resource_instance_variable, attribute[:name],
14
+ type: attribute[:type] %>
15
+ </div>
8
16
  <% else %>
9
17
  <%= f.input attribute[:name], resource_attribute_field_options(attribute) %>
10
18
  <% end %>
11
19
  <% end %>
12
20
  <% if f.object.respond_to?(:tag_list) %>
13
- <div class="input string">
21
+ <div class="input string autocomplete_tag_list">
14
22
  <%= f.label :tag_list %>
15
23
  <%= render 'alchemy/admin/partials/autocomplete_tag_list', f: f %>
16
24
  </div>
@@ -2,29 +2,24 @@
2
2
  <% resource_handler.attributes.each do |attribute| %>
3
3
  <td class="<%= attribute[:type] %> <%= attribute[:name] %>">
4
4
  <% if attribute[:type] == :boolean %>
5
- <%= render_icon !!resource.send(attribute[:name]) %>
5
+ <%= resource.public_send(attribute[:name]) ? render_icon(:check) : nil %>
6
6
  <% else %>
7
7
  <%= render_attribute(resource, attribute) %>
8
8
  <% end %>
9
9
  </td>
10
10
  <% end %>
11
11
  <td class="tools">
12
- <% if can?(:destroy, resource) %>
13
- <%= delete_button resource_path(resource, current_location_params) %>
14
- <% end %>
15
- <% if can?(:edit, resource) %>
16
- <%= link_to_dialog(
17
- '',
18
- edit_resource_path(resource, current_location_params),
12
+ <% if can?(:destroy, resource) %>
13
+ <%= delete_button resource_path(resource, search_filter_params) %>
14
+ <% end %>
15
+ <% if can?(:edit, resource) %>
16
+ <%= link_to_dialog render_icon(:edit),
17
+ edit_resource_path(resource, search_filter_params),
19
18
  {
20
19
  title: Alchemy.t('Edit'),
21
20
  size: resource_window_size
22
21
  },
23
- {
24
- class: 'icon edit',
25
- title: Alchemy.t('Edit')
26
- }
27
- ) %>
28
- <% end %>
22
+ title: Alchemy.t('Edit') %>
23
+ <% end %>
29
24
  </td>
30
25
  </tr>
@@ -17,7 +17,7 @@
17
17
  <%= render_resources %>
18
18
  </tbody>
19
19
  </table>
20
- <% elsif params[:q].present? %>
20
+ <% elsif search_filter_params[:q].present? %>
21
21
  <p><%= Alchemy.t('Nothing found') %></p>
22
22
  <% end %>
23
23
 
@@ -1,15 +1,15 @@
1
- <div class="<%= params[:tagged_with].present? ? 'tag-list filtered' : 'tag-list' %>">
1
+ <div class="tag-list<%= ' with_filter_bar' if resource_has_filters %><%= ' filtered' if search_filter_params[:tagged_with].present? %>">
2
2
  <h2><%= Alchemy.t("Filter by tag") %></h2>
3
3
  <%= js_filter_field '.tag-list li' %>
4
4
  <ul>
5
5
  <%= render_tag_list(resource_model.name) %>
6
6
  </ul>
7
- <% if params[:tagged_with].present? %>
7
+ <% if search_filter_params[:tagged_with].present? %>
8
8
  <%= link_to(
9
- render_icon('delete-small') + Alchemy.t('Remove tag filter'),
9
+ render_icon(:times, size: 'xs') + Alchemy.t('Remove tag filter'),
10
10
  url_for(search_filter_params.except(:tagged_with)),
11
11
  remote: request.xhr?,
12
- class: 'button small with_icon please_wait'
12
+ class: 'secondary button small with_icon'
13
13
  ) %>
14
14
  <% end %>
15
15
  </div>
@@ -3,7 +3,7 @@
3
3
  <% toolbar(
4
4
  buttons: [
5
5
  {
6
- icon: 'create',
6
+ icon: :plus,
7
7
  label: label_title,
8
8
  url: new_resource_path,
9
9
  title: label_title,
@@ -16,11 +16,10 @@
16
16
  },
17
17
  {
18
18
  icon: 'download',
19
- url: resource_url_proxy.url_for(action: 'index', format: 'csv', q: params[:q], sort: params[:sort]),
19
+ url: resource_url_proxy.url_for(action: 'index', format: 'csv', q: search_filter_params[:q], sort: params[:sort]),
20
20
  label: Alchemy.t(:download_csv),
21
21
  title: Alchemy.t(:download_csv),
22
22
  dialog: false,
23
- loading_indicator: false,
24
23
  if_permitted_to: [:index, resource_model]
25
24
  }
26
25
  ]
@@ -3,7 +3,7 @@
3
3
  <% toolbar(
4
4
  buttons: [
5
5
  {
6
- icon: 'create',
6
+ icon: :plus,
7
7
  label: label_title,
8
8
  url: new_resource_path,
9
9
  title: label_title,
@@ -6,25 +6,21 @@
6
6
  </td>
7
7
  <td class="count"><%= tag.taggings.count %></td>
8
8
  <td class="tools">
9
- <% if can?(:destroy, Alchemy::Tag) %>
9
+ <% if can?(:destroy, Alchemy::Tag) %>
10
10
  <%= delete_button admin_tag_path(tag), {
11
11
  message: Alchemy.t(:do_you_really_want_to_delete_this_tag?),
12
- icon: 'tag_delete',
12
+ icon: :minus,
13
13
  title: Alchemy.t(:delete_tag)
14
14
  } %>
15
- <% end %>
16
- <% if can?(:edit, Alchemy::Tag) %>
17
- <%= link_to_dialog '',
15
+ <% end %>
16
+ <% if can?(:edit, Alchemy::Tag) %>
17
+ <%= link_to_dialog render_icon(:edit),
18
18
  edit_admin_tag_path(tag),
19
19
  {
20
20
  title: Alchemy.t(:edit_tag),
21
21
  size: '360x410'
22
22
  },
23
- {
24
- title: Alchemy.t(:edit_tag),
25
- class: 'icon tag_edit'
26
- }
27
- %>
28
- <% end %>
23
+ title: Alchemy.t(:edit_tag) %>
24
+ <% end %>
29
25
  </td>
30
26
  </tr>
@@ -1,7 +1,7 @@
1
1
  <%= toolbar(
2
2
  buttons: [
3
3
  {
4
- icon: 'tag_add',
4
+ icon: :plus,
5
5
  label: Alchemy.t('New Tag'),
6
6
  url: alchemy.new_admin_tag_path,
7
7
  title: Alchemy.t('New Tag'),
@@ -18,7 +18,7 @@
18
18
  <div id="archive_all" class="resources-table-wrapper">
19
19
  <h1 class="resources-header">
20
20
  <%= @tags.total_count %>
21
- <%= ActsAsTaggableOn::Tag.model_name.human(count: @tags.total_count) %>
21
+ <%= Gutentag::Tag.model_name.human(count: @tags.total_count) %>
22
22
  </h1>
23
23
  <% if @tags.any? %>
24
24
 
@@ -27,7 +27,7 @@
27
27
  <tr>
28
28
  <th class="icon"></th>
29
29
  <th class="name"><%= sort_link(@query, :name, hide_indicator: true) %></th>
30
- <th class="count"><%= ActsAsTaggableOn::Tag.human_attribute_name(:taggings_types) %></th>
30
+ <th class="count"><%= Gutentag::Tag.human_attribute_name(:taggings_types) %></th>
31
31
  <th class="count"><%= sort_link(@query, :taggings_count, hide_indicator: true) %></th>
32
32
  <th class="tools"></th>
33
33
  </tr>
@@ -43,7 +43,7 @@
43
43
 
44
44
  <%= render_message do %>
45
45
  <h2><%= Alchemy.t('No Tags found') %></h2>
46
- <% if params[:q].blank? %>
46
+ <% if search_filter_params[:q].blank? %>
47
47
  <p><%= Alchemy.t(:tags_get_created_if_used_the_first_time) %></p>
48
48
  <% end %>
49
49
  <% end %>