alchemy_cms 2.0.7 → 2.1.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -4
- data/.travis.yml +1 -1
- data/Gemfile +7 -2
- data/README.md +6 -6
- data/Rakefile +26 -18
- data/alchemy_cms.gemspec +14 -14
- data/{assets/stylesheets → app/assets/images/alchemy}/Jcrop.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/ajax_loader.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/alchemy-logo.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/flags.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/navi-tab.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/shading_90.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/toggle.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/icons.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/image_loader.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow_bg.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow_bg_hover.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/placeholder.png +0 -0
- data/{assets/images/gui → app/assets/images/alchemy}/shading.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/swfupload/browse_button.png +0 -0
- data/{assets/stylesheets/default/img → app/assets/images/alchemy}/tabs.gif +0 -0
- data/{assets/images/jquery-ui → app/assets/images/alchemy}/ui-icons_666666_256x240.png +0 -0
- data/app/assets/javascripts/alchemy/alchemy.base.js +212 -0
- data/app/assets/javascripts/alchemy/alchemy.buttons.js +36 -0
- data/app/assets/javascripts/alchemy/alchemy.dirty.js +91 -0
- data/app/assets/javascripts/alchemy/alchemy.dragndrop.js +114 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.element_editor_selector.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.growler.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.image_cropper.js +0 -0
- data/app/assets/javascripts/alchemy/alchemy.js +26 -0
- data/app/assets/javascripts/alchemy/alchemy.js_extensions.js +17 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.link_overlay.js +1 -1
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.page_sorter.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.preview.js +0 -0
- data/app/assets/javascripts/alchemy/alchemy.windows.js +438 -0
- data/app/assets/stylesheets/alchemy/_defaults.scss +160 -0
- data/app/assets/stylesheets/alchemy/alchemy.css +9 -0
- data/{assets/stylesheets/alchemy.css → app/assets/stylesheets/alchemy/base.css.scss} +216 -353
- data/{assets/stylesheets/elements.css → app/assets/stylesheets/alchemy/elements.css.scss} +41 -70
- data/{assets/stylesheets/flags.css → app/assets/stylesheets/alchemy/flags.css.scss} +1 -1
- data/{assets/stylesheets/jquery-ui-1.8.7.alchemy.css → app/assets/stylesheets/alchemy/jquery-ui.alchemy.css} +15 -15
- data/{assets/stylesheets/jquery.Jcrop.css → app/assets/stylesheets/alchemy/jquery.Jcrop.css.scss} +3 -3
- data/{assets/stylesheets/jquery.sb.css → app/assets/stylesheets/alchemy/jquery.sb.css.scss} +19 -29
- data/{assets/stylesheets → app/assets/stylesheets/alchemy}/print.css +6 -1
- data/{assets/stylesheets → app/assets/stylesheets/alchemy}/standard_set.css +0 -0
- data/{assets/stylesheets/alchemy_tinymce_content.css → app/assets/stylesheets/alchemy/tinymce_content.css} +0 -0
- data/{assets/stylesheets/alchemy_tinymce_dialog.css → app/assets/stylesheets/alchemy/tinymce_dialog.css} +2 -2
- data/app/controllers/admin/attachments_controller.rb +2 -8
- data/app/controllers/admin/clipboard_controller.rb +2 -2
- data/app/controllers/admin/contents_controller.rb +4 -16
- data/app/controllers/admin/elements_controller.rb +2 -2
- data/app/controllers/admin/essence_audios_controller.rb +0 -3
- data/app/controllers/admin/essence_files_controller.rb +0 -11
- data/app/controllers/admin/essence_flashes_controller.rb +0 -3
- data/app/controllers/admin/essence_pictures_controller.rb +2 -7
- data/app/controllers/admin/essence_videos_controller.rb +0 -3
- data/app/controllers/admin/languages_controller.rb +4 -10
- data/app/controllers/admin/pages_controller.rb +6 -4
- data/app/controllers/admin/pictures_controller.rb +13 -18
- data/app/controllers/admin/trash_controller.rb +0 -5
- data/app/controllers/admin/users_controller.rb +2 -3
- data/app/controllers/alchemy_controller.rb +18 -30
- data/app/controllers/pages_controller.rb +21 -24
- data/app/helpers/admin/elements_helper.rb +5 -0
- data/app/helpers/admin/pages_helper.rb +36 -1
- data/app/helpers/alchemy_helper.rb +39 -17
- data/app/models/attachment.rb +2 -2
- data/app/models/essence_file.rb +1 -1
- data/app/models/page.rb +1 -1
- data/app/sweepers/pages_sweeper.rb +10 -0
- data/app/views/admin/attachments/destroy.js.erb +4 -0
- data/app/views/admin/clipboard/insert.js.erb +12 -19
- data/app/views/admin/contents/create.js.erb +1 -1
- data/app/views/admin/contents/destroy.js.erb +7 -0
- data/app/views/admin/contents/order.js.erb +6 -0
- data/app/views/admin/elements/_element.html.erb +4 -2
- data/app/views/admin/elements/create.js.erb +19 -26
- data/app/views/admin/elements/fold.js.erb +1 -1
- data/app/views/admin/elements/index.html.erb +1 -1
- data/app/views/admin/essence_files/assign.js.erb +8 -0
- data/app/views/admin/essence_pictures/save_link.js.erb +3 -0
- data/app/views/admin/index.html.erb +37 -27
- data/app/views/admin/languages/destroy.js.erb +1 -0
- data/app/views/admin/pages/_page.html.erb +1 -1
- data/app/views/admin/pages/_sitemap.html.erb +1 -1
- data/app/views/admin/pages/edit.html.erb +2 -2
- data/app/views/admin/pages/update.js.erb +1 -1
- data/app/views/admin/partials/_upload_form.html.erb +11 -11
- data/app/views/admin/pictures/archive_overlay.js.erb +1 -0
- data/app/views/admin/pictures/flush.js.erb +2 -0
- data/app/views/admin/pictures/update.js.erb +1 -0
- data/app/views/admin/trash/clear.js.erb +3 -0
- data/app/views/alchemy/error_notice.js.erb +1 -0
- data/app/views/alchemy/permission_denied.js.erb +2 -0
- data/app/views/alchemy/redirect.js.erb +1 -0
- data/app/views/alchemy/remote_errors.js.erb +3 -0
- data/app/views/alchemy/update.js.erb +5 -0
- data/app/views/essences/_essence_file_editor.html.erb +0 -1
- data/app/views/essences/_essence_file_view.html.erb +1 -5
- data/app/views/essences/_essence_picture_tools.html.erb +1 -1
- data/app/views/layouts/alchemy.html.erb +22 -9
- data/app/views/pages/show.rss.builder +1 -1
- data/config/alchemy/elements.yml +0 -5
- data/config/alchemy/page_layouts.yml +1 -1
- data/config/asset_packages.yml +17 -19
- data/config/authorization_rules.rb +1 -0
- data/config/locales/de.yml +0 -1
- data/config/routes.rb +1 -1
- data/lib/alchemy/tinymce.rb +51 -0
- data/lib/alchemy/version.rb +3 -3
- data/lib/alchemy_cms.rb +4 -2
- data/script/rails +6 -0
- data/spec/controllers/admin/clipboard_controller_spec.rb +15 -13
- data/spec/controllers/admin/contents_controller_spec.rb +4 -4
- data/spec/controllers/admin/trash_controller_spec.rb +6 -9
- data/spec/controllers/pages_controller_spec.rb +9 -8
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +3 -3
- data/spec/dummy/config/application.rb +12 -6
- data/spec/dummy/config/database.yml +3 -0
- data/spec/dummy/config/environments/development.rb +7 -3
- data/spec/dummy/config/environments/production.rb +23 -12
- data/spec/dummy/config/environments/test.rb +5 -1
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/factories.rb +8 -8
- data/spec/helpers/admin/elements_helper_spec.rb +2 -2
- data/spec/helpers/contents_helper_spec.rb +1 -1
- data/spec/helpers/elements_helper_spec.rb +6 -6
- data/spec/helpers/essences_helper_spec.rb +1 -1
- data/spec/helpers/pages_helper_spec.rb +37 -37
- data/spec/integration/pages_controller_spec.rb +29 -26
- data/spec/integration/security_spec.rb +2 -1
- data/spec/models/content_spec.rb +1 -1
- data/spec/models/element_spec.rb +11 -11
- data/spec/models/language_spec.rb +5 -5
- data/spec/models/page_spec.rb +54 -54
- data/spec/models/user_spec.rb +2 -1
- data/spec/routing_spec.rb +1 -1
- data/{assets/javascripts/jquery.js → vendor/assets/javascripts/jquery-1.6.2.min.js} +0 -0
- data/{assets/javascripts/jquery-ui.js → vendor/assets/javascripts/jquery-ui-custom-1.8.16.min.js} +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.Jcrop.min.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.dialogextend.min.js +7 -7
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.in-place-edit.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.sb.min.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.scrollTo-1.4.2-min.js +10 -10
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.nestedSortable.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.tabspaging.js +0 -0
- data/{assets → vendor/assets}/javascripts/swfupload/fileprogress.js +202 -202
- data/{assets → vendor/assets}/javascripts/swfupload/handlers.js +171 -171
- data/{assets → vendor/assets}/javascripts/swfupload/queue.js +97 -97
- data/{assets → vendor/assets}/javascripts/swfupload/swfupload.js +980 -980
- data/{assets → vendor/assets}/javascripts/swfupload/swfupload.swf +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/jquery.tinymce.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/license.txt +504 -504
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -110
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +0 -0
- data/{assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css → vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.erb} +8 -8
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -387
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -36
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -51
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/pastetext.htm +26 -26
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/pasteword.htm +21 -21
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/cell.htm +180 -180
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/cell.css +16 -16
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/row.css +25 -25
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/table.css +13 -13
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/cell.js +319 -319
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/merge_cells.js +27 -27
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/row.js +237 -237
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/table.js +450 -450
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/merge_cells.htm +32 -32
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/row.htm +158 -158
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/table.htm +188 -188
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/about.htm +52 -52
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/anchor.htm +26 -26
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/charmap.htm +51 -51
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/color_picker.htm +74 -74
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/editor_template.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/image.htm +80 -80
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/iframe.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/trans.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/video.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/about.js +73 -73
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/anchor.js +43 -43
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/charmap.js +355 -355
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/color_picker.js +329 -329
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/image.js +251 -251
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/link.js +153 -153
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/source_editor.js +56 -56
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/link.htm +57 -57
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/shortcuts.htm +47 -47
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/content.css +50 -50
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -117
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -214
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +48 -48
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -117
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +217 -217
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +7 -7
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -5
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/source_editor.htm +25 -25
- data/{assets → vendor/assets}/javascripts/tiny_mce/tiny_mce.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/tiny_mce_popup.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/editable_selects.js +70 -70
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/form_utils.js +210 -210
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/mctabs.js +161 -161
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/validate.js +252 -252
- metadata +338 -369
- data/app/views/elements/_download_editor.html.erb +0 -1
- data/app/views/elements/_download_view.html.erb +0 -3
- data/assets/javascripts/alchemy.js +0 -903
- data/assets/javascripts/jquery.rails.js +0 -315
- data/assets/stylesheets/ie6.css +0 -18
- data/config/initializers/tinymce_hammer.rb +0 -31
@@ -0,0 +1 @@
|
|
1
|
+
window.location.replace('<%= admin_languages_url %>');
|
@@ -31,7 +31,7 @@
|
|
31
31
|
configure_admin_page_path(page),
|
32
32
|
{
|
33
33
|
:title => _('edit_page_properties'),
|
34
|
-
:size => page.redirects_to_external? ? '390x270' : '
|
34
|
+
:size => page.redirects_to_external? ? '390x270' : '390x580'
|
35
35
|
},
|
36
36
|
:class => '',
|
37
37
|
:title => _('edit_page_properties')
|
@@ -31,7 +31,7 @@
|
|
31
31
|
configure_admin_page_path(@page_root),
|
32
32
|
{
|
33
33
|
:title => _('edit_page_properties'),
|
34
|
-
:size => @page_root.redirects_to_external? ? '390x270' : '
|
34
|
+
:size => @page_root.redirects_to_external? ? '390x270' : '390x580'
|
35
35
|
},
|
36
36
|
:class => '',
|
37
37
|
:title => _('edit_page_properties')
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%- alchemy_combined_assets -%>
|
2
2
|
|
3
3
|
<%- content_for(:javascript_includes) do -%>
|
4
|
-
|
4
|
+
<%= tinymce_javascript_tags %>
|
5
5
|
<%- end -%>
|
6
6
|
<%- content_for(:subnav_additions) do -%>
|
7
7
|
<%- Page.all_locked_by(current_user).each do |page| -%>
|
@@ -59,7 +59,7 @@
|
|
59
59
|
configure_admin_page_path(@page),
|
60
60
|
{
|
61
61
|
:title => _('edit_page_properties'),
|
62
|
-
:size => @page.layoutpage? ? '340x150' : '
|
62
|
+
:size => @page.layoutpage? ? '340x150' : '390x580'
|
63
63
|
},
|
64
64
|
:class => 'icon_button',
|
65
65
|
:title => _('edit_page_properties')
|
@@ -70,21 +70,21 @@
|
|
70
70
|
<script type='text/javascript'>
|
71
71
|
try {
|
72
72
|
var settings = {
|
73
|
-
flash_url
|
74
|
-
flash9_url
|
73
|
+
flash_url: "<%= asset_path("swfupload/swfupload.swf") %>",
|
74
|
+
flash9_url: "<%= asset_path("swfupload/swfupload.swf") %>",
|
75
75
|
upload_url: '<%= new_asset_path_with_session_information(model_name) %>',
|
76
76
|
post_params: <%= post_params.html_safe %>,
|
77
|
-
file_size_limit
|
78
|
-
file_types
|
79
|
-
file_types_description
|
80
|
-
file_upload_limit
|
81
|
-
file_queue_limit
|
82
|
-
custom_settings
|
83
|
-
progressTarget
|
84
|
-
cancelButtonId
|
77
|
+
file_size_limit: "<%= configuration(:uploader)[:file_size_limit] || 100 -%> MB",
|
78
|
+
file_types: '<%= file_types.map{ |f| "*.#{f}" }.join(";") %>',
|
79
|
+
file_types_description: "<%= file_types_description %>",
|
80
|
+
file_upload_limit: <%= configuration(:uploader)[:upload_limit] || 50 -%>,
|
81
|
+
file_queue_limit: 0,
|
82
|
+
custom_settings: {
|
83
|
+
progressTarget: "uploadProgressContainer",
|
84
|
+
cancelButtonId: "btnCancel"
|
85
85
|
},
|
86
86
|
debug: false,
|
87
|
-
button_image_url: "
|
87
|
+
button_image_url: "<%= image_path("alchemy/swfupload/browse_button.png") %>",
|
88
88
|
button_width: "120",
|
89
89
|
button_height: "25",
|
90
90
|
button_placeholder_id: "spanButtonPlaceHolder",
|
@@ -0,0 +1 @@
|
|
1
|
+
jQuery('#alchemy_window_body').replaceWith('<%= escape_javascript(render(:partial => "archive_overlay")) %>');
|
@@ -0,0 +1 @@
|
|
1
|
+
Alchemy.growl('<%= @message %>');
|
@@ -0,0 +1 @@
|
|
1
|
+
Alchemy.growl('<%= escape_javascript(@notice) %>', 'error')
|
@@ -0,0 +1 @@
|
|
1
|
+
window.location.replace('<%= url_for(@redirect_url) %>');
|
@@ -28,7 +28,6 @@
|
|
28
28
|
<%= content.ingredient.name rescue ("←" + _('assign_file_from_archive')).html_safe %>
|
29
29
|
</div>
|
30
30
|
<%- unless content.ingredient.nil? -%>
|
31
|
-
<%= hidden_field_tag content.form_field_name, content.ingredient.id %>
|
32
31
|
<div class="essence_file_tools">
|
33
32
|
<%= link_to_overlay_window("",
|
34
33
|
admin_attachments_path(
|
@@ -1,10 +1,6 @@
|
|
1
1
|
<%= link_to(
|
2
2
|
h(content.essence.attachment.name),
|
3
|
-
download_attachment_path(
|
4
|
-
:id => content.essence.attachment.id,
|
5
|
-
:name => content.essence.attachment.urlname,
|
6
|
-
:format => content.essence.attachment.suffix
|
7
|
-
),
|
3
|
+
download_attachment_path(:id => content.essence.attachment.id, :name => content.essence.attachment.filename),
|
8
4
|
:class => "file_link #{content.essence.css_class.blank? ? "" : content.essence.css_class}",
|
9
5
|
:title => "#{content.essence.title.blank? ? content.essence.attachment.filename : content.essence.title}"
|
10
6
|
) if content.essence.attachment %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
:title => _('Edit Picturemask')
|
7
7
|
},
|
8
8
|
{
|
9
|
-
:class => necessary_options_for_cropping_provided?(options) ? nil : 'disabled',
|
9
|
+
:class => necessary_options_for_cropping_provided?(options) && content.ingredient ? nil : 'disabled',
|
10
10
|
:title => _('Edit Picturemask')
|
11
11
|
}
|
12
12
|
) %>
|
@@ -5,27 +5,22 @@
|
|
5
5
|
<meta http-equiv="content-language" content="<%= current_user.language.blank? ? 'de' : current_user.language rescue 'de' %>">
|
6
6
|
<title><%= render_alchemy_title %></title>
|
7
7
|
<%= csrf_meta_tag %>
|
8
|
-
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="/plugin_assets/stylesheets/ie6.css" /><![endif]-->
|
9
8
|
<%= yield :stylesheets %>
|
10
9
|
<%= yield :javascript_includes %>
|
11
10
|
<script type="text/javascript" charset="utf-8">
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
}
|
16
|
-
// ]]>
|
11
|
+
if (typeof(jQuery) === 'function') {
|
12
|
+
jQuery.noConflict();
|
13
|
+
}
|
17
14
|
</script>
|
18
15
|
</head>
|
19
|
-
|
16
|
+
|
20
17
|
<body id="alchemy">
|
21
|
-
<%#= overlay for indication of loading %>
|
22
18
|
<div id="overlay">
|
23
19
|
<div id="overlay_text_box">
|
24
20
|
<%= image_tag('alchemy/ajax_loader.gif', :id => 'ajax_loader') %>
|
25
21
|
<span id="overlay_text"><%= _("please_wait") %></span>
|
26
22
|
</div>
|
27
23
|
</div>
|
28
|
-
<%#= overlay end %>
|
29
24
|
<div id="main_menu">
|
30
25
|
<div id="main_navi">
|
31
26
|
<%= yield(:navigation) %>
|
@@ -55,5 +50,23 @@
|
|
55
50
|
<%= yield %>
|
56
51
|
</div>
|
57
52
|
<%= yield(:javascripts) %>
|
53
|
+
<script type="text/javascript" charset="utf-8">
|
54
|
+
jQuery(document).ready(function ($) {
|
55
|
+
Alchemy.resizeFrame();
|
56
|
+
Alchemy.Tooltips();
|
57
|
+
if (typeof(jQuery().sb) === 'function') {
|
58
|
+
Alchemy.SelectBox('body#alchemy select');
|
59
|
+
}
|
60
|
+
if ($('#flash_notices').length > 0) {
|
61
|
+
Alchemy.Growler.fade();
|
62
|
+
}
|
63
|
+
$('#alchemy a.icon_button.please_wait_overlay').click(function() {
|
64
|
+
Alchemy.pleaseWaitOverlay();
|
65
|
+
});
|
66
|
+
});
|
67
|
+
jQuery(window).resize(function() {
|
68
|
+
Alchemy.resizeFrame();
|
69
|
+
});
|
70
|
+
</script>
|
58
71
|
</body>
|
59
72
|
</html>
|
@@ -11,7 +11,7 @@ xml.rss :version => "2.0" do
|
|
11
11
|
xml.item do
|
12
12
|
xml.title element.content_for_rss_title.ingredient
|
13
13
|
xml.description element.content_for_rss_description.ingredient
|
14
|
-
xml.pubDate
|
14
|
+
xml.pubDate element.ingredient('date').to_s(:rfc822) if element.has_ingredient?('date')
|
15
15
|
xml.link show_page_url(:urlname => @page.urlname, :anchor => element_dom_id(element), :lang => multi_language? ? @page.language_code : nil)
|
16
16
|
xml.guid show_page_url(:urlname => @page.urlname, :anchor => element_dom_id(element), :lang => multi_language? ? @page.language_code : nil)
|
17
17
|
end
|
data/config/alchemy/elements.yml
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
autogenerate: [header, intro_image_text]
|
34
34
|
|
35
35
|
- name: standard
|
36
|
-
elements: [article, claim, header, bild, bild_text, text, intro, headline, image_mosaic
|
36
|
+
elements: [article, claim, header, bild, bild_text, text, intro, headline, image_mosaic]
|
37
37
|
autogenerate: [header, claim, article]
|
38
38
|
|
39
39
|
- name: contact
|
data/config/asset_packages.yml
CHANGED
@@ -1,32 +1,30 @@
|
|
1
1
|
---
|
2
2
|
javascripts:
|
3
|
-
-
|
4
|
-
-
|
5
|
-
-
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
-
|
11
|
-
-
|
12
|
-
-
|
13
|
-
- alchemy/
|
14
|
-
- alchemy/alchemy
|
3
|
+
- jquery-1.6.2.min
|
4
|
+
- jquery-ui-custom-1.8.16.min
|
5
|
+
- jquery_ujs
|
6
|
+
- jquery_plugins/jquery.dialogextend.min.js
|
7
|
+
- jquery_plugins/jquery.in-place-edit.js
|
8
|
+
- jquery_plugins/jquery.Jcrop.min.js
|
9
|
+
- jquery_plugins/jquery.sb.min.js
|
10
|
+
- jquery_plugins/jquery.scrollTo-1.4.2-min.js
|
11
|
+
- jquery_plugins/jquery.ui.nestedSortable.js
|
12
|
+
- jquery_plugins/jquery.ui.tabspaging.js
|
13
|
+
- alchemy/alchemy.base
|
15
14
|
- alchemy/alchemy.element_editor_selector
|
16
15
|
- alchemy/alchemy.image_cropper
|
17
16
|
- alchemy/alchemy.link_overlay
|
18
17
|
- alchemy/alchemy.page_sorter
|
19
18
|
- alchemy/alchemy.growler
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
19
|
+
- swfupload/swfupload
|
20
|
+
- swfupload/queue
|
21
|
+
- swfupload/handlers
|
22
|
+
- swfupload/fileprogress
|
24
23
|
|
25
24
|
stylesheets:
|
26
|
-
-
|
27
|
-
- alchemy/alchemy
|
25
|
+
- alchemy/base
|
28
26
|
- alchemy/elements
|
29
27
|
- alchemy/flags
|
30
|
-
- alchemy/jquery-ui
|
28
|
+
- alchemy/jquery-ui.alchemy
|
31
29
|
- alchemy/jquery.Jcrop
|
32
30
|
- alchemy/jquery.sb
|
data/config/locales/de.yml
CHANGED
data/config/routes.rb
CHANGED
@@ -14,7 +14,7 @@ Rails.application.routes.draw do
|
|
14
14
|
:as => :leave_admin
|
15
15
|
match '/admin/logout' => 'admin#logout',
|
16
16
|
:as => :logout
|
17
|
-
match '/attachment/:id/download(/:name)(.:
|
17
|
+
match '/attachment/:id/download(/:name)(.:suffix)' => 'attachments#download',
|
18
18
|
:as => :download_attachment
|
19
19
|
match '/attachment/:id/show' => 'attachments#show',
|
20
20
|
:as => :show_attachment
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Alchemy
|
2
|
+
module Tinymce
|
3
|
+
|
4
|
+
mattr_accessor :languages, :themes, :plugins, :setup
|
5
|
+
|
6
|
+
@@setup = nil
|
7
|
+
|
8
|
+
@@plugins = %w(autoresize paste fullscreen inlinepopups alchemy_link)
|
9
|
+
|
10
|
+
@@languages = ['en', 'de']
|
11
|
+
|
12
|
+
@@themes = ['advanced']
|
13
|
+
|
14
|
+
@@init = {
|
15
|
+
:paste_convert_headers_to_strong => true,
|
16
|
+
:paste_convert_middot_lists => true,
|
17
|
+
:paste_remove_spans => true,
|
18
|
+
:paste_remove_styles => true,
|
19
|
+
:paste_strip_class_attributes => true,
|
20
|
+
:theme => 'advanced',
|
21
|
+
:skin => 'o2k7',
|
22
|
+
:skin_variant => 'silver',
|
23
|
+
:inlinepopups_skin => 'alchemy',
|
24
|
+
:popup_css => "/assets/alchemy/tinymce_dialog.css",
|
25
|
+
:content_css => "/assets/alchemy/tinymce_content.css",
|
26
|
+
:dialog_type => "modal",
|
27
|
+
:width => "100%",
|
28
|
+
:theme_advanced_resizing => true,
|
29
|
+
:theme_advanced_resize_horizontal => false,
|
30
|
+
:theme_advanced_resizing_min_height => '135',
|
31
|
+
:theme_advanced_toolbar_align => 'left',
|
32
|
+
:theme_advanced_toolbar_location => 'top',
|
33
|
+
:theme_advanced_statusbar_location => 'bottom',
|
34
|
+
:theme_advanced_buttons1 => 'bold,italic,underline,strikethrough,sub,sup,|,numlist,bullist,indent,outdent,|,alchemy_link,unlink,|,removeformat,cleanup,|,fullscreen',
|
35
|
+
:theme_advanced_buttons2 => 'pastetext,pasteword,charmap,code,help',
|
36
|
+
:theme_advanced_buttons3 => '',
|
37
|
+
:fix_list_elements => true,
|
38
|
+
:convert_urls => false,
|
39
|
+
:entity_encoding => "raw"
|
40
|
+
}
|
41
|
+
|
42
|
+
def self.init= js
|
43
|
+
@@init = js
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.init
|
47
|
+
@@init
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
data/lib/alchemy/version.rb
CHANGED
data/lib/alchemy_cms.rb
CHANGED
@@ -6,7 +6,9 @@ if defined?(Rails) && Rails::VERSION::MAJOR == 3
|
|
6
6
|
require 'dynamic_form'
|
7
7
|
require 'fleximage'
|
8
8
|
require 'gettext_i18n_rails'
|
9
|
-
|
9
|
+
if Rails.version >= '3.1'
|
10
|
+
require 'jquery-rails'
|
11
|
+
end
|
10
12
|
require 'userstamp'
|
11
13
|
require 'will_paginate'
|
12
14
|
require 'yaml'
|
@@ -15,7 +17,7 @@ if defined?(Rails) && Rails::VERSION::MAJOR == 3
|
|
15
17
|
require 'extensions/action_view'
|
16
18
|
require 'alchemy/version'
|
17
19
|
require 'alchemy/engine'
|
18
|
-
%w(config essence page_layout controller remote_pagination_link_renderer).each do |class_name|
|
20
|
+
%w(config essence page_layout controller remote_pagination_link_renderer tinymce).each do |class_name|
|
19
21
|
require File.join(File.dirname(__FILE__), "alchemy", class_name)
|
20
22
|
end
|
21
23
|
require File.join(File.dirname(__FILE__), "alchemy", "seeder")
|
data/script/rails
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#!/usr/bin/env ruby
|
3
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
4
|
+
|
5
|
+
ENGINE_PATH = File.expand_path('../..', __FILE__)
|
6
|
+
load File.expand_path('../../spec/dummy/script/rails', __FILE__)
|
@@ -4,41 +4,43 @@ describe Admin::ClipboardController do
|
|
4
4
|
|
5
5
|
before(:each) do
|
6
6
|
activate_authlogic
|
7
|
-
|
7
|
+
user = Factory(:admin_user)
|
8
|
+
user.save_without_session_maintenance
|
9
|
+
UserSession.create user
|
8
10
|
end
|
9
11
|
|
10
12
|
context "clipboard" do
|
11
13
|
|
12
14
|
it "should hold element ids" do
|
13
|
-
@page =
|
14
|
-
@element =
|
15
|
-
@another_element =
|
15
|
+
@page = Factory(:page, :parent_id => Page.rootpage.id)
|
16
|
+
@element = Factory(:element, :page => @page)
|
17
|
+
@another_element = Factory(:element, :page => @page)
|
16
18
|
session[:clipboard] = { :elements => [{:id => @element.id, :action => 'copy'}] }
|
17
19
|
post(:insert, {:remarkable_type => 'element', :remarkable_id => @another_element.id, :format => :js})
|
18
|
-
session[:clipboard][:elements].should == [{:id => @element.id, :action => 'copy'}, {:id => @another_element.id, :action => 'copy'}]
|
20
|
+
session[:clipboard][:elements].should == [{:id => @element.id, :action => 'copy'}, {:id => @another_element.id.to_s, :action => 'copy'}]
|
19
21
|
end
|
20
22
|
|
21
23
|
it "should not have the same element twice" do
|
22
|
-
@page =
|
23
|
-
@element =
|
24
|
+
@page = Factory(:page, :parent_id => Page.rootpage.id)
|
25
|
+
@element = Factory(:element, :page => @page)
|
24
26
|
session[:clipboard] = { :elements => [{:id => @element.id, :action => 'copy'}] }
|
25
27
|
post(:insert, {:remarkable_type => 'element', :remarkable_id => @element.id, :format => :js})
|
26
28
|
session[:clipboard][:elements].should == [{:id => @element.id, :action => 'copy'}]
|
27
29
|
end
|
28
30
|
|
29
31
|
it "should remove element ids" do
|
30
|
-
@page =
|
31
|
-
@element =
|
32
|
-
@another_element =
|
32
|
+
@page = Factory(:page, :parent_id => Page.rootpage.id)
|
33
|
+
@element = Factory(:element, :page => @page)
|
34
|
+
@another_element = Factory(:element, :page => @page)
|
33
35
|
session[:clipboard] = { :elements => [{:id => @element.id, :action => 'copy'}, {:id => @another_element.id, :action => 'copy'}] }
|
34
36
|
delete(:remove, {:remarkable_type => 'element', :remarkable_id => @another_element.id, :format => :js})
|
35
37
|
session[:clipboard][:elements].should == [{:id => @element.id, :action => 'copy'}]
|
36
38
|
end
|
37
39
|
|
38
40
|
it "should be clearable" do
|
39
|
-
@page =
|
40
|
-
@element =
|
41
|
-
@another_element =
|
41
|
+
@page = Factory(:page, :parent_id => Page.rootpage.id)
|
42
|
+
@element = Factory(:element, :page => @page)
|
43
|
+
@another_element = Factory(:element, :page => @page)
|
42
44
|
session[:clipboard] = { :elements => [@element.id, @another_element.id] }
|
43
45
|
delete(:clear, :format => :js)
|
44
46
|
session[:clipboard].should == {}
|