alchemy_cms 2.1.beta1 → 2.1.beta5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. data/.gitignore +2 -1
  2. data/.rspec +2 -2
  3. data/.travis.yml +2 -1
  4. data/Gemfile +8 -9
  5. data/README.md +10 -10
  6. data/Rakefile +0 -1
  7. data/alchemy_cms.gemspec +7 -9
  8. data/app/assets/images/alchemy/icons.png +0 -0
  9. data/app/assets/javascripts/alchemy/alchemy.base.js +8 -2
  10. data/app/assets/javascripts/alchemy/{alchemy.dragndrop.js → alchemy.dragndrop.js.erb} +3 -3
  11. data/app/assets/javascripts/alchemy/alchemy.element_editor_selector.js +1 -1
  12. data/app/assets/javascripts/alchemy/alchemy.growler.js +3 -3
  13. data/app/assets/javascripts/alchemy/alchemy.js +10 -15
  14. data/app/assets/javascripts/alchemy/alchemy.link_overlay.js +6 -2
  15. data/app/assets/javascripts/alchemy/alchemy.page_sorter.js +1 -1
  16. data/app/assets/javascripts/alchemy/alchemy.preview.js +1 -1
  17. data/app/assets/javascripts/alchemy/alchemy.routes.js.erb +38 -0
  18. data/app/assets/javascripts/alchemy/alchemy.swf_upload.js +360 -0
  19. data/app/assets/javascripts/alchemy/alchemy.windows.js +32 -17
  20. data/app/assets/javascripts/alchemy/preview.js +1 -0
  21. data/{vendor → app}/assets/javascripts/tiny_mce/plugins/alchemy_link/editor_plugin.js +0 -0
  22. data/{vendor → app}/assets/javascripts/tiny_mce/plugins/alchemy_link/langs/de.js +0 -0
  23. data/{vendor → app}/assets/javascripts/tiny_mce/plugins/alchemy_link/langs/en.js +0 -0
  24. data/{vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.erb → app/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.scss} +15 -33
  25. data/app/assets/stylesheets/alchemy/_defaults.scss +4 -16
  26. data/app/assets/stylesheets/alchemy/alchemy.css +2 -2
  27. data/app/assets/stylesheets/alchemy/base.css.scss +161 -205
  28. data/app/assets/stylesheets/alchemy/elements.css.scss +15 -8
  29. data/app/assets/stylesheets/alchemy/{jquery-ui.alchemy.css → jquery-ui.alchemy.css.scss} +41 -45
  30. data/app/assets/stylesheets/alchemy/jquery.sb.css.scss +14 -10
  31. data/app/assets/stylesheets/alchemy/{tinymce_content.css → tinymce_content.css.scss} +7 -6
  32. data/app/assets/stylesheets/alchemy/{tinymce_dialog.css → tinymce_dialog.css.scss} +7 -7
  33. data/app/controllers/alchemy/admin/attachments_controller.rb +131 -0
  34. data/app/controllers/alchemy/admin/base_controller.rb +118 -0
  35. data/app/controllers/alchemy/admin/clipboard_controller.rb +46 -0
  36. data/app/controllers/alchemy/admin/contents_controller.rb +55 -0
  37. data/app/controllers/alchemy/admin/dashboard_controller.rb +15 -0
  38. data/app/controllers/alchemy/admin/elements_controller.rb +123 -0
  39. data/app/controllers/alchemy/admin/essence_audios_controller.rb +12 -0
  40. data/app/controllers/alchemy/admin/essence_files_controller.rb +27 -0
  41. data/app/controllers/alchemy/admin/essence_flashes_controller.rb +12 -0
  42. data/app/controllers/alchemy/admin/essence_pictures_controller.rb +91 -0
  43. data/app/controllers/alchemy/admin/essence_videos_controller.rb +12 -0
  44. data/app/controllers/alchemy/admin/languages_controller.rb +7 -0
  45. data/app/controllers/alchemy/admin/layoutpages_controller.rb +13 -0
  46. data/app/controllers/alchemy/admin/pages_controller.rb +253 -0
  47. data/app/controllers/alchemy/admin/pictures_controller.rb +139 -0
  48. data/app/controllers/alchemy/admin/resources_controller.rb +132 -0
  49. data/app/controllers/alchemy/admin/trash_controller.rb +24 -0
  50. data/app/controllers/alchemy/admin/users_controller.rb +81 -0
  51. data/app/controllers/alchemy/attachments_controller.rb +30 -0
  52. data/app/controllers/alchemy/base_controller.rb +137 -0
  53. data/app/controllers/alchemy/elements_controller.rb +18 -0
  54. data/app/controllers/alchemy/messages_controller.rb +115 -0
  55. data/app/controllers/alchemy/pages_controller.rb +169 -0
  56. data/app/controllers/alchemy/pictures_controller.rb +62 -0
  57. data/app/controllers/alchemy/user_sessions_controller.rb +80 -0
  58. data/app/helpers/alchemy/admin/attachments_helper.rb +11 -0
  59. data/app/helpers/alchemy/admin/base_helper.rb +423 -0
  60. data/app/helpers/alchemy/admin/contents_helper.rb +75 -0
  61. data/app/helpers/alchemy/admin/elements_helper.rb +118 -0
  62. data/app/helpers/alchemy/admin/essences_helper.rb +78 -0
  63. data/app/helpers/alchemy/admin/pages_helper.rb +46 -0
  64. data/app/helpers/alchemy/admin/pictures_helper.rb +30 -0
  65. data/app/helpers/alchemy/base_helper.rb +65 -0
  66. data/app/helpers/alchemy/elements_helper.rb +173 -0
  67. data/app/helpers/alchemy/essences_helper.rb +101 -0
  68. data/app/helpers/alchemy/pages_helper.rb +550 -0
  69. data/app/mailers/alchemy/messages.rb +17 -0
  70. data/app/mailers/alchemy/notifications.rb +25 -0
  71. data/app/models/alchemy.rb +7 -0
  72. data/app/models/alchemy/attachment.rb +82 -0
  73. data/app/models/alchemy/cell.rb +61 -0
  74. data/app/models/alchemy/content.rb +163 -0
  75. data/app/models/alchemy/element.rb +479 -0
  76. data/app/models/alchemy/essence_audio.rb +19 -0
  77. data/app/models/alchemy/essence_date.rb +22 -0
  78. data/app/models/alchemy/essence_file.rb +19 -0
  79. data/app/models/alchemy/essence_flash.rb +17 -0
  80. data/app/models/alchemy/essence_html.rb +21 -0
  81. data/app/models/alchemy/essence_picture.rb +29 -0
  82. data/app/models/alchemy/essence_richtext.rb +63 -0
  83. data/app/models/alchemy/essence_text.rb +40 -0
  84. data/app/models/alchemy/essence_video.rb +19 -0
  85. data/app/models/alchemy/folded_page.rb +5 -0
  86. data/app/models/alchemy/language.rb +90 -0
  87. data/app/models/alchemy/message.rb +71 -0
  88. data/app/models/alchemy/page.rb +548 -0
  89. data/app/models/alchemy/picture.rb +100 -0
  90. data/app/models/alchemy/user.rb +72 -0
  91. data/app/models/alchemy/user_session.rb +12 -0
  92. data/app/sweepers/alchemy/content_sweeper.rb +22 -0
  93. data/app/sweepers/alchemy/pages_sweeper.rb +49 -0
  94. data/app/sweepers/alchemy/pictures_sweeper.rb +23 -0
  95. data/app/views/{admin → alchemy/admin}/attachments/_archive_overlay.html.erb +6 -6
  96. data/app/views/{admin → alchemy/admin}/attachments/_attachment.html.erb +14 -14
  97. data/app/views/{admin → alchemy/admin}/attachments/_file_to_assign.html.erb +0 -0
  98. data/app/views/alchemy/admin/attachments/_files_list.html.erb +25 -0
  99. data/app/views/{admin → alchemy/admin}/attachments/create.js.erb +0 -0
  100. data/app/views/{admin → alchemy/admin}/attachments/destroy.js.erb +0 -0
  101. data/app/views/{admin → alchemy/admin}/attachments/edit.html.erb +2 -2
  102. data/app/views/alchemy/admin/attachments/index.html.erb +18 -0
  103. data/app/views/{admin → alchemy/admin}/attachments/new.html.erb +3 -3
  104. data/app/views/{admin → alchemy/admin}/clipboard/clear.js.erb +1 -1
  105. data/app/views/alchemy/admin/clipboard/index.html.erb +19 -0
  106. data/app/views/alchemy/admin/clipboard/insert.js.erb +14 -0
  107. data/app/views/alchemy/admin/clipboard/remove.js.erb +10 -0
  108. data/app/views/{admin → alchemy/admin}/contents/_missing.html.erb +4 -4
  109. data/app/views/{admin → alchemy/admin}/contents/create.js.erb +10 -10
  110. data/app/views/{admin → alchemy/admin}/contents/destroy.js.erb +0 -0
  111. data/app/views/{admin → alchemy/admin}/contents/new.html.erb +1 -1
  112. data/app/views/{admin → alchemy/admin}/contents/order.js.erb +0 -0
  113. data/app/views/alchemy/admin/dashboard/index.html.erb +96 -0
  114. data/app/views/{admin → alchemy/admin}/elements/_add_content.html.erb +2 -2
  115. data/app/views/{admin → alchemy/admin}/elements/_element.html.erb +3 -3
  116. data/app/views/{admin → alchemy/admin}/elements/_element_foot.html.erb +8 -8
  117. data/app/views/{admin → alchemy/admin}/elements/_element_head.html.erb +4 -4
  118. data/app/views/{admin → alchemy/admin}/elements/_elements_select.html.erb +2 -2
  119. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +30 -0
  120. data/app/views/{admin → alchemy/admin}/elements/_picture_editor.html.erb +3 -3
  121. data/app/views/{admin → alchemy/admin}/elements/create.js.erb +2 -2
  122. data/app/views/{admin → alchemy/admin}/elements/destroy.js.erb +1 -1
  123. data/app/views/{admin → alchemy/admin}/elements/fold.js.erb +2 -2
  124. data/app/views/{admin → alchemy/admin}/elements/index.html.erb +1 -10
  125. data/app/views/{admin → alchemy/admin}/elements/list.js.erb +2 -2
  126. data/app/views/alchemy/admin/elements/new.html.erb +41 -0
  127. data/app/views/{admin → alchemy/admin}/elements/order.js.erb +1 -1
  128. data/app/views/{admin → alchemy/admin}/elements/trash.js.erb +1 -1
  129. data/app/views/{admin → alchemy/admin}/elements/update.js.erb +1 -1
  130. data/app/views/{admin → alchemy/admin}/essence_files/assign.js.erb +1 -1
  131. data/app/views/{admin → alchemy/admin}/essence_files/edit.html.erb +23 -23
  132. data/app/views/{admin → alchemy/admin}/essence_pictures/assign.js.erb +2 -2
  133. data/app/views/{admin → alchemy/admin}/essence_pictures/crop.html.erb +15 -6
  134. data/app/views/{admin → alchemy/admin}/essence_pictures/destroy.js.erb +1 -1
  135. data/app/views/{admin → alchemy/admin}/essence_pictures/edit.html.erb +11 -11
  136. data/app/views/{admin → alchemy/admin}/essence_pictures/save_link.js.erb +0 -0
  137. data/app/views/{admin → alchemy/admin}/essence_pictures/update.js.erb +2 -2
  138. data/app/views/alchemy/admin/languages/_language.html.erb +36 -0
  139. data/app/views/{admin → alchemy/admin}/layoutpages/_layoutpage.html.erb +18 -18
  140. data/app/views/alchemy/admin/layoutpages/index.html.erb +65 -0
  141. data/app/views/{admin → alchemy/admin}/pages/_contactform_links.html.erb +6 -6
  142. data/app/views/alchemy/admin/pages/_create_language_form.html.erb +38 -0
  143. data/app/views/{admin → alchemy/admin}/pages/_external_link.html.erb +9 -9
  144. data/app/views/{admin → alchemy/admin}/pages/_file_link.html.erb +13 -13
  145. data/app/views/{admin → alchemy/admin}/pages/_internal_link.html.erb +8 -8
  146. data/app/views/{admin → alchemy/admin}/pages/_new_page_form.html.erb +6 -6
  147. data/app/views/{admin → alchemy/admin}/pages/_page.html.erb +25 -25
  148. data/app/views/{admin → alchemy/admin}/pages/_page_for_links.html.erb +6 -6
  149. data/app/views/{admin → alchemy/admin}/pages/_page_infos.html.erb +3 -3
  150. data/app/views/{admin → alchemy/admin}/pages/_page_status.html.erb +4 -4
  151. data/app/views/{admin → alchemy/admin}/pages/_sitemap.html.erb +21 -21
  152. data/app/views/alchemy/admin/pages/configure.html.erb +71 -0
  153. data/app/views/{admin → alchemy/admin}/pages/configure_external.html.erb +9 -9
  154. data/app/views/{admin → alchemy/admin}/pages/destroy.js.erb +2 -2
  155. data/app/views/alchemy/admin/pages/edit.html.erb +181 -0
  156. data/app/views/alchemy/admin/pages/flush.js.erb +2 -0
  157. data/app/views/{admin → alchemy/admin}/pages/fold.js.erb +0 -0
  158. data/app/views/alchemy/admin/pages/index.html.erb +104 -0
  159. data/app/views/{admin → alchemy/admin}/pages/link.html.erb +4 -4
  160. data/app/views/alchemy/admin/pages/locked.html.erb +3 -0
  161. data/app/views/{admin → alchemy/admin}/pages/new.html.erb +8 -8
  162. data/app/views/{admin → alchemy/admin}/pages/show.html.erb +0 -0
  163. data/app/views/{admin → alchemy/admin}/pages/sort.js.erb +0 -0
  164. data/app/views/{admin → alchemy/admin}/pages/unlock.js.erb +1 -1
  165. data/app/views/{admin → alchemy/admin}/pages/update.js.erb +5 -5
  166. data/app/views/{admin → alchemy/admin}/partials/_flash.html.erb +0 -0
  167. data/app/views/{admin → alchemy/admin}/partials/_flash_notices.html.erb +1 -1
  168. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +14 -0
  169. data/app/views/alchemy/admin/partials/_pagination_links.html.erb +5 -0
  170. data/app/views/{admin → alchemy/admin}/partials/_remote_pagination_links.html.erb +2 -2
  171. data/app/views/{admin → alchemy/admin}/partials/_remote_search_form.html.erb +2 -2
  172. data/app/views/{admin → alchemy/admin}/partials/_search_form.html.erb +6 -7
  173. data/app/views/alchemy/admin/partials/_sub_navigation_tab.html.erb +8 -0
  174. data/app/views/alchemy/admin/partials/_upload_form.html.erb +129 -0
  175. data/app/views/{admin → alchemy/admin}/pictures/_archive_overlay.html.erb +3 -3
  176. data/app/views/{admin → alchemy/admin}/pictures/_filter_and_size_bar.html.erb +15 -15
  177. data/app/views/{admin → alchemy/admin}/pictures/_picture.html.erb +7 -7
  178. data/app/views/{admin → alchemy/admin}/pictures/_picture_to_assign.html.erb +2 -2
  179. data/app/views/alchemy/admin/pictures/_pictures_list.html.erb +14 -0
  180. data/app/views/{admin → alchemy/admin}/pictures/archive_overlay.js.erb +0 -0
  181. data/app/views/{admin → alchemy/admin}/pictures/create.js.erb +3 -3
  182. data/app/views/{admin → alchemy/admin}/pictures/flush.js.erb +0 -0
  183. data/app/views/alchemy/admin/pictures/index.html.erb +83 -0
  184. data/app/views/{admin → alchemy/admin}/pictures/new.html.erb +3 -3
  185. data/app/views/alchemy/admin/pictures/show_in_window.html.erb +1 -0
  186. data/app/views/{admin → alchemy/admin}/pictures/update.js.erb +0 -0
  187. data/app/views/alchemy/admin/resources/_form.html.erb +20 -0
  188. data/app/views/alchemy/admin/resources/_resource.html.erb +35 -0
  189. data/app/views/alchemy/admin/resources/_table.html.erb +23 -0
  190. data/app/views/alchemy/admin/resources/destroy.js.erb +1 -0
  191. data/app/views/{admin/languages → alchemy/admin/resources}/edit.html.erb +0 -0
  192. data/app/views/alchemy/admin/resources/index.html.erb +19 -0
  193. data/app/views/{admin/languages → alchemy/admin/resources}/new.html.erb +0 -0
  194. data/app/views/{admin → alchemy/admin}/trash/clear.js.erb +1 -1
  195. data/app/views/{admin → alchemy/admin}/trash/index.html.erb +4 -4
  196. data/app/views/alchemy/admin/users/_table.html.erb +54 -0
  197. data/app/views/{admin → alchemy/admin}/users/_user.html.erb +14 -12
  198. data/app/views/{admin → alchemy/admin}/users/edit.html.erb +0 -0
  199. data/app/views/alchemy/admin/users/index.html.erb +41 -0
  200. data/app/views/{admin → alchemy/admin}/users/new.html.erb +1 -1
  201. data/app/views/{attachments → alchemy/attachments}/show.html.erb +0 -0
  202. data/app/views/alchemy/base/500.html.erb +5 -0
  203. data/app/views/alchemy/base/error_notice.js.erb +2 -0
  204. data/app/views/alchemy/base/permission_denied.js.erb +2 -0
  205. data/app/views/alchemy/{redirect.js.erb → base/redirect.js.erb} +0 -0
  206. data/app/views/alchemy/{remote_errors.js.erb → base/remote_errors.js.erb} +0 -0
  207. data/app/views/alchemy/{update.js.erb → base/update.js.erb} +0 -0
  208. data/app/views/{elements → alchemy/elements}/_article_editor.html.erb +0 -0
  209. data/app/views/{elements → alchemy/elements}/_article_view.html.erb +1 -1
  210. data/app/views/{elements → alchemy/elements}/_bild_editor.html.erb +0 -0
  211. data/app/views/{elements → alchemy/elements}/_bild_text_editor.html.erb +0 -0
  212. data/app/views/{elements → alchemy/elements}/_bild_text_view.html.erb +1 -1
  213. data/app/views/{elements → alchemy/elements}/_bild_view.html.erb +1 -1
  214. data/app/views/{elements → alchemy/elements}/_claim_editor.html.erb +0 -0
  215. data/app/views/{elements → alchemy/elements}/_claim_view.html.erb +0 -0
  216. data/app/views/{elements → alchemy/elements}/_contactform_editor.html.erb +0 -0
  217. data/app/views/{elements → alchemy/elements}/_contactform_view.html.erb +0 -0
  218. data/app/views/{elements → alchemy/elements}/_editor_not_found.html.erb +1 -1
  219. data/app/views/{elements → alchemy/elements}/_footnote_editor.html.erb +0 -0
  220. data/app/views/{elements → alchemy/elements}/_footnote_view.html.erb +0 -0
  221. data/app/views/{elements → alchemy/elements}/_header_editor.html.erb +0 -0
  222. data/app/views/{elements → alchemy/elements}/_header_view.html.erb +1 -1
  223. data/app/views/{elements → alchemy/elements}/_headline_editor.html.erb +0 -0
  224. data/app/views/{elements → alchemy/elements}/_headline_view.html.erb +0 -0
  225. data/app/views/{elements → alchemy/elements}/_image_mosaic_editor.html.erb +0 -0
  226. data/app/views/{elements → alchemy/elements}/_image_mosaic_view.html.erb +1 -1
  227. data/app/views/{elements → alchemy/elements}/_intro_editor.html.erb +0 -0
  228. data/app/views/{elements → alchemy/elements}/_intro_image_text_editor.html.erb +0 -0
  229. data/app/views/{elements → alchemy/elements}/_intro_image_text_view.html.erb +1 -1
  230. data/app/views/{elements → alchemy/elements}/_intro_view.html.erb +0 -0
  231. data/app/views/{elements → alchemy/elements}/_news_editor.html.erb +0 -0
  232. data/app/views/{elements → alchemy/elements}/_news_view.html.erb +0 -0
  233. data/app/views/alchemy/elements/_searchresult_editor.html.erb +1 -0
  234. data/app/views/alchemy/elements/_searchresult_view.html.erb +4 -0
  235. data/app/views/alchemy/elements/_sitemap_editor.html.erb +3 -0
  236. data/app/views/{elements → alchemy/elements}/_sitemap_view.html.erb +2 -2
  237. data/app/views/{elements → alchemy/elements}/_sitename_editor.html.erb +0 -0
  238. data/app/views/{elements → alchemy/elements}/_sitename_view.html.erb +0 -0
  239. data/app/views/{elements → alchemy/elements}/_subheadline_editor.html.erb +0 -0
  240. data/app/views/{elements → alchemy/elements}/_subheadline_view.html.erb +0 -0
  241. data/app/views/{elements → alchemy/elements}/_text_editor.html.erb +0 -0
  242. data/app/views/{elements → alchemy/elements}/_text_view.html.erb +0 -0
  243. data/app/views/{elements → alchemy/elements}/_view_not_found.html.erb +0 -0
  244. data/app/views/alchemy/elements/show.html.erb +6 -0
  245. data/app/views/{elements → alchemy/elements}/show.js.erb +1 -1
  246. data/app/views/alchemy/essences/_essence_audio_editor.html.erb +1 -0
  247. data/app/views/{essences → alchemy/essences}/_essence_audio_view.html.erb +0 -0
  248. data/app/views/{essences → alchemy/essences}/_essence_date_editor.html.erb +0 -0
  249. data/app/views/{essences → alchemy/essences}/_essence_date_view.html.erb +0 -0
  250. data/app/views/{essences → alchemy/essences}/_essence_file_editor.html.erb +9 -9
  251. data/app/views/{essences → alchemy/essences}/_essence_file_view.html.erb +1 -1
  252. data/app/views/alchemy/essences/_essence_flash_editor.html.erb +1 -0
  253. data/app/views/{essences → alchemy/essences}/_essence_flash_view.html.erb +0 -0
  254. data/app/views/{essences → alchemy/essences}/_essence_html_editor.html.erb +0 -0
  255. data/app/views/{essences → alchemy/essences}/_essence_html_view.html.erb +0 -0
  256. data/app/views/{essences → alchemy/essences}/_essence_picture_editor.html.erb +8 -8
  257. data/app/views/{essences → alchemy/essences}/_essence_picture_tools.html.erb +11 -11
  258. data/app/views/{essences → alchemy/essences}/_essence_picture_view.html.erb +2 -4
  259. data/app/views/alchemy/essences/_essence_richtext_editor.html.erb +11 -0
  260. data/app/views/{essences → alchemy/essences}/_essence_richtext_view.html.erb +0 -0
  261. data/app/views/{essences → alchemy/essences}/_essence_text_editor.html.erb +6 -6
  262. data/app/views/{essences → alchemy/essences}/_essence_text_view.html.erb +0 -0
  263. data/app/views/alchemy/essences/_essence_video_editor.html.erb +1 -0
  264. data/app/views/{essences → alchemy/essences}/_essence_video_view.html.erb +1 -1
  265. data/app/views/{messages → alchemy/messages}/contact_form_mail.html.erb +0 -0
  266. data/app/views/{messages → alchemy/messages}/contact_form_mail.text.erb +0 -0
  267. data/app/views/{messages → alchemy/messages}/new.html.erb +0 -0
  268. data/app/views/{navigation → alchemy/navigation}/_image_link.html.erb +0 -0
  269. data/app/views/{navigation → alchemy/navigation}/_link.html.erb +1 -1
  270. data/app/views/{navigation → alchemy/navigation}/_renderer.html.erb +0 -0
  271. data/app/views/alchemy/notifications/admin_user_created.text.erb +13 -0
  272. data/app/views/alchemy/notifications/registered_user_created.text.erb +10 -0
  273. data/app/views/{page_layouts → alchemy/page_layouts}/_contact.html.erb +0 -0
  274. data/app/views/{page_layouts → alchemy/page_layouts}/_external.html.erb +0 -0
  275. data/app/views/{page_layouts → alchemy/page_layouts}/_intro.html.erb +0 -0
  276. data/app/views/{page_layouts → alchemy/page_layouts}/_layout_footer.html.erb +0 -0
  277. data/app/views/{page_layouts → alchemy/page_layouts}/_layout_header.html.erb +0 -0
  278. data/app/views/{page_layouts → alchemy/page_layouts}/_news.html.erb +0 -0
  279. data/app/views/{_newsletter_layout.html.erb → alchemy/page_layouts/_newsletter_layout.html.erb} +0 -0
  280. data/app/views/{page_layouts → alchemy/page_layouts}/_search.html.erb +0 -0
  281. data/app/views/{page_layouts → alchemy/page_layouts}/_standard.html.erb +0 -0
  282. data/app/views/{pages → alchemy/pages}/show.html.erb +0 -0
  283. data/app/views/{pages → alchemy/pages}/show.rss.builder +0 -0
  284. data/app/views/{pages → alchemy/pages}/sitemap.xml.erb +0 -0
  285. data/app/views/{pictures → alchemy/pictures}/show.gif.flexi +0 -0
  286. data/app/views/{pictures → alchemy/pictures}/show.jpg.flexi +0 -0
  287. data/app/views/{pictures → alchemy/pictures}/show.png.flexi +0 -0
  288. data/app/views/{pictures → alchemy/pictures}/thumbnail.png.flexi +0 -0
  289. data/app/views/{pictures → alchemy/pictures}/zoom.png.flexi +0 -0
  290. data/app/views/alchemy/search/_result.html.erb +9 -0
  291. data/app/views/alchemy/user_sessions/leave.html.erb +11 -0
  292. data/app/views/alchemy/user_sessions/login.html.erb +47 -0
  293. data/app/views/alchemy/user_sessions/logout.html.erb +3 -0
  294. data/app/views/alchemy/user_sessions/signup.html.erb +14 -0
  295. data/app/views/layouts/{alchemy.html.erb → alchemy/admin.html.erb} +23 -17
  296. data/app/views/layouts/alchemy/login.html.erb +37 -0
  297. data/app/views/layouts/alchemy/pages.html.erb +29 -0
  298. data/app/views/layouts/{sitemap.xml.erb → alchemy/sitemap.xml.erb} +0 -0
  299. data/config/alchemy/config.yml +2 -80
  300. data/config/alchemy/modules.yml +70 -0
  301. data/config/alchemy/page_layouts.yml +2 -0
  302. data/config/authorization_rules.rb +32 -39
  303. data/config/locales/alchemy.de.yml +789 -0
  304. data/config/locales/alchemy.en.yml +587 -0
  305. data/config/routes.rb +144 -142
  306. data/db/migrate/20111116125112_namespace_models.rb +23 -0
  307. data/lib/alchemy/auth_engine.rb +7 -0
  308. data/lib/alchemy/capistrano.rb +4 -1
  309. data/lib/alchemy/engine.rb +39 -25
  310. data/lib/alchemy/essence.rb +5 -1
  311. data/lib/alchemy/i18n.rb +47 -0
  312. data/lib/alchemy/modules.rb +38 -0
  313. data/lib/alchemy/page_layout.rb +98 -56
  314. data/lib/alchemy/seeder.rb +60 -110
  315. data/lib/alchemy/tinymce.rb +2 -2
  316. data/lib/alchemy/version.rb +3 -3
  317. data/lib/alchemy_cms.rb +23 -23
  318. data/lib/rails/generators/alchemy/elements/elements_generator.rb +1 -1
  319. data/lib/rails/generators/alchemy/elements/templates/editor.html.erb +1 -1
  320. data/lib/rails/generators/alchemy/elements/templates/view.html.erb +2 -2
  321. data/lib/rails/generators/alchemy/page_layouts/page_layouts_generator.rb +1 -1
  322. data/lib/rails/generators/alchemy/plugin/plugin_generator.rb +0 -1
  323. data/lib/rails/generators/alchemy/scaffold/files/pages.html.erb +1 -1
  324. data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +34 -34
  325. data/lib/tasks/install.rake +2 -9
  326. data/lib/tasks/upgrade.rake +69 -208
  327. data/spec/controllers/admin/clipboard_controller_spec.rb +33 -35
  328. data/spec/controllers/admin/contents_controller_spec.rb +5 -5
  329. data/spec/controllers/admin/elements_controller_spec.rb +22 -0
  330. data/spec/controllers/admin/trash_controller_spec.rb +5 -5
  331. data/spec/controllers/base_controller_spec.rb +67 -0
  332. data/spec/controllers/pages_controller_spec.rb +6 -6
  333. data/spec/dummy/config/application.rb +1 -8
  334. data/spec/dummy/config/routes.rb +2 -57
  335. data/spec/dummy/db/schema.rb +27 -27
  336. data/spec/factories.rb +8 -8
  337. data/spec/helpers/{alchemy_helper_spec.rb → admin/base_helper_spec.rb} +8 -1
  338. data/spec/helpers/admin/contents_helper_spec.rb +25 -0
  339. data/spec/helpers/admin/elements_helper_spec.rb +31 -3
  340. data/spec/helpers/admin/essences_helper_spec.rb +27 -0
  341. data/spec/helpers/elements_helper_spec.rb +99 -21
  342. data/spec/helpers/essences_helper_spec.rb +1 -18
  343. data/spec/helpers/pages_helper_spec.rb +212 -26
  344. data/spec/integration/admin/pages_controller_spec.rb +56 -0
  345. data/spec/integration/navigation_spec.rb +1 -1
  346. data/spec/integration/pages_controller_spec.rb +85 -68
  347. data/spec/integration/security_spec.rb +49 -22
  348. data/spec/models/content_spec.rb +3 -3
  349. data/spec/models/element_spec.rb +19 -11
  350. data/spec/models/essence_richtext_spec.rb +2 -2
  351. data/spec/models/language_spec.rb +36 -7
  352. data/spec/models/page_spec.rb +57 -13
  353. data/spec/models/user_spec.rb +1 -1
  354. data/spec/page_layout_spec.rb +13 -3
  355. data/spec/routing_spec.rb +12 -8
  356. data/spec/spec_helper.rb +8 -9
  357. data/spec/support/controller_hacks.rb +37 -0
  358. data/vendor/assets/javascripts/swfupload/SWFObject License.txt +4 -0
  359. data/vendor/assets/javascripts/swfupload/swfupload.cookies.js +53 -0
  360. data/vendor/assets/javascripts/swfupload/swfupload.js +1 -1
  361. data/vendor/assets/javascripts/swfupload/{queue.js → swfupload.queue.js} +97 -97
  362. data/vendor/assets/javascripts/swfupload/swfupload.speed.js +342 -0
  363. data/vendor/assets/javascripts/swfupload/swfupload.swfobject.js +111 -0
  364. data/vendor/assets/javascripts/tiny_mce/license.txt +504 -504
  365. data/vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
  366. data/vendor/assets/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -110
  367. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  368. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  369. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  370. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  371. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  372. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  373. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  374. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  375. data/vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -387
  376. data/vendor/assets/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -36
  377. data/vendor/assets/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -51
  378. data/vendor/assets/javascripts/tiny_mce/plugins/paste/pastetext.htm +26 -26
  379. data/vendor/assets/javascripts/tiny_mce/plugins/paste/pasteword.htm +21 -21
  380. data/vendor/assets/javascripts/tiny_mce/plugins/table/cell.htm +180 -180
  381. data/vendor/assets/javascripts/tiny_mce/plugins/table/css/cell.css +16 -16
  382. data/vendor/assets/javascripts/tiny_mce/plugins/table/css/row.css +25 -25
  383. data/vendor/assets/javascripts/tiny_mce/plugins/table/css/table.css +13 -13
  384. data/vendor/assets/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -1
  385. data/vendor/assets/javascripts/tiny_mce/plugins/table/js/cell.js +319 -319
  386. data/vendor/assets/javascripts/tiny_mce/plugins/table/js/merge_cells.js +27 -27
  387. data/vendor/assets/javascripts/tiny_mce/plugins/table/js/row.js +237 -237
  388. data/vendor/assets/javascripts/tiny_mce/plugins/table/js/table.js +484 -450
  389. data/vendor/assets/javascripts/tiny_mce/plugins/table/merge_cells.htm +32 -32
  390. data/vendor/assets/javascripts/tiny_mce/plugins/table/row.htm +158 -158
  391. data/vendor/assets/javascripts/tiny_mce/plugins/table/table.htm +188 -188
  392. data/vendor/assets/javascripts/tiny_mce/themes/advanced/about.htm +52 -52
  393. data/vendor/assets/javascripts/tiny_mce/themes/advanced/anchor.htm +26 -26
  394. data/vendor/assets/javascripts/tiny_mce/themes/advanced/charmap.htm +55 -51
  395. data/vendor/assets/javascripts/tiny_mce/themes/advanced/color_picker.htm +74 -74
  396. data/vendor/assets/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -1
  397. data/vendor/assets/javascripts/tiny_mce/themes/advanced/image.htm +80 -80
  398. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/about.js +73 -73
  399. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/anchor.js +43 -43
  400. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/charmap.js +363 -355
  401. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/color_picker.js +329 -329
  402. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/image.js +251 -251
  403. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/link.js +153 -153
  404. data/vendor/assets/javascripts/tiny_mce/themes/advanced/js/source_editor.js +56 -56
  405. data/vendor/assets/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +1 -1
  406. data/vendor/assets/javascripts/tiny_mce/themes/advanced/link.htm +57 -57
  407. data/vendor/assets/javascripts/tiny_mce/themes/advanced/shortcuts.htm +47 -47
  408. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/content.css +50 -50
  409. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -117
  410. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -214
  411. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/highcontrast/content.css +24 -0
  412. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  413. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css +102 -0
  414. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +48 -48
  415. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -117
  416. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +217 -217
  417. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +7 -7
  418. data/vendor/assets/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -5
  419. data/vendor/assets/javascripts/tiny_mce/themes/advanced/source_editor.htm +25 -25
  420. data/vendor/assets/javascripts/tiny_mce/tiny_mce.js +1 -1
  421. data/vendor/assets/javascripts/tiny_mce/utils/editable_selects.js +70 -70
  422. data/vendor/assets/javascripts/tiny_mce/utils/form_utils.js +210 -210
  423. data/vendor/assets/javascripts/tiny_mce/utils/mctabs.js +161 -161
  424. data/vendor/assets/javascripts/tiny_mce/utils/validate.js +252 -252
  425. metadata +432 -465
  426. data/app/controllers/admin/attachments_controller.rb +0 -136
  427. data/app/controllers/admin/clipboard_controller.rb +0 -43
  428. data/app/controllers/admin/contents_controller.rb +0 -60
  429. data/app/controllers/admin/elements_controller.rb +0 -134
  430. data/app/controllers/admin/essence_audios_controller.rb +0 -10
  431. data/app/controllers/admin/essence_files_controller.rb +0 -25
  432. data/app/controllers/admin/essence_flashes_controller.rb +0 -10
  433. data/app/controllers/admin/essence_pictures_controller.rb +0 -84
  434. data/app/controllers/admin/essence_videos_controller.rb +0 -10
  435. data/app/controllers/admin/languages_controller.rb +0 -64
  436. data/app/controllers/admin/layoutpages_controller.rb +0 -12
  437. data/app/controllers/admin/pages_controller.rb +0 -251
  438. data/app/controllers/admin/pictures_controller.rb +0 -143
  439. data/app/controllers/admin/trash_controller.rb +0 -28
  440. data/app/controllers/admin/users_controller.rb +0 -73
  441. data/app/controllers/admin_controller.rb +0 -76
  442. data/app/controllers/alchemy_controller.rb +0 -245
  443. data/app/controllers/attachments_controller.rb +0 -28
  444. data/app/controllers/elements_controller.rb +0 -16
  445. data/app/controllers/messages_controller.rb +0 -113
  446. data/app/controllers/pages_controller.rb +0 -150
  447. data/app/controllers/pictures_controller.rb +0 -63
  448. data/app/helpers/admin/attachments_helper.rb +0 -7
  449. data/app/helpers/admin/elements_helper.rb +0 -112
  450. data/app/helpers/admin/pages_helper.rb +0 -38
  451. data/app/helpers/admin/pictures_helper.rb +0 -26
  452. data/app/helpers/alchemy_helper.rb +0 -379
  453. data/app/helpers/contents_helper.rb +0 -69
  454. data/app/helpers/elements_helper.rb +0 -170
  455. data/app/helpers/essences_helper.rb +0 -167
  456. data/app/helpers/layout_helper.rb +0 -37
  457. data/app/helpers/pages_helper.rb +0 -503
  458. data/app/mailers/messages.rb +0 -15
  459. data/app/mailers/notifications.rb +0 -23
  460. data/app/models/attachment.rb +0 -80
  461. data/app/models/cell.rb +0 -59
  462. data/app/models/content.rb +0 -145
  463. data/app/models/element.rb +0 -476
  464. data/app/models/essence_audio.rb +0 -17
  465. data/app/models/essence_date.rb +0 -20
  466. data/app/models/essence_file.rb +0 -17
  467. data/app/models/essence_flash.rb +0 -15
  468. data/app/models/essence_html.rb +0 -19
  469. data/app/models/essence_picture.rb +0 -27
  470. data/app/models/essence_richtext.rb +0 -61
  471. data/app/models/essence_text.rb +0 -38
  472. data/app/models/essence_video.rb +0 -17
  473. data/app/models/folded_page.rb +0 -3
  474. data/app/models/language.rb +0 -83
  475. data/app/models/message.rb +0 -69
  476. data/app/models/page.rb +0 -545
  477. data/app/models/picture.rb +0 -98
  478. data/app/models/user.rb +0 -70
  479. data/app/models/user_session.rb +0 -10
  480. data/app/sweepers/content_sweeper.rb +0 -20
  481. data/app/sweepers/pages_sweeper.rb +0 -47
  482. data/app/sweepers/pictures_sweeper.rb +0 -21
  483. data/app/views/_contact.html.erb +0 -3
  484. data/app/views/_intro.html.erb +0 -3
  485. data/app/views/_news.html.erb +0 -3
  486. data/app/views/_search.html.erb +0 -3
  487. data/app/views/_standard.html.erb +0 -1
  488. data/app/views/admin/attachments/_files_list.html.erb +0 -24
  489. data/app/views/admin/attachments/index.html.erb +0 -30
  490. data/app/views/admin/clipboard/index.html.erb +0 -19
  491. data/app/views/admin/clipboard/insert.js.erb +0 -14
  492. data/app/views/admin/clipboard/remove.js.erb +0 -10
  493. data/app/views/admin/elements/_new_element_form.html.erb +0 -25
  494. data/app/views/admin/elements/new.html.erb +0 -33
  495. data/app/views/admin/index.html.erb +0 -102
  496. data/app/views/admin/infos.html.erb +0 -5
  497. data/app/views/admin/languages/_form.html.erb +0 -34
  498. data/app/views/admin/languages/_language.html.erb +0 -35
  499. data/app/views/admin/languages/destroy.js.erb +0 -1
  500. data/app/views/admin/languages/index.html.erb +0 -41
  501. data/app/views/admin/layoutpages/index.html.erb +0 -75
  502. data/app/views/admin/leave.html.erb +0 -11
  503. data/app/views/admin/login.html.erb +0 -46
  504. data/app/views/admin/logout.html.erb +0 -5
  505. data/app/views/admin/pages/_create_language_form.html.erb +0 -43
  506. data/app/views/admin/pages/configure.html.erb +0 -71
  507. data/app/views/admin/pages/edit.html.erb +0 -185
  508. data/app/views/admin/pages/flush.js.erb +0 -2
  509. data/app/views/admin/pages/index.html.erb +0 -108
  510. data/app/views/admin/pages/locked.html.erb +0 -3
  511. data/app/views/admin/partials/_mainnavigation_entry.html.erb +0 -27
  512. data/app/views/admin/partials/_pagination_links.html.erb +0 -5
  513. data/app/views/admin/partials/_per_page_links.html.erb +0 -17
  514. data/app/views/admin/partials/_sub_navigation.html.erb +0 -14
  515. data/app/views/admin/partials/_upload_form.html.erb +0 -119
  516. data/app/views/admin/pictures/_pictures_list.html.erb +0 -12
  517. data/app/views/admin/pictures/index.html.erb +0 -89
  518. data/app/views/admin/pictures/show_in_window.html.erb +0 -1
  519. data/app/views/admin/signup.html.erb +0 -16
  520. data/app/views/admin/users/_table.html.erb +0 -54
  521. data/app/views/admin/users/index.html.erb +0 -41
  522. data/app/views/alchemy/error_notice.js.erb +0 -1
  523. data/app/views/alchemy/permission_denied.js.erb +0 -2
  524. data/app/views/elements/_searchresult_editor.html.erb +0 -1
  525. data/app/views/elements/_searchresult_view.html.erb +0 -49
  526. data/app/views/elements/_sitemap_editor.html.erb +0 -3
  527. data/app/views/elements/show.html.erb +0 -6
  528. data/app/views/essences/_essence_audio_editor.html.erb +0 -1
  529. data/app/views/essences/_essence_flash_editor.html.erb +0 -1
  530. data/app/views/essences/_essence_richtext_editor.html.erb +0 -9
  531. data/app/views/essences/_essence_video_editor.html.erb +0 -1
  532. data/app/views/layouts/login.html.erb +0 -59
  533. data/app/views/layouts/pages.html.erb +0 -29
  534. data/app/views/notifications/admin_user_created.text.erb +0 -13
  535. data/app/views/notifications/registered_user_created.text.erb +0 -10
  536. data/app/views/page_layouts/_newsletter_layout.html.erb +0 -1
  537. data/config/initializers/authorization.rb +0 -4
  538. data/config/initializers/fast_gettext.rb +0 -3
  539. data/config/locales/de.yml +0 -377
  540. data/config/locales/en.yml +0 -371
  541. data/lib/alchemy/controller.rb +0 -79
  542. data/lib/rails/generators/alchemy/plugin/templates/gettext.rb +0 -2
  543. data/lib/tasks/gettext.rake +0 -120
  544. data/lib/translation_extras/alchemy_core_modules.rb +0 -11
  545. data/locale/alchemy.pot +0 -1749
  546. data/locale/de/alchemy.po +0 -1795
  547. data/locale/en/alchemy.po +0 -1745
  548. data/locale/missing_translations.rb +0 -4
  549. data/locale/model_attributes.rb +0 -56
  550. data/spec/helpers/contents_helper_spec.rb +0 -27
  551. data/vendor/assets/javascripts/jquery-1.6.2.min.js +0 -18
  552. data/vendor/assets/javascripts/jquery-ui-custom-1.8.16.min.js +0 -550
  553. data/vendor/assets/javascripts/swfupload/fileprogress.js +0 -203
  554. data/vendor/assets/javascripts/swfupload/handlers.js +0 -171
  555. data/vendor/assets/javascripts/tiny_mce/jquery.tinymce.js +0 -1
@@ -8,19 +8,23 @@ if (typeof(Alchemy) === 'undefined') {
8
8
 
9
9
  getOverlaySpinner : function (options) {
10
10
  var defaults = {
11
- x: '47%',
12
- y: '33%'
11
+ x: '400',
12
+ y: '300'
13
13
  };
14
14
  var settings = $.extend({}, defaults, options);
15
+ var $spinner_container = $('<div class="spinner_container"/>').css({width: settings.x, height: settings.y});
15
16
  var $spinner = $('<img src="/assets/alchemy/ajax_loader.gif" />');
16
- var left = (settings.x - 32) / 2;
17
- var top = ((settings.y - 32) / 2) - 16;
18
- top = top < 0 ? 0 : top;
17
+ $spinner_container.append($spinner);
19
18
  $spinner.css({
20
- marginLeft: left + 'px',
21
- marginTop: top + 'px'
19
+ position: 'absolute',
20
+ width: 32,
21
+ height: 32,
22
+ left: '50%',
23
+ top: '50%',
24
+ marginLeft: '-16px',
25
+ marginTop: '-16px'
22
26
  });
23
- return $spinner;
27
+ return $spinner_container;
24
28
  },
25
29
 
26
30
  AjaxErrorHandler : function($dialog, status, textStatus, errorThrown) {
@@ -49,7 +53,7 @@ if (typeof(Alchemy) === 'undefined') {
49
53
  modal: false,
50
54
  title: title,
51
55
  width: $(window).width() - 504,
52
- height: $(window).height() - 90,
56
+ height: $(window).height() - 78,
53
57
  minWidth: 600,
54
58
  minHeight: 300,
55
59
  show: "fade",
@@ -140,7 +144,7 @@ if (typeof(Alchemy) === 'undefined') {
140
144
  }
141
145
  },
142
146
 
143
- openElementsWindow : function (path, options) {
147
+ openElementsWindow : function (path, options, callback) {
144
148
  var $dialog = $('<div style="display: none" id="alchemyElementWindow"></div>');
145
149
  var closeCallback = function() {
146
150
  $dialog.dialog("destroy");
@@ -168,6 +172,7 @@ if (typeof(Alchemy) === 'undefined') {
168
172
  success: function(data, textStatus, XMLHttpRequest) {
169
173
  $dialog.html(data);
170
174
  Alchemy.ButtonObserver('#alchemyElementWindow .button');
175
+ callback.call();
171
176
  },
172
177
  error: function(XMLHttpRequest, textStatus, errorThrown) {
173
178
  Alchemy.AjaxErrorHandler($dialog, XMLHttpRequest.status, textStatus, errorThrown);
@@ -303,16 +308,16 @@ if (typeof(Alchemy) === 'undefined') {
303
308
  }
304
309
  var $dialog = $('<div style="display:none" id="alchemyOverlay"></div>');
305
310
  $dialog.appendTo('body');
306
- $dialog.html(Alchemy.getOverlaySpinner({x: size_x, y: size_y}));
307
-
311
+ $dialog.html(Alchemy.getOverlaySpinner({x: size_x === 'auto' ? 400 : size_x, y: size_y === 'auto' ? 300 : size_y}));
308
312
  Alchemy.CurrentWindow = $dialog.dialog({
309
- modal: modal,
310
- minWidth: size_x,
311
- minHeight: size_y > 68 ? size_y : 68,
313
+ modal: modal,
314
+ minWidth: size_x === 'auto' ? 400 : size_x,
315
+ minHeight: size_y === 'auto' ? 300 : size_y,
312
316
  title: title,
313
317
  resizable: resizable,
314
318
  show: "fade",
315
319
  hide: "fade",
320
+ width: size_x,
316
321
  open: function (event, ui) {
317
322
  $.ajax({
318
323
  url: action_url,
@@ -320,6 +325,16 @@ if (typeof(Alchemy) === 'undefined') {
320
325
  $dialog.html(data);
321
326
  $dialog.css({overflow: overflow ? 'visible' : 'auto'});
322
327
  $dialog.dialog('widget').css({overflow: overflow ? 'visible' : 'hidden'});
328
+ if (size_x === 'auto') {
329
+ $dialog.dialog('widget').css({
330
+ left: (($(window).width() / 2) - ($dialog.width() / 2))
331
+ });
332
+ }
333
+ if (size_y === 'auto') {
334
+ $dialog.dialog('widget').css({
335
+ top: ($(window).height() - $dialog.dialog('widget').height()) / 2
336
+ });
337
+ }
323
338
  Alchemy.SelectBox('#alchemyOverlay select');
324
339
  Alchemy.ButtonObserver('#alchemyOverlay .button');
325
340
  },
@@ -407,7 +422,7 @@ if (typeof(Alchemy) === 'undefined') {
407
422
  hide: "fade",
408
423
  open: function (event, ui) {
409
424
  $.ajax({
410
- url: '/admin/trash?page_id=' + page_id,
425
+ url: Alchemy.routes.admin_trash_path(page_id),
411
426
  success: function(data, textStatus, XMLHttpRequest) {
412
427
  $dialog.html(data);
413
428
  // Need this for DragnDrop elements into elements window.
@@ -428,7 +443,7 @@ if (typeof(Alchemy) === 'undefined') {
428
443
  refreshTrashWindow: function(page_id) {
429
444
  if ($('#alchemyTrashWindow').length > 0) {
430
445
  $('#alchemyTrashWindow').html(Alchemy.getOverlaySpinner({x: 380, y: 270}));
431
- $.get('/admin/trash?page_id='+page_id, function(html) {
446
+ $.get(Alchemy.routes.admin_trash_path(page_id), function(html) {
432
447
  $('#alchemyTrashWindow').html(html);
433
448
  });
434
449
  }
@@ -0,0 +1 @@
1
+ //= require alchemy/alchemy.preview
@@ -1,9 +1,4 @@
1
- /* @override
2
- http://0.0.0.0:3000/javascripts/alchemy/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css
3
- http://localhost:3000/javascripts/alchemy/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css
4
- */
5
-
6
- /* Alchemy TinyMCE Overlay */
1
+ @import "alchemy/defaults";
7
2
 
8
3
  /* Reset */
9
4
 
@@ -14,9 +9,8 @@
14
9
  border: 0;
15
10
  padding: 0;
16
11
  margin: 0;
17
- font-family: "Lucida Grande", Arial, sans-serif;
18
- font-size: 12px;
19
- color: #333;
12
+ font: $default-font-style;
13
+ color: $text-color;
20
14
  text-decoration: none;
21
15
  font-weight: normal;
22
16
  width: auto;
@@ -31,14 +25,8 @@
31
25
  .alchemy {
32
26
  position: absolute;
33
27
  direction: ltr;
34
- border: 1px solid #afafaf;
35
- -webkit-box-shadow: 0px 0px 8px rgba(0, 3, 51, 0.2);
36
- -moz-box-shadow: 0px 0px 8px rgba(0, 3, 51, 0.2);
37
- -o-box-shadow: 0px 0px 8px rgba(0, 3, 51, 0.2);
38
- box-shadow: 0px 0px 8px rgba(0, 3, 51, 0.2);
39
- -moz-border-radius: 3px;
40
- -webkit-border-radius: 3px;
41
- border-radius: 3px;
28
+ border: $default-border;
29
+ @include rounded-corner;
42
30
  }
43
31
 
44
32
  .alchemy .mceWrapper {
@@ -58,9 +46,7 @@
58
46
  background: #888;
59
47
  top: 0;
60
48
  left: 0;
61
- opacity: 0.5;
62
- -ms-filter: 'alpha(opacity=50)';
63
- filter: alpha(opacity=50)
49
+ @include opacity(50);
64
50
  }
65
51
 
66
52
  .alchemy_modalBlocker {
@@ -70,9 +56,7 @@
70
56
  width: 100%;
71
57
  height: 100%;
72
58
  background-color: #f4f4f4;
73
- opacity: 0.6;
74
- -ms-filter: 'alpha(opacity=60)';
75
- filter: alpha(opacity=60);
59
+ @include opacity(50);
76
60
  display: none
77
61
  }
78
62
 
@@ -92,7 +76,7 @@
92
76
  a.mceMove {
93
77
  width: 100%;
94
78
  height: 29px;
95
- background: #c6dbe7 url(<%= image_tag "shading.png" %>) repeat-x 50% -66px;
79
+ background: #c6dbe7;
96
80
  color: #333333;
97
81
  font-weight: bold;
98
82
  border-bottom: 2px solid #ededed;
@@ -204,8 +188,7 @@ a.mceMove {
204
188
  .alchemy .mceStatusbar .mceBottom span {
205
189
  display: block;
206
190
  left: 7px;
207
- font-family: "Lucida Grande", Arial, sans-serif;
208
- font-size: 12px;
191
+ font: $default-font-style;
209
192
  line-height: 23px
210
193
  }
211
194
 
@@ -219,7 +202,7 @@ a.mceMove {
219
202
 
220
203
  .alchemy .mceClose {
221
204
  right: 8px;
222
- background: url(<%= image_tag "ui-icons_666666_256x240.png" %>) -96px -128px;
205
+ background: image-url("alchemy/ui-icons_666666_256x240.png") -96px -128px;
223
206
  width: 16px;
224
207
  height: 16px;
225
208
  top: 6px;
@@ -235,7 +218,7 @@ a.mceMove {
235
218
  right: 28px;
236
219
  width: 16px;
237
220
  height: 16px;
238
- background: url(<%= image_tag "ui-icons_666666_256x240.png" %>) -49px -80px;
221
+ background: image-url("alchemy/ui-icons_666666_256x240.png") -49px -80px;
239
222
  top: 6px;
240
223
  }
241
224
 
@@ -244,7 +227,7 @@ a.mceMove {
244
227
  right: 28px;
245
228
  width: 16px;
246
229
  height: 16px;
247
- background: url(<%= image_tag "ui-icons_666666_256x240.png" %>) -32px -80px;
230
+ background: image-url("alchemy/ui-icons_666666_256x240.png") -32px -80px;
248
231
  top: 6px;
249
232
  }
250
233
 
@@ -349,7 +332,7 @@ a.mceMove {
349
332
  bottom: 1px;
350
333
  right: 1px;
351
334
  cursor: se-resize;
352
- background: url(<%= image_tag "ui-icons_666666_256x240.png" %>) no-repeat -80px -224px;
335
+ background: image-url("alchemy/ui-icons_666666_256x240.png") no-repeat -80px -224px;
353
336
  width: 14px;
354
337
  height: 14px;
355
338
  }
@@ -361,7 +344,6 @@ a.mceMove {
361
344
  bottom: 10px;
362
345
  width: 80px;
363
346
  height: 31px;
364
- background: url(<%= image_tag "shading.png" %>) repeat-x 0 -75px;
365
347
  line-height: 31px;
366
348
  vertical-align: middle;
367
349
  text-align: center;
@@ -401,7 +383,7 @@ a.mceMove {
401
383
  }
402
384
 
403
385
  .alchemy .mceAlert .mceIcon {
404
- background: url(<%= image_tag "icons.png" %>) 0 -88px;
386
+ background: image-url("alchemy/icons.png") 0 -88px;
405
387
  }
406
388
 
407
389
  .alchemy .mceConfirm .mceOk {
@@ -416,5 +398,5 @@ a.mceMove {
416
398
  }
417
399
 
418
400
  .alchemy .mceConfirm .mceIcon {
419
- background: url(<%= image_tag "icons.png" %>) 0 -88px;
401
+ background: image-url("alchemy/icons.png") 0 -88px;
420
402
  }
@@ -141,20 +141,8 @@ $default-border: 1px solid #AFAFAF;
141
141
  -webkit-border-radius: $radius;
142
142
  }
143
143
 
144
- @mixin opacity-30 {
145
- $opacity: 0.3;
146
- opacity: $opacity;
147
- filter: alpha(opacity = $opacity*100);
148
- }
149
-
150
- @mixin opacity-50 {
151
- $opacity: 0.5;
152
- opacity: $opacity;
153
- filter: alpha(opacity = $opacity*100);
154
- }
155
-
156
- @mixin opacity-95 {
157
- $opacity: 0.95;
158
- opacity: $opacity;
159
- filter: alpha(opacity = $opacity*100);
144
+ @mixin opacity($opacity) {
145
+ opacity: $opacity/100;
146
+ filter: alpha(opacity = $opacity);
147
+ -ms-filter: 'alpha(opacity=$opacity)';
160
148
  }
@@ -1,5 +1,5 @@
1
- /* Alchemy CMS Sprocket Manifest
2
- * ------------------------------
1
+ /* Alchemy CMS Sprockets Manifest
2
+ * -------------------------------
3
3
  *= require alchemy/base
4
4
  *= require alchemy/elements
5
5
  *= require alchemy/flags
@@ -44,7 +44,7 @@ div#flash_notices {
44
44
 
45
45
  div.flash {
46
46
  @include rounded-corner;
47
- @include opacity-95;
47
+ @include opacity(95);
48
48
  padding: 8px 8px 8px 30px;
49
49
  font-weight: bold;
50
50
  border-width: 1px;
@@ -52,7 +52,7 @@ div.flash {
52
52
  z-index: 1000;
53
53
  margin: $default-margin;
54
54
  position: relative;
55
- max-height: 64px;
55
+ min-height: 1.3em;
56
56
  }
57
57
 
58
58
  div.flash span.icon {
@@ -87,18 +87,18 @@ div.flash.warning {
87
87
  }
88
88
 
89
89
  div.login_signup_box {
90
- width: 380px;
91
- padding: 16px;
92
- border: 1px solid #9a9a9a;
93
- background-color: #dedede;
90
+ width: 360px;
91
+ padding: 4*$default-padding;
92
+ border: $default-border;
93
+ background-color: $medium-gray;
94
94
  @include rounded-corner;
95
- -webkit-box-shadow: 1px 1px 8px rgba(0, 3, 51, 0.5);
96
- -moz-box-shadow: 1px 1px 8px rgba(0, 3, 51, 0.5);
97
- -o-box-shadow: 1px 1px 8px rgba(0, 3, 51, 0.5);
98
- box-shadow: 1px 1px 8px rgba(0, 3, 51, 0.5);
99
95
  margin: 2em auto;
100
96
  }
101
97
 
98
+ div.login_signup_box select {
99
+ width: 220px;
100
+ }
101
+
102
102
  /* @end */
103
103
 
104
104
  /* @group Pagination */
@@ -162,58 +162,65 @@ div.archive_pagination_links a:active {
162
162
  }
163
163
 
164
164
  div.pagination {
165
- text-align: center;
165
+ clear: both;
166
+ zoom: 1;
167
+ text-align: right;
166
168
  line-height: 24px;
167
169
  height: 24px;
168
170
  width: 100%;
169
- margin-bottom: 16px;
171
+ margin-top: 4*$default-padding;
170
172
  }
171
173
 
172
- div.pagination a,
173
- div.pagination span,
174
- div.pagination em {
175
- @include button-styles;
174
+ div.pagination a, div.pagination span, div.pagination em {
176
175
  font-size: 12px;
177
176
  height: 25px;
178
177
  line-height: 25px;
179
- padding: 4px 8px;
178
+ padding: $default-padding;
180
179
  }
181
180
 
182
181
  div.pagination a:hover {
183
- background-color: #e6f0f5;
184
- color: $text-color;
185
- border: 1px solid #888;
186
- text-shadow: 0 1px 1px #fff;
187
- text-decoration: none;
182
+ color: #000;
183
+ text-shadow: none;
184
+ text-decoration: underline;
188
185
  }
189
186
 
190
187
  div.pagination .current {
191
- background-color: #e6f0f5;
188
+ @include button-styles;
189
+ background: $button-hover-bg-color;
192
190
  color: $text-color;
193
191
  border: 1px solid #888;
194
192
  text-shadow: 0px 1px 1px #fff;
193
+ cursor: default;
195
194
  }
196
195
 
197
196
  div.pagination .previous_page {
198
- margin-right: 16px;
197
+ margin-right: 2*$default-padding;
199
198
  }
200
199
 
201
200
  div.pagination .next_page {
202
- margin-left: 16px;
201
+ margin-left: 2*$default-padding;
203
202
  }
204
203
 
205
204
  div.pagination .disabled {
206
205
  color: #c0c0c0;
207
206
  }
208
207
 
208
+ div.pagination span.gap {
209
+ border: none;
210
+ background: transparent;
211
+ cursor: default;
212
+ }
213
+
209
214
  #assign_image_list div.pagination {
210
215
  margin-bottom: 8px;
216
+ text-align: center;
211
217
  }
212
218
 
213
219
  /* @end */
214
220
 
215
221
  #login table tbody tr td.label {
216
222
  width: 155px;
223
+ text-align: right;
217
224
  }
218
225
 
219
226
  #alchemy_greeting h1 {
@@ -222,10 +229,6 @@ div.pagination .disabled {
222
229
  font-size: 1.2em;
223
230
  }
224
231
 
225
- td.submit {
226
- text-align: right;
227
- }
228
-
229
232
  form#login.new_user_session {
230
233
  text-align: right;
231
234
  }
@@ -468,12 +471,12 @@ div.widget p {
468
471
  /* @end */
469
472
 
470
473
  div#alchemy_greeting {
471
- width: 396px;
474
+ width: 100%;
472
475
  margin-right: auto;
473
476
  margin-left: auto;
474
477
  padding: 2*$default-padding;
475
478
  margin-top: 1em;
476
- text-align: right;
479
+ text-align: center;
477
480
  }
478
481
 
479
482
  #alchemy_greeting p {
@@ -508,13 +511,6 @@ a.drop_down_select img {
508
511
  margin-bottom: 4px;
509
512
  }
510
513
 
511
- .new_alchemy_element form .selectbox {
512
- float: left;
513
- line-height: normal;
514
- margin-left: 8px;
515
- width: 200px;
516
- }
517
-
518
514
  .js_filter_field_box {
519
515
  position: relative;
520
516
  float: right;
@@ -571,7 +567,7 @@ div.edit_source_buttons {
571
567
  clear: both;
572
568
  }
573
569
 
574
- table.list td.rights {
570
+ table td.rights {
575
571
  width: 60px;
576
572
  }
577
573
 
@@ -759,6 +755,7 @@ div.tip {
759
755
  border: $default-border;
760
756
  border-bottom-style: none;
761
757
  height: 22px;
758
+ margin-right: 1px;
762
759
  }
763
760
 
764
761
  #sub_navigation span.page_status_and_name .flag {
@@ -799,6 +796,7 @@ div.tip {
799
796
  position: absolute;
800
797
  right: 3px;
801
798
  top: 3px;
799
+ line-height: 10px;
802
800
  }
803
801
 
804
802
  #sub_navigation a {
@@ -883,6 +881,10 @@ div.tip {
883
881
  margin-top: 2px;
884
882
  }
885
883
 
884
+ #main_menu a label {
885
+ display: block;
886
+ }
887
+
886
888
  #main_navi a.main_navi_entry.active {
887
889
  background: #baced9;
888
890
  color: $text-color;
@@ -1087,7 +1089,7 @@ span.page_status.restricted {
1087
1089
 
1088
1090
  span.page_status.not_restricted {
1089
1091
  background: image-url('alchemy/icons.png') -290px -39px;
1090
- @include opacity-30;
1092
+ @include opacity(30);
1091
1093
  }
1092
1094
 
1093
1095
  span.page_status.visible {
@@ -1096,7 +1098,7 @@ span.page_status.visible {
1096
1098
 
1097
1099
  span.page_status.not_visible {
1098
1100
  background: image-url('alchemy/icons.png') -160px -39px;
1099
- @include opacity-30;
1101
+ @include opacity(30);
1100
1102
  }
1101
1103
 
1102
1104
  span.page_status.public {
@@ -1105,7 +1107,7 @@ span.page_status.public {
1105
1107
 
1106
1108
  span.page_status.not_public {
1107
1109
  background: image-url('alchemy/icons.png') -224px -39px;
1108
- @include opacity-30;
1110
+ @include opacity(30);
1109
1111
  }
1110
1112
 
1111
1113
  #sideboard div.sideboard_widget img {
@@ -1186,11 +1188,10 @@ a.folder_link {
1186
1188
 
1187
1189
  /* @group page_editing */
1188
1190
 
1189
- #page_names td {
1191
+ /*#page_names td {
1190
1192
  height: 22px;
1191
1193
  padding-bottom: 4px;
1192
- vertical-align: top;
1193
- }
1194
+ }*/
1194
1195
 
1195
1196
  #page_names textarea {
1196
1197
  height: 78px;
@@ -1232,33 +1233,6 @@ div#page_editing_menu {
1232
1233
 
1233
1234
  h2#sitemap_heading {
1234
1235
  padding: 0;
1235
- margin: 16px 16px 0;
1236
- }
1237
-
1238
- #page_status_options .firstcol {
1239
- float: left;
1240
- }
1241
-
1242
- #page_status_options .firstcol label {
1243
- width: 80px;
1244
- margin-right: 10px;
1245
- }
1246
-
1247
- #page_status_options .secondcol {
1248
- float: left;
1249
- margin-left: 16px;
1250
- }
1251
-
1252
- #page_status_options .secondcol label {
1253
- width: 120px;
1254
- margin-right: 5px;
1255
- }
1256
-
1257
- #page_status_options .thirdcol {
1258
- float: right;
1259
- font-size: 11px;
1260
- text-align: right;
1261
- width: 90px;
1262
1236
  }
1263
1237
 
1264
1238
  div#userinfo {
@@ -1304,6 +1278,11 @@ div#user_list_legend {
1304
1278
  float: none;
1305
1279
  margin: 0;
1306
1280
  display: inline-block;
1281
+ line-height: 5px;
1282
+ }
1283
+
1284
+ #toolbar div.button_with_label form label {
1285
+ margin-top: 5px;
1307
1286
  }
1308
1287
 
1309
1288
  #toolbar div.search_field {
@@ -1370,7 +1349,7 @@ button.icon_button.small:hover {
1370
1349
  color: $dark-gray;
1371
1350
  border: 1px solid #888;
1372
1351
  text-shadow: 0 1px 4px #fff;
1373
- text-decoration: none;
1352
+ text-decoration: none;
1374
1353
  }
1375
1354
 
1376
1355
  button.icon_button:hover {
@@ -1474,8 +1453,8 @@ span.icon.module {
1474
1453
  margin-bottom: 4px;
1475
1454
  }
1476
1455
 
1477
- span.module.home {
1478
- background-position: 0 0;
1456
+ span.module.dashboard {
1457
+ background-position: -240px 0;
1479
1458
  }
1480
1459
 
1481
1460
  span.module.pages {
@@ -1556,26 +1535,22 @@ div.table_right span.tools a.icon_button img {
1556
1535
 
1557
1536
  table {
1558
1537
  border-style: none;
1559
- border-spacing: 0 4px;
1538
+ border-spacing: 0 $default-padding;
1560
1539
  padding: 0;
1561
1540
  font-size: inherit;
1562
- }
1563
-
1564
- table.window_form {
1565
1541
  width: 100%;
1566
1542
  }
1567
1543
 
1568
- table.list {
1544
+ table.window_form {
1569
1545
  width: 100%;
1570
1546
  }
1571
1547
 
1572
- table.list td,
1573
- table.list th {
1548
+ table td, table th {
1574
1549
  padding: $default-padding;
1575
1550
  white-space: nowrap;
1576
1551
  }
1577
1552
 
1578
- table.list th {
1553
+ table th {
1579
1554
  text-align: left;
1580
1555
  height: 22px;
1581
1556
  vertical-align: top;
@@ -1585,23 +1560,23 @@ th.login_status {
1585
1560
  width: 16px;
1586
1561
  }
1587
1562
 
1588
- table.list tr.odd td {
1589
- background-color: white;
1590
- }
1591
-
1592
- table.list tr.even td {
1563
+ table tr.odd td {
1593
1564
  background-color: #eaf3f9;
1594
1565
  }
1595
1566
 
1596
- .even {
1597
- background-color: #eaf3f9;
1567
+ table tr.even td {
1568
+ background-color: white;
1598
1569
  }
1599
1570
 
1600
- .odd {
1571
+ li.even {
1601
1572
  background-color: #fff;
1602
1573
  }
1603
1574
 
1604
- .list li.table_row {
1575
+ li.odd {
1576
+ background-color: #eaf3f9;
1577
+ }
1578
+
1579
+ ul.list li.table_row {
1605
1580
  display: block;
1606
1581
  margin: 0 0 8px;
1607
1582
  background-color: #ffffff;
@@ -1626,29 +1601,8 @@ ul#layoutpages.list li {
1626
1601
  }
1627
1602
 
1628
1603
  ul#sitemap.list {
1629
- padding: 0 16px 116px;
1630
- }
1631
-
1632
- /*#sitemap .drop_hover {
1633
- background: url(/images/alchemy/gui/insertpage.png) no-repeat bottom left;
1634
- outline: 1px dotted #999;
1635
- }
1636
-
1637
- #sitemap .drop_top {
1638
- background-position: top left;
1639
- padding-top: 16px;
1640
- }
1641
-
1642
- #sitemap .drop_bottom {
1643
- background-position: bottom left;
1644
- padding-bottom: 16px;
1645
- }
1646
-
1647
- #sitemap .drop_insert {
1648
- background-position: 24px 100%;
1649
- padding-bottom: 16px;
1604
+ padding: 0;
1650
1605
  }
1651
- */
1652
1606
 
1653
1607
  ul.list li {
1654
1608
  list-style-type: none;
@@ -1666,7 +1620,7 @@ ul.list li.legend {
1666
1620
  float: left;
1667
1621
  }
1668
1622
 
1669
- .list div.detail_row {
1623
+ ul.list div.detail_row {
1670
1624
  background-color: $medium-gray;
1671
1625
  font-size: 10px;
1672
1626
  margin-top: 3px;
@@ -1674,12 +1628,12 @@ ul.list li.legend {
1674
1628
  overflow: hidden;
1675
1629
  }
1676
1630
 
1677
- .list div.detail_row div {
1631
+ ul.list div.detail_row div {
1678
1632
  padding-top: 1px;
1679
1633
  padding-bottom: 1px;
1680
1634
  }
1681
1635
 
1682
- .list span.right {
1636
+ ul.list span.right {
1683
1637
  float: right;
1684
1638
  }
1685
1639
 
@@ -1713,8 +1667,7 @@ h2#sitemap_heading span.page_infos {
1713
1667
 
1714
1668
  /* @group image_upload */
1715
1669
 
1716
- table.list td.tools .icon,
1717
- table.list td.icon .icon {
1670
+ table td.tools .icon, table td.icon .icon {
1718
1671
  width: 16px;
1719
1672
  height: 16px;
1720
1673
  -webkit-user-select: none;
@@ -1722,7 +1675,8 @@ table.list td.icon .icon {
1722
1675
  user-select: none;
1723
1676
  margin-top: 0;
1724
1677
  background-repeat: no-repeat;
1725
- display: block;
1678
+ display: inline;
1679
+ display: inline-block;
1726
1680
  margin-right: 4px;
1727
1681
  }
1728
1682
 
@@ -1731,7 +1685,7 @@ input#search_input_field {
1731
1685
  text-align: left;
1732
1686
  @include rounded-search-field;
1733
1687
  padding: 3px 24px 2px;
1734
- height: 25px;
1688
+ height: 18px;
1735
1689
  }
1736
1690
 
1737
1691
  input.button,
@@ -1852,23 +1806,37 @@ a.small.button.with_icon span.icon {
1852
1806
  left: -1px;
1853
1807
  }
1854
1808
 
1855
- table.list tr td.tools {
1809
+ table tr td.tools {
1856
1810
  width: 40px;
1857
1811
  background-color: $light-gray;
1858
1812
  white-space: nowrap;
1859
1813
  }
1860
1814
 
1861
- td.input,
1862
- td.label {
1815
+ td.input, td.label {
1863
1816
  padding-top: 2px;
1864
1817
  vertical-align: top;
1865
1818
  }
1866
1819
 
1820
+ td.input, td.submit, td.select {
1821
+ text-align: right;
1822
+ padding-right: 0;
1823
+ }
1824
+
1825
+ td.value {
1826
+ text-indent: 4px;
1827
+ }
1828
+
1867
1829
  td.label {
1868
1830
  white-space: nowrap;
1869
1831
  width: 80px;
1870
- padding: 2px 8px 0 0;
1871
- line-height: 23px;
1832
+ padding: $default-padding 2*$default-padding 0 0;
1833
+ line-height: 6*$default-padding;
1834
+ }
1835
+
1836
+ td.heading {
1837
+ padding: $default-padding 0;
1838
+ font-weight: bold;
1839
+ text-decoration: underline;
1872
1840
  }
1873
1841
 
1874
1842
  td.input input[type="checkbox"], td.input input[type="radio"] {
@@ -1883,18 +1851,17 @@ td.label.very_long {
1883
1851
  width: 230px;
1884
1852
  }
1885
1853
 
1886
- table.list tr td.tools a {
1887
- float: left;
1854
+ table tr td.tools a {
1888
1855
  width: 19px;
1889
1856
  height: 19px;
1890
1857
  margin-right: 2px;
1891
1858
  }
1892
1859
 
1893
- table.list tr td.tools.long {
1860
+ table tr td.tools.long {
1894
1861
  width: 60px;
1895
1862
  }
1896
1863
 
1897
- table.list tr td.icon {
1864
+ table tr td.icon {
1898
1865
  background-color: $light-gray;
1899
1866
  width: 20px;
1900
1867
  text-align: center;
@@ -1917,6 +1884,14 @@ td.date {
1917
1884
  width: 150px;
1918
1885
  }
1919
1886
 
1887
+ table td.right, table th.right {
1888
+ text-align: right;
1889
+ }
1890
+
1891
+ table td.center, table th.center {
1892
+ text-align: center;
1893
+ }
1894
+
1920
1895
  .list li.table_row div.table_right span{
1921
1896
  float: left;
1922
1897
  text-align: left;
@@ -1949,8 +1924,7 @@ td.role {
1949
1924
  }
1950
1925
 
1951
1926
  #archive_all {
1952
- padding: 16px;
1953
- overflow: visible;
1927
+ padding: 4*$default-padding;
1954
1928
  }
1955
1929
 
1956
1930
  #archive_all .padding_left_right {
@@ -1961,17 +1935,13 @@ td.role {
1961
1935
  .inplace-edit {
1962
1936
  background-color: $light-gray;
1963
1937
  position: absolute;
1964
- left: -8px;
1965
- top: 0;
1938
+ left: -5px;
1939
+ top: -8px;
1966
1940
  width: 204px;
1967
1941
  z-index: 10;
1968
- height: 65px;
1942
+ height: 60px;
1969
1943
  border: $default-border;
1970
1944
  @include rounded-corner;
1971
- -webkit-box-shadow: #444 0px 1px 8px;
1972
- -moz-box-shadow: #444 0px 1px 8px;
1973
- -o-box-shadow: #444 0px 1px 8px;
1974
- box-shadow: #444 0px 1px 8px;
1975
1945
  }
1976
1946
 
1977
1947
  .inplace-edit input.save-button {
@@ -1997,6 +1967,7 @@ td.role {
1997
1967
  position: absolute;
1998
1968
  left: 4px;
1999
1969
  top: 4px;
1970
+ height: 18px;
2000
1971
  }
2001
1972
 
2002
1973
  div.spinner {
@@ -2108,8 +2079,7 @@ textarea.thin_border {
2108
2079
  height: auto;
2109
2080
  }
2110
2081
 
2111
- .thin_border,
2112
- .input_field {
2082
+ .thin_border, .input_field {
2113
2083
  margin: 0;
2114
2084
  @include rounded-corner;
2115
2085
  background: #fff;
@@ -2117,9 +2087,8 @@ textarea.thin_border {
2117
2087
  width: 210px;
2118
2088
  font-size: 12px;
2119
2089
  line-height: 19px;
2120
- height: 27px;
2121
- padding-left: 4px;
2122
- padding-right: 4px;
2090
+ height: 25px;
2091
+ padding: 1px $default-padding;
2123
2092
  }
2124
2093
 
2125
2094
  .thin_border.dirty {
@@ -2530,13 +2499,13 @@ div.button_with_label.active label{
2530
2499
 
2531
2500
  div.button_with_label.disabled {
2532
2501
  position: relative;
2533
- @include opacity-50;
2502
+ @include opacity(50);
2534
2503
  cursor: default;
2535
2504
  }
2536
2505
 
2537
2506
  .icon_button.disabled span {
2538
2507
  position: relative;
2539
- @include opacity-30;
2508
+ @include opacity(30);
2540
2509
  cursor: default;
2541
2510
  }
2542
2511
 
@@ -2553,7 +2522,7 @@ div.button_with_label.disabled:before {
2553
2522
  width: 100%;
2554
2523
  height: 100%;
2555
2524
  background-color: transparent;
2556
- @include opacity-50;
2525
+ @include opacity(50);
2557
2526
  }
2558
2527
 
2559
2528
  div.button_with_label.disabled a:hover,
@@ -2577,11 +2546,6 @@ div.button_with_label .disabledButton {
2577
2546
  z-index: 1;
2578
2547
  }
2579
2548
 
2580
- #per_page_links {
2581
- text-align: center;
2582
- float: left;
2583
- }
2584
-
2585
2549
  div.button_with_label a.icon_button {
2586
2550
  float: none;
2587
2551
  margin-right: auto;
@@ -2594,7 +2558,7 @@ div#toolbar label,
2594
2558
  div#overlay_toolbar label {
2595
2559
  font-size: 10px;
2596
2560
  text-shadow: #fff 0 1px 2px;
2597
- margin-top: 4px;
2561
+ margin-top: 2px;
2598
2562
  display: block;
2599
2563
  line-height: 13px;
2600
2564
  }
@@ -2723,26 +2687,10 @@ div#image_assign_filter_and_image_sizing {
2723
2687
  height: 40px;
2724
2688
  }
2725
2689
 
2726
- label.sup {
2727
- position: relative;
2728
- bottom: 3px;
2729
- }
2730
-
2731
- /*div.assign_image_list_detail {
2732
- background-color: #ffffff;
2733
- text-align: center;
2734
- float: left;
2735
- margin: 0 6px 6px 0;
2736
- padding: $default-padding;
2737
- position: relative;
2738
- overflow: hidden;
2739
- border: 1px solid #c0c0c0;
2740
- @include rounded-corner;
2741
- }*/
2742
-
2743
2690
  #assign_image_list {
2744
2691
  padding: 2*$default-padding;
2745
2692
  overflow: hidden;
2693
+ text-align: center;
2746
2694
  }
2747
2695
 
2748
2696
  /* @group Picture Thumbnails */
@@ -2751,17 +2699,33 @@ label.sup {
2751
2699
  padding: $default-padding;
2752
2700
  margin: 2px 1px 2px 2px;
2753
2701
  background-color: #fff;
2754
- float: left;
2702
+ float: none;
2703
+ display: inline;
2704
+ display: inline-block;
2755
2705
  border: 1px solid #c0c0c0;
2756
2706
  position: relative;
2757
2707
  @include rounded-corner;
2758
2708
  }
2759
2709
 
2760
- div#archive_all .picture_thumbnail {
2710
+ #picture_archive {
2711
+ padding: 2*$default-padding;
2712
+ border: $default-border;
2713
+ @include rounded-corner;
2714
+ margin: -2*$default-padding;
2715
+ background-color: $medium-gray;
2716
+ }
2717
+
2718
+ #pictures, #picture_archive .pagination {
2719
+ text-align: center;
2720
+ }
2721
+
2722
+ #pictures .picture_thumbnail {
2761
2723
  margin: 0 16px 16px 0;
2724
+ display: inline-block;
2725
+ float: none;
2762
2726
  }
2763
2727
 
2764
- #archive_all .picture_thumbnail:hover .picture_tool_delete {
2728
+ #pictures .picture_thumbnail:hover .picture_tool_delete {
2765
2729
  display: block;
2766
2730
  }
2767
2731
 
@@ -2773,6 +2737,7 @@ div#archive_all .picture_thumbnail {
2773
2737
  text-align: center;
2774
2738
  vertical-align: middle;
2775
2739
  padding: 0;
2740
+ line-height: 0;
2776
2741
  }
2777
2742
 
2778
2743
  .picture_thumbnail.small .thumbnail_background {
@@ -2790,7 +2755,7 @@ div#archive_all .picture_thumbnail {
2790
2755
  height: 180px;
2791
2756
  }
2792
2757
 
2793
- #archive_all .picture_thumbnail .thumbnail_background {
2758
+ #pictures .picture_thumbnail .thumbnail_background {
2794
2759
  cursor: -webkit-zoom-in;
2795
2760
  cursor: -moz-zoom-in;
2796
2761
  cursor: -o-zoom-in;
@@ -2964,10 +2929,6 @@ div#errors {
2964
2929
  width: 123px;
2965
2930
  }
2966
2931
 
2967
- input#page_name {
2968
- width: 126px;
2969
- }
2970
-
2971
2932
  input.with_border {
2972
2933
  margin: 0;
2973
2934
  padding: 1px;
@@ -2996,7 +2957,7 @@ input#user_admin {
2996
2957
 
2997
2958
  #alchemy div#overlay_toolbar div#image_assign_filter_and_image_sizing form {
2998
2959
  float: right;
2999
- width: 232px;
2960
+ width: 290px;
3000
2961
  height: 25px;
3001
2962
  margin-top: 2px;
3002
2963
  padding: 0 !important;
@@ -3160,13 +3121,13 @@ div.elements_for_page {
3160
3121
  }
3161
3122
 
3162
3123
  a.close_elements_from_page_selector {
3163
- padding-left: 4px;
3124
+ position: absolute;
3125
+ right: 8px;
3126
+ top: 8px;
3164
3127
  font-size: 0;
3165
- float: right;
3166
3128
  padding-right: 2px;
3167
3129
  width: 11px;
3168
3130
  height: 15px;
3169
- margin-top: 5px;
3170
3131
  background: image-url('alchemy/icons.png') no-repeat 0 -72px;
3171
3132
  cursor: pointer;
3172
3133
  }
@@ -3244,16 +3205,8 @@ div.assign_file_file_icon img {
3244
3205
  width: 195px;
3245
3206
  }
3246
3207
 
3247
- #alchemy .ui-dialog-content td.label {
3248
- padding-top: 2px;
3249
- padding-bottom: 2px;
3250
- padding-right: 8px;
3251
- height: 25px;
3252
- }
3253
-
3254
- #alchemy .ui-dialog-content td.label.right {
3255
- text-align: right;
3256
- width: 40px;
3208
+ td.label.middle {
3209
+ padding-left: 2*$default-padding;
3257
3210
  }
3258
3211
 
3259
3212
  .elements_for_page .alchemy_selectbox {
@@ -3261,11 +3214,6 @@ div.assign_file_file_icon img {
3261
3214
  width: 217px;
3262
3215
  }
3263
3216
 
3264
- table.window_form td.input {
3265
- padding-top: 2px;
3266
- padding-bottom: 2px;
3267
- }
3268
-
3269
3217
  #alchemy .ui-dialog-content p {
3270
3218
  min-height: 21px;
3271
3219
  }
@@ -3278,9 +3226,8 @@ select#url_protocol.medium {
3278
3226
  margin: 0;
3279
3227
  }
3280
3228
 
3281
- #alchemy .ui-dialog-content input.auto_resize,
3282
- #alchemy .ui-dialog-content textarea.auto_resize {
3283
- width: 100%;
3229
+ #alchemy .ui-dialog-content input.auto_resize, #alchemy .ui-dialog-content textarea.auto_resize {
3230
+ width: 98%;
3284
3231
  }
3285
3232
 
3286
3233
  #alchemy .ui-dialog-content td.medium {
@@ -3440,11 +3387,14 @@ a.icon.remove {
3440
3387
  margin-right: 4px;
3441
3388
  }
3442
3389
 
3390
+ a#uploadswitcher, a.underline {
3391
+ text-decoration: underline;
3392
+ }
3393
+
3443
3394
  #uploadProgressContainer {
3444
- overflow: hidden;
3445
- margin-right: auto;
3446
- margin-left: auto;
3447
- padding: 0 8px;
3395
+ overflow-x: hidden;
3396
+ overflow-y: auto;
3397
+ height: 234px;
3448
3398
  }
3449
3399
 
3450
3400
  #uploadProgressContainer .progressWrapper {
@@ -3513,8 +3463,14 @@ a.icon.remove {
3513
3463
  right: 8px;
3514
3464
  }
3515
3465
 
3516
- #btnCancel {
3466
+ #swf_upload_container {
3467
+ height: 60px;
3468
+ }
3469
+
3470
+ #swf_upload_container .button {
3517
3471
  float: right;
3472
+ margin-top: 4*$default-margin;
3473
+ font-size: 11px;
3518
3474
  }
3519
3475
 
3520
3476
  object.swfupload {