alchemy_cms 2.5.3.1 → 2.6.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/.travis.yml +5 -13
- data/Gemfile +6 -3
- data/README.md +3 -2
- data/alchemy_cms.gemspec +22 -22
- data/app/assets/fonts/alchemy-icons.eot +0 -0
- data/app/assets/fonts/alchemy-icons.svg +54 -0
- data/app/assets/fonts/alchemy-icons.ttf +0 -0
- data/app/assets/fonts/alchemy-icons.woff +0 -0
- data/app/assets/images/alchemy/icons.png +0 -0
- data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +151 -0
- data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +3 -2
- data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +31 -0
- data/app/assets/javascripts/alchemy/alchemy.dragndrop.js +1 -1
- data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +98 -0
- data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +23 -24
- data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +27 -0
- data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +11 -8
- data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +32 -0
- data/app/assets/javascripts/alchemy/alchemy.image_cropper.js.coffee +46 -0
- data/app/assets/javascripts/alchemy/alchemy.js +8 -2
- data/app/assets/javascripts/alchemy/alchemy.link_overlay.js.coffee +5 -4
- data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +49 -0
- data/app/assets/javascripts/alchemy/alchemy.onload.js.coffee +3 -0
- data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +71 -0
- data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +61 -0
- data/app/assets/javascripts/alchemy/alchemy.spinner.js.coffee +35 -0
- data/app/assets/javascripts/alchemy/alchemy.string_extension.js.coffee +11 -0
- data/app/assets/javascripts/alchemy/alchemy.windows.js.coffee +278 -0
- data/app/assets/stylesheets/alchemy/admin.css.scss +2 -0
- data/app/assets/stylesheets/alchemy/archive.scss +109 -65
- data/app/assets/stylesheets/alchemy/base.scss +16 -188
- data/app/assets/stylesheets/alchemy/dashboard.scss +2 -2
- data/app/assets/stylesheets/alchemy/defaults.scss +2 -1
- data/app/assets/stylesheets/alchemy/elements.scss +58 -94
- data/app/assets/stylesheets/alchemy/errors.scss +2 -2
- data/app/assets/stylesheets/alchemy/{mixins.scss → extends.scss} +104 -80
- data/app/assets/stylesheets/alchemy/flash.scss +4 -6
- data/app/assets/stylesheets/alchemy/fonts.scss +46 -0
- data/app/assets/stylesheets/alchemy/form_elements.scss +46 -45
- data/app/assets/stylesheets/alchemy/frame.scss +20 -15
- data/app/assets/stylesheets/alchemy/icons.scss +22 -9
- data/app/assets/stylesheets/alchemy/jquery-ui.scss +476 -399
- data/app/assets/stylesheets/alchemy/login.scss +1 -1
- data/app/assets/stylesheets/alchemy/menubar.css.scss +1 -1
- data/app/assets/stylesheets/alchemy/notices.scss +5 -5
- data/app/assets/stylesheets/alchemy/pagination.scss +25 -13
- data/app/assets/stylesheets/alchemy/search.scss +29 -17
- data/app/assets/stylesheets/alchemy/sitemap.scss +41 -36
- data/app/assets/stylesheets/alchemy/tables.scss +102 -50
- data/app/assets/stylesheets/alchemy/tinymce_dialog.css.scss +18 -16
- data/app/assets/stylesheets/alchemy/toolbar.scss +84 -24
- data/app/assets/stylesheets/alchemy/upload.scss +14 -9
- data/app/assets/stylesheets/alchemy/variables.scss +1 -0
- data/app/assets/stylesheets/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.scss +18 -21
- data/app/controllers/alchemy/admin/attachments_controller.rb +29 -39
- data/app/controllers/alchemy/admin/base_controller.rb +3 -9
- data/app/controllers/alchemy/admin/clipboard_controller.rb +1 -1
- data/app/controllers/alchemy/admin/contents_controller.rb +1 -1
- data/app/controllers/alchemy/admin/dashboard_controller.rb +1 -1
- data/app/controllers/alchemy/admin/elements_controller.rb +3 -3
- data/app/controllers/alchemy/admin/essence_files_controller.rb +1 -1
- data/app/controllers/alchemy/admin/essence_pictures_controller.rb +5 -5
- data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
- data/app/controllers/alchemy/admin/pages_controller.rb +18 -16
- data/app/controllers/alchemy/admin/pictures_controller.rb +11 -10
- data/app/controllers/alchemy/admin/resources_controller.rb +87 -14
- data/app/controllers/alchemy/admin/tags_controller.rb +3 -3
- data/app/controllers/alchemy/admin/trash_controller.rb +3 -3
- data/app/controllers/alchemy/admin/users_controller.rb +6 -11
- data/app/controllers/alchemy/attachments_controller.rb +8 -9
- data/app/controllers/alchemy/base_controller.rb +17 -10
- data/app/controllers/alchemy/pages_controller.rb +7 -19
- data/app/controllers/alchemy/passwords_controller.rb +15 -3
- data/app/controllers/alchemy/user_sessions_controller.rb +5 -4
- data/app/controllers/alchemy/users_controller.rb +1 -1
- data/app/helpers/alchemy/admin/attachments_helper.rb +2 -2
- data/app/helpers/alchemy/admin/base_helper.rb +62 -90
- data/app/helpers/alchemy/admin/elements_helper.rb +13 -5
- data/app/helpers/alchemy/admin/essences_helper.rb +3 -5
- data/app/helpers/alchemy/admin/pages_helper.rb +6 -3
- data/app/helpers/alchemy/admin/tags_helper.rb +60 -0
- data/app/helpers/alchemy/base_helper.rb +16 -20
- data/app/helpers/alchemy/elements_helper.rb +7 -11
- data/app/helpers/alchemy/essences_helper.rb +2 -2
- data/app/helpers/alchemy/pages_helper.rb +31 -69
- data/app/helpers/alchemy/url_helper.rb +11 -3
- data/app/models/alchemy/attachment.rb +73 -45
- data/app/models/alchemy/cell.rb +1 -1
- data/app/models/alchemy/content.rb +20 -9
- data/app/models/alchemy/element.rb +9 -7
- data/app/models/alchemy/page.rb +15 -248
- data/app/models/alchemy/page/cells.rb +71 -0
- data/app/models/alchemy/page/elements.rb +147 -0
- data/app/models/alchemy/page/naming.rb +90 -0
- data/app/models/alchemy/picture.rb +18 -13
- data/app/models/alchemy/tag.rb +1 -1
- data/app/models/alchemy/user.rb +38 -6
- data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +14 -7
- data/app/views/alchemy/admin/attachments/_attachment.html.erb +17 -12
- data/app/views/alchemy/admin/attachments/_file_to_assign.html.erb +3 -8
- data/app/views/alchemy/admin/attachments/_files_list.html.erb +20 -12
- data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +11 -0
- data/app/views/alchemy/admin/attachments/_tag_list.html.erb +31 -0
- data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +4 -0
- data/app/views/alchemy/admin/attachments/edit.html.erb +8 -7
- data/app/views/alchemy/admin/attachments/index.html.erb +19 -12
- data/app/views/alchemy/admin/attachments/new.html.erb +2 -2
- data/app/views/alchemy/admin/attachments/show.html.erb +3 -0
- data/app/views/alchemy/admin/contents/_missing.html.erb +4 -4
- data/app/views/alchemy/admin/contents/create.js.erb +1 -1
- data/app/views/alchemy/admin/contents/new.html.erb +6 -3
- data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/_users.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/index.html.erb +3 -3
- data/app/views/alchemy/admin/dashboard/info.html.erb +16 -13
- data/app/views/alchemy/admin/elements/_add_picture.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_element_foot.html.erb +4 -4
- data/app/views/alchemy/admin/elements/_element_head.html.erb +1 -7
- data/app/views/alchemy/admin/elements/_elements_select.html.erb +2 -2
- data/app/views/alchemy/admin/elements/_new_element_form.html.erb +4 -4
- data/app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb +1 -1
- data/app/views/alchemy/admin/elements/create.js.erb +2 -2
- data/app/views/alchemy/admin/elements/fold.js.erb +3 -6
- data/app/views/alchemy/admin/elements/new.html.erb +1 -1
- data/app/views/alchemy/admin/elements/order.js.erb +1 -1
- data/app/views/alchemy/admin/elements/trash.js.erb +1 -1
- data/app/views/alchemy/admin/elements/update.js.erb +2 -2
- data/app/views/alchemy/admin/essence_files/edit.html.erb +4 -4
- data/app/views/alchemy/admin/essence_pictures/crop.html.erb +17 -18
- data/app/views/alchemy/admin/essence_pictures/edit.html.erb +2 -2
- data/app/views/alchemy/admin/essence_pictures/update.js.erb +1 -0
- data/app/views/alchemy/admin/languages/_form.html.erb +12 -10
- data/app/views/alchemy/admin/languages/_language.html.erb +2 -1
- data/app/views/alchemy/admin/languages/_table.html.erb +3 -3
- data/app/views/alchemy/admin/languages/index.html.erb +15 -15
- data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +6 -6
- data/app/views/alchemy/admin/layoutpages/index.html.erb +41 -40
- data/app/views/alchemy/admin/pages/_contactform_links.html.erb +4 -4
- data/app/views/alchemy/admin/pages/_create_language_form.html.erb +6 -6
- data/app/views/alchemy/admin/pages/_external_link.html.erb +2 -2
- data/app/views/alchemy/admin/pages/_file_link.html.erb +3 -3
- data/app/views/alchemy/admin/pages/_internal_link.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_new_page_form.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_page.html.erb +13 -13
- data/app/views/alchemy/admin/pages/_page_for_links.html.erb +2 -4
- data/app/views/alchemy/admin/pages/_sitemap.html.erb +5 -0
- data/app/views/alchemy/admin/pages/configure.html.erb +7 -7
- data/app/views/alchemy/admin/pages/configure_external.html.erb +4 -4
- data/app/views/alchemy/admin/pages/edit.html.erb +23 -30
- data/app/views/alchemy/admin/pages/index.html.erb +34 -23
- data/app/views/alchemy/admin/pages/new.html.erb +1 -1
- data/app/views/alchemy/admin/pages/sort.js.erb +1 -1
- data/app/views/alchemy/admin/partials/_flash_upload.html.erb +2 -3
- data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
- data/app/views/alchemy/admin/partials/_search_form.html.erb +3 -3
- data/app/views/alchemy/admin/partials/_upload_form.html.erb +2 -2
- data/app/views/alchemy/admin/pictures/_archive.html.erb +7 -7
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +6 -6
- data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +4 -4
- data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_picture.html.erb +3 -8
- data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +9 -14
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +27 -25
- data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +3 -1
- data/app/views/alchemy/admin/pictures/index.html.erb +49 -42
- data/app/views/alchemy/admin/pictures/new.html.erb +2 -2
- data/app/views/alchemy/admin/pictures/show.html.erb +11 -0
- data/app/views/alchemy/admin/resources/_boolean.html.erb +2 -2
- data/app/views/alchemy/admin/resources/_datetime.html.erb +2 -2
- data/app/views/alchemy/admin/resources/_form.html.erb +9 -8
- data/app/views/alchemy/admin/resources/_resource.html.erb +15 -21
- data/app/views/alchemy/admin/resources/_string.html.erb +2 -2
- data/app/views/alchemy/admin/resources/_table.html.erb +11 -13
- data/app/views/alchemy/admin/resources/_text.html.erb +2 -2
- data/app/views/alchemy/admin/resources/index.csv.erb +13 -0
- data/app/views/alchemy/admin/resources/index.html.erb +24 -15
- data/app/views/alchemy/admin/sites/index.html.erb +23 -0
- data/app/views/alchemy/admin/tags/_radio_tag.html.erb +1 -1
- data/app/views/alchemy/admin/tags/_tag.html.erb +2 -1
- data/app/views/alchemy/admin/tags/edit.html.erb +1 -1
- data/app/views/alchemy/admin/tags/index.html.erb +16 -11
- data/app/views/alchemy/admin/tags/new.html.erb +3 -3
- data/app/views/alchemy/admin/trash/clear.js.coffee +1 -1
- data/app/views/alchemy/admin/users/_table.html.erb +12 -5
- data/app/views/alchemy/admin/users/_user.html.erb +16 -16
- data/app/views/alchemy/admin/users/index.html.erb +28 -16
- data/app/views/alchemy/breadcrumb/_page.html.erb +15 -0
- data/app/views/alchemy/breadcrumb/_spacer.html.erb +1 -0
- data/app/views/alchemy/elements/_editor_not_found.html.erb +1 -1
- data/app/views/alchemy/essences/_essence_file_editor.html.erb +16 -16
- data/app/views/alchemy/essences/_essence_file_view.html.erb +8 -9
- data/app/views/alchemy/essences/_essence_picture_editor.html.erb +3 -6
- data/app/views/alchemy/essences/_essence_picture_tools.html.erb +9 -8
- data/app/views/alchemy/essences/_essence_richtext_editor.html.erb +0 -5
- data/app/views/alchemy/essences/_linkable_essence_tools.html.erb +2 -2
- data/app/views/alchemy/navigation/_link.html.erb +7 -7
- data/app/views/alchemy/navigation/_renderer.html.erb +29 -36
- data/app/views/alchemy/notifications/admin_user_created.de.text.erb +5 -1
- data/app/views/alchemy/notifications/admin_user_created.en.text.erb +5 -1
- data/app/views/alchemy/notifications/registered_user_created.de.text.erb +13 -0
- data/app/views/alchemy/notifications/registered_user_created.en.text.erb +13 -0
- data/app/views/alchemy/search/_result.html.erb +4 -6
- data/app/views/alchemy/search/_results.html.erb +4 -5
- data/app/views/alchemy/user_sessions/leave.html.erb +1 -1
- data/app/views/alchemy/user_sessions/new.html.erb +2 -2
- data/app/views/kaminari/_first_page.html.erb +11 -0
- data/app/views/kaminari/_gap.html.erb +1 -1
- data/app/views/kaminari/_last_page.html.erb +11 -0
- data/app/views/kaminari/_next_page.html.erb +2 -2
- data/app/views/kaminari/_page.html.erb +1 -1
- data/app/views/kaminari/_paginator.html.erb +2 -0
- data/app/views/kaminari/_prev_page.html.erb +2 -2
- data/app/views/layouts/alchemy/admin.html.erb +4 -5
- data/config/alchemy/config.yml +8 -12
- data/config/authorization_rules.rb +4 -3
- data/config/initializers/dragonfly.rb +20 -12
- data/config/locales/alchemy.de.yml +20 -15
- data/config/locales/alchemy.en.yml +15 -10
- data/config/locales/devise.de.yml +1 -0
- data/config/routes.rb +3 -3
- data/{spec/dummy/db/migrate/20121118000000_alchemy_two_point_four.rb → db/migrate/20130214233001_alchemy_two_point_five.rb} +50 -36
- data/db/migrate/20130221200514_migrate_attachments_to_dragonfly.rb +21 -0
- data/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb +11 -0
- data/lib/alchemy/capistrano.rb +10 -8
- data/lib/alchemy/errors.rb +7 -0
- data/lib/alchemy/filetypes.rb +33 -0
- data/lib/alchemy/i18n.rb +9 -1
- data/lib/alchemy/name_conversions.rb +28 -0
- data/lib/alchemy/page_layout.rb +5 -3
- data/lib/alchemy/resource.rb +132 -29
- data/lib/alchemy/resources_helper.rb +81 -12
- data/lib/alchemy/upgrader.rb +14 -276
- data/lib/alchemy/version.rb +1 -1
- data/lib/alchemy_cms.rb +17 -2
- data/lib/rails/generators/alchemy/deploy_script/templates/deploy.rb.tt +1 -1
- data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +1 -1
- data/lib/tasks/alchemy/convert.rake +39 -0
- data/lib/tasks/alchemy/install.rake +4 -6
- data/lib/tasks/alchemy/upgrade.rake +18 -1
- data/spec/controllers/admin/clipboard_controller_spec.rb +4 -4
- data/spec/controllers/admin/elements_controller_spec.rb +23 -23
- data/spec/controllers/admin/pages_controller_spec.rb +15 -0
- data/spec/controllers/admin/resources_controller_spec.rb +1 -11
- data/spec/controllers/admin/trash_controller_spec.rb +9 -9
- data/spec/controllers/attachments_controller_spec.rb +3 -3
- data/spec/controllers/elements_controller_spec.rb +2 -2
- data/spec/controllers/pages_controller_spec.rb +160 -129
- data/spec/controllers/pictures_controller_spec.rb +2 -2
- data/spec/controllers/user_sessions_controller_spec.rb +3 -3
- data/spec/controllers/users_controller_spec.rb +2 -2
- data/spec/dummy/app/models/event.rb +2 -2
- data/spec/dummy/app/models/location.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +6 -42
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/dummy/db/migrate/20121026104128_create_events.rb +0 -1
- data/{db/migrate/20121118000000_alchemy_two_point_four.rb → spec/dummy/db/migrate/20130214233001_alchemy_two_point_five.rb} +50 -36
- data/spec/dummy/db/migrate/20130221200514_migrate_attachments_to_dragonfly.rb +21 -0
- data/spec/dummy/db/migrate/20130312205327_change_alchemy_users_role_to_roles.rb +11 -0
- data/spec/dummy/db/migrate/20130328101418_create_locations.rb +9 -0
- data/spec/dummy/db/schema.rb +15 -6
- data/spec/factories.rb +4 -4
- data/spec/{integration → features}/admin/link_overlay_spec.rb +0 -0
- data/spec/{integration → features}/admin/modules_integration_spec.rb +1 -1
- data/spec/{integration → features}/admin/pages_controller_spec.rb +9 -4
- data/spec/{integration → features}/admin/picture_library_integration_spec.rb +5 -5
- data/spec/{integration → features}/admin/resources_integration_spec.rb +1 -1
- data/spec/{integration → features}/navigation_spec.rb +0 -0
- data/spec/{integration → features}/pages_controller_spec.rb +42 -112
- data/spec/{integration → features}/picture_security_spec.rb +2 -2
- data/spec/{integration → features}/security_spec.rb +7 -7
- data/spec/{integration → features}/translation_integration_spec.rb +0 -0
- data/spec/helpers/admin/base_helper_spec.rb +0 -50
- data/spec/helpers/admin/tags_helper_spec.rb +53 -0
- data/spec/helpers/base_helper_spec.rb +19 -3
- data/spec/helpers/pages_helper_spec.rb +92 -44
- data/spec/{url_helpers_spec.rb → helpers/picture_url_helpers_spec.rb} +7 -7
- data/spec/helpers/url_helper_spec.rb +92 -72
- data/spec/{config_spec.rb → libraries/config_spec.rb} +0 -0
- data/spec/libraries/resource_spec.rb +215 -76
- data/spec/libraries/resources_helper_spec.rb +70 -28
- data/spec/models/attachment_spec.rb +75 -9
- data/spec/models/clipboard_spec.rb +1 -1
- data/spec/models/element_spec.rb +7 -0
- data/spec/models/page_spec.rb +144 -25
- data/spec/models/picture_spec.rb +5 -5
- data/spec/models/resource_spec.rb +47 -10
- data/spec/models/user_spec.rb +115 -3
- data/spec/{routing_spec.rb → routing/routing_spec.rb} +8 -20
- data/spec/spec_helper.rb +5 -6
- data/spec/support/alchemy/specs_helpers.rb +1 -1
- data/spec/support/ci/install_phantomjs +1 -1
- data/spec/support/image with spaces.png +0 -0
- data/vendor/assets/javascripts/jquery_plugins/jquery.Jcrop.min.js +18 -18
- data/vendor/assets/javascripts/jquery_plugins/{jquery.dialogextend.1_0_1.js → jquery.dialogextend.js} +25 -17
- data/vendor/assets/javascripts/jquery_plugins/jquery.scrollTo.min.js +7 -0
- data/vendor/assets/javascripts/jquery_plugins/jquery.ui.tabspaging.js +7 -7
- data/vendor/assets/javascripts/keymage.min.js +6 -0
- data/vendor/assets/javascripts/spin.min.js +1 -0
- metadata +122 -124
- data/app/assets/images/alchemy/ajax_loader.gif +0 -0
- data/app/assets/images/alchemy/gui/toggle.png +0 -0
- data/app/assets/images/alchemy/image_loader.gif +0 -0
- data/app/assets/images/alchemy/shading.png +0 -0
- data/app/assets/images/alchemy/tabs.gif +0 -0
- data/app/assets/javascripts/alchemy/alchemy.base.js +0 -172
- data/app/assets/javascripts/alchemy/alchemy.datepicker.js +0 -47
- data/app/assets/javascripts/alchemy/alchemy.element_editor_selector.js +0 -91
- data/app/assets/javascripts/alchemy/alchemy.growler.js +0 -46
- data/app/assets/javascripts/alchemy/alchemy.image_cropper.js +0 -60
- data/app/assets/javascripts/alchemy/alchemy.js_extensions.js +0 -15
- data/app/assets/javascripts/alchemy/alchemy.preview_window.js +0 -97
- data/app/assets/javascripts/alchemy/alchemy.windows.js +0 -321
- data/app/models/alchemy/clipboard_spec.rb +0 -0
- data/app/views/alchemy/admin/pictures/show_in_window.html.erb +0 -8
- data/app/views/alchemy/notifications/registered_user_created.text.erb +0 -11
- data/db/migrate/20121121162313_switch_from_fleximage_to_dragonfly.rb +0 -21
- data/db/migrate/20121205155004_create_alchemy_sites.rb +0 -14
- data/db/migrate/20121211163003_add_public_to_alchemy_sites.rb +0 -6
- data/db/migrate/20121220102223_add_aliases_to_site.rb +0 -6
- data/db/migrate/20130110212411_create_alchemy_legacy_page_urls.rb +0 -11
- data/db/migrate/20130121092645_migrate_to_devise.rb +0 -24
- data/spec/alchemy_spec.rb +0 -7
- data/spec/dummy/db/migrate/20121121162313_switch_from_fleximage_to_dragonfly.rb +0 -21
- data/spec/dummy/db/migrate/20121205155004_create_alchemy_sites.rb +0 -14
- data/spec/dummy/db/migrate/20121211163003_add_public_to_alchemy_sites.rb +0 -6
- data/spec/dummy/db/migrate/20121220102223_add_aliases_to_site.rb +0 -6
- data/spec/dummy/db/migrate/20130110212411_create_alchemy_legacy_page_urls.rb +0 -11
- data/spec/dummy/db/migrate/20130121092645_migrate_to_devise.rb +0 -24
- data/vendor/assets/javascripts/jquery_plugins/jquery.scrollTo-1.4.2-min.js +0 -11
@@ -1,52 +1,53 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<label><%= _t('Active Pages') %> »</label>
|
4
|
-
|
5
|
-
<div class="subnavi_tab wide" id="locked_page_<%= page.id %>">
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
<% content_for(:subnav_additions) do %>
|
2
|
+
<% unless @locked_pages.blank? %>
|
3
|
+
<label><%= _t('Active Pages') %> »</label>
|
4
|
+
<% @locked_pages.each do |page| %>
|
5
|
+
<div class="subnavi_tab wide" id="locked_page_<%= page.id %>">
|
6
|
+
<%= link_to alchemy.edit_admin_page_path(page) do %>
|
7
|
+
<span class="page_name" title="<%= page.name %>">
|
8
|
+
<%= truncate page.name, length: 15 %>
|
9
|
+
</span>
|
10
|
+
<% end %>
|
11
|
+
<%= form_tag(alchemy.unlock_admin_page_path(page), remote: true) do %>
|
12
|
+
<button class="icon_button small" title="<%= _t(:explain_unlocking) %>">
|
13
|
+
<%= render_icon('close small') %>
|
14
|
+
</button>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
10
18
|
<% end %>
|
11
|
-
|
12
|
-
<button class="icon_button small" title="<%= _t('explain_unlocking') %>">
|
13
|
-
<%= render_icon('close small') %>
|
14
|
-
</button>
|
15
|
-
<% end %>
|
16
|
-
</div>
|
17
|
-
<%- end -%>
|
18
|
-
<%- end -%>
|
19
|
-
<%- end -%>
|
19
|
+
<% end %>
|
20
20
|
|
21
|
-
|
22
|
-
<div
|
23
|
-
<%= render :
|
21
|
+
<% content_for :toolbar do %>
|
22
|
+
<div class="toolbar_buttons">
|
23
|
+
<%= render partial: 'alchemy/admin/partials/language_tree_select' %>
|
24
24
|
<%= toolbar_button(
|
25
|
-
:
|
26
|
-
:
|
27
|
-
:
|
28
|
-
|
29
|
-
:
|
30
|
-
:
|
25
|
+
icon: 'add_page',
|
26
|
+
url: alchemy.new_admin_page_path(parent_id: @layout_root.id, layoutpage: true),
|
27
|
+
hotkey: 'alt-n',
|
28
|
+
overlay_options: {
|
29
|
+
title: _t('Add global page'),
|
30
|
+
size: '340x150',
|
31
|
+
overflow: true
|
31
32
|
},
|
32
|
-
:
|
33
|
-
:
|
34
|
-
:
|
33
|
+
title: _t('Add global page'),
|
34
|
+
label: _t('Add global page'),
|
35
|
+
if_permitted_to: [:new, :alchemy_admin_pages]
|
35
36
|
) %>
|
36
37
|
<%= toolbar_button(
|
37
|
-
:
|
38
|
-
:
|
39
|
-
:
|
40
|
-
:
|
41
|
-
:
|
38
|
+
icon: "clipboard#{clipboard_empty?('pages') ? '' : ' full'}",
|
39
|
+
url: alchemy.admin_clipboard_path(remarkable_type: 'pages'),
|
40
|
+
overlay_options: {
|
41
|
+
title: _t('Clipboard'),
|
42
|
+
size: '380x270'
|
42
43
|
},
|
43
|
-
:
|
44
|
-
:
|
45
|
-
:
|
44
|
+
title: _t('Show clipboard'),
|
45
|
+
id: "clipboard_button",
|
46
|
+
label: _t('Show clipboard')
|
46
47
|
) %>
|
47
48
|
</div>
|
48
|
-
|
49
|
+
<% end %>
|
49
50
|
|
50
51
|
<ul class="list" id="layoutpages">
|
51
|
-
<%= render :
|
52
|
+
<%= render partial: "layoutpage", collection: @layout_root.children %>
|
52
53
|
</ul>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
) %>
|
13
13
|
<tr>
|
14
14
|
<td class="label">
|
15
|
-
<label for="contactform_subject" class="medium"><%= _t(
|
15
|
+
<label for="contactform_subject" class="medium"><%= _t(:subject) %></label>
|
16
16
|
</td>
|
17
17
|
<td class="input">
|
18
18
|
<%= text_field_tag "contactform_subject", {}, :class => "thin_border auto_resize" %>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
</tr>
|
21
21
|
<tr>
|
22
22
|
<td class="label">
|
23
|
-
<label for="contactform_mailto" class="medium"><%= _t(
|
23
|
+
<label for="contactform_mailto" class="medium"><%= _t(:mail_to) %></label>
|
24
24
|
</td>
|
25
25
|
<td class="input">
|
26
26
|
<%= select_tag(
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<tr>
|
34
34
|
<td class="label">
|
35
35
|
<label for="contactform_body" class="medium">
|
36
|
-
<%= _t(
|
36
|
+
<%= _t(:contactform_body) %>
|
37
37
|
</label>
|
38
38
|
</td>
|
39
39
|
<td class="input">
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<tr>
|
44
44
|
<td class="label">
|
45
45
|
<label for="contactform_link_title" class="medium">
|
46
|
-
<%= _t(
|
46
|
+
<%= _t(:link_title) %>
|
47
47
|
</label>
|
48
48
|
</td>
|
49
49
|
<td class="input">
|
@@ -2,14 +2,14 @@
|
|
2
2
|
<div id="create_language_tree_form" style="display: none">
|
3
3
|
<div class="info">
|
4
4
|
<%= render_icon('info') %>
|
5
|
-
<%= _t(
|
5
|
+
<%= _t(:language_does_not_exist) %>
|
6
6
|
</div>
|
7
7
|
<%- if @language -%>
|
8
8
|
|
9
9
|
<%- if @languages_with_page_tree.size >= 1 -%>
|
10
10
|
<%= form_tag(alchemy.copy_language_tree_admin_pages_path) do %>
|
11
|
-
<h2><%= _t(
|
12
|
-
<p><%= _t(
|
11
|
+
<h2><%= _t(:copy_language_tree_heading) %></h2>
|
12
|
+
<p><%= _t(:want_to_make_copy_of_existing_language) %></p>
|
13
13
|
<table>
|
14
14
|
<tr>
|
15
15
|
<td class="label"><%= label_tag('languages[old_lang_id]', _t('Language tree')) %></td>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<tr>
|
22
22
|
<td class="submit" colspan="2">
|
23
23
|
<%= hidden_field_tag("layoutpage", params[:action] == "layoutpages") if params[:action] == "layoutpages" %>
|
24
|
-
<%= submit_tag _t(
|
24
|
+
<%= submit_tag _t(:copy), :class => 'button' %>
|
25
25
|
</td>
|
26
26
|
</tr>
|
27
27
|
</table>
|
@@ -31,8 +31,8 @@
|
|
31
31
|
<%- if params[:action] == "index" -%>
|
32
32
|
|
33
33
|
<%= form_for([:admin, Alchemy::Page.new], :remote => true) do |form| %>
|
34
|
-
<h2><%= _t(
|
35
|
-
<p><%= _t(
|
34
|
+
<h2><%= _t(:create_language_tree_heading) %></h2>
|
35
|
+
<p><%= _t(:want_to_create_new_language) %></p>
|
36
36
|
<%= form.hidden_field :name, :value => @language.frontpage_name %>
|
37
37
|
<%= form.hidden_field :language_id, :value => @language.id %>
|
38
38
|
<%= form.hidden_field :language_code, :value => @language.code %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="overlay_tab_external_link">
|
2
|
-
<h2><%= _t(
|
2
|
+
<h2><%= _t(:enter_external_link) %></h2>
|
3
3
|
<%= render_message do %>
|
4
4
|
<p><%= _t(:external_link_notice_1) %></p>
|
5
5
|
<p><%= _t(:external_link_notice_2) %></p>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
</tr>
|
19
19
|
<tr>
|
20
20
|
<td class="label long">
|
21
|
-
<label for="extern_link_title"><%= _t(
|
21
|
+
<label for="extern_link_title"><%= _t(:link_title) %></label>
|
22
22
|
</td>
|
23
23
|
<td class="input"><%= text_field_tag "extern_link_title", '', :class => 'thin_border auto_resize link_title' %></td>
|
24
24
|
</tr>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<div id="overlay_tab_file_link">
|
2
2
|
<h2>
|
3
|
-
<%= _t(
|
3
|
+
<%= _t(:choose_file_to_link) %>
|
4
4
|
</h2>
|
5
5
|
<table class="window_form">
|
6
6
|
<tr>
|
7
7
|
<td class="label long">
|
8
|
-
<label for="public_filename"><%= _t(
|
8
|
+
<label for="public_filename"><%= _t(:file) %></label>
|
9
9
|
</td>
|
10
10
|
<td class="select">
|
11
11
|
<%= select_tag(
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<tr>
|
19
19
|
<td class="label long">
|
20
20
|
<label for="file_link_title">
|
21
|
-
<%= _t(
|
21
|
+
<%= _t(:link_title) %>
|
22
22
|
</label>
|
23
23
|
</td>
|
24
24
|
<td class="input">
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<li id="page_<%= page.id %>" class="<%= "
|
2
|
-
<div class="sitemap_page<%= page.locked ? ' locked' : '' %>">
|
1
|
+
<li id="page_<%= page.id %>" class="page_level_<%= "#{page.level} #{page.page_layout}" %>">
|
2
|
+
<div class="sitemap_page<%= page.locked ? ' locked' : '' %>" name="<%= page.name %>">
|
3
3
|
<div class="sitemap_left_images">
|
4
4
|
<%= sitemapFolderLink(page) unless page.children.blank? || @sorting %>
|
5
5
|
<div class="site_status <%= @sorting && page.level > 1 ? 'handle' : nil %>">
|
6
6
|
<div class="tooltip">
|
7
|
-
<h3><%= _t(
|
7
|
+
<h3><%= _t(:page_type) %>:</h3>
|
8
8
|
<p><%= page.layout_display_name %></p>
|
9
|
-
<h3><%= _t(
|
9
|
+
<h3><%= _t(:page_status) %>:</h3>
|
10
10
|
<p><%= combined_page_status(page) %></p>
|
11
11
|
<h3><%= _t(:created_at) %>:</h3>
|
12
12
|
<p><%= l(page.created_at) %></p>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<h3><%= _t(:updated_by) %>:</h3>
|
18
18
|
<p><%= page.updater %></p>
|
19
19
|
<%- if page.locked? -%>
|
20
|
-
<h3><%= _t(
|
20
|
+
<h3><%= _t(:currently_edited_by) %>:</h3>
|
21
21
|
<p><%= page.current_editor %></p>
|
22
22
|
<%- end -%>
|
23
23
|
</div>
|
@@ -30,11 +30,11 @@
|
|
30
30
|
render_icon('configure_page'),
|
31
31
|
alchemy.configure_admin_page_path(page),
|
32
32
|
{
|
33
|
-
:title => _t(
|
33
|
+
:title => _t(:edit_page_properties),
|
34
34
|
:size => page.redirects_to_external? ? '410x270' : '410x655'
|
35
35
|
},
|
36
36
|
:class => '',
|
37
|
-
:title => _t(
|
37
|
+
:title => _t(:edit_page_properties)
|
38
38
|
) -%>
|
39
39
|
<%- end -%>
|
40
40
|
<%- permitted_to?([:new, :destroy, :copy], :alchemy_admin_pages) do -%>
|
@@ -49,13 +49,13 @@
|
|
49
49
|
:remote => true,
|
50
50
|
:method => :post,
|
51
51
|
:class => "",
|
52
|
-
:title => _t(
|
52
|
+
:title => _t(:copy_page)
|
53
53
|
) %>
|
54
54
|
<%- end -%>
|
55
55
|
<%- permitted_to?(:destroy, :alchemy_admin_pages) do -%>
|
56
56
|
<%= link_to_confirmation_window(
|
57
57
|
render_icon('delete_page'),
|
58
|
-
_t(
|
58
|
+
_t(:confirm_to_delete_page),
|
59
59
|
url_for(
|
60
60
|
:controller => 'pages',
|
61
61
|
:action => 'destroy',
|
@@ -63,7 +63,7 @@
|
|
63
63
|
),
|
64
64
|
{
|
65
65
|
:class => "",
|
66
|
-
:title => _t(
|
66
|
+
:title => _t(:delete_page)
|
67
67
|
}
|
68
68
|
) -%>
|
69
69
|
<%- end -%>
|
@@ -72,12 +72,12 @@
|
|
72
72
|
render_icon('add_page'),
|
73
73
|
alchemy.new_admin_page_path(:parent_id => page.id),
|
74
74
|
{
|
75
|
-
:title => _t(
|
75
|
+
:title => _t(:create_page),
|
76
76
|
:size => '340x150',
|
77
77
|
:overflow => true
|
78
78
|
},
|
79
79
|
:class => '',
|
80
|
-
:title => _t(
|
80
|
+
:title => _t(:create_page)
|
81
81
|
) -%>
|
82
82
|
<%- end -%>
|
83
83
|
</span>
|
@@ -100,7 +100,7 @@
|
|
100
100
|
@sorting,
|
101
101
|
page.name,
|
102
102
|
alchemy.edit_admin_page_path(page),
|
103
|
-
:title => _t(
|
103
|
+
:title => _t(:edit_page),
|
104
104
|
:class => "sitemap_pagename_link #{cycle_class}"
|
105
105
|
) { content_tag('span', page.name, :class => "sitemap_pagename_link #{cycle_class}") } -%>
|
106
106
|
<%- end -%>
|
@@ -13,11 +13,9 @@
|
|
13
13
|
:url => @url_prefix + page_for_links.urlname
|
14
14
|
},
|
15
15
|
:class => "show_elements_to_link",
|
16
|
-
:title => _t(
|
16
|
+
:title => _t(:show_elements_from_page)
|
17
17
|
) %>
|
18
|
-
<div id="elements_for_page_<%= page_for_links.id %>" style="display: none" class="elements_for_page">
|
19
|
-
<%= image_tag("alchemy/ajax_loader.gif", :alt => '') %>
|
20
|
-
</div>
|
18
|
+
<div id="elements_for_page_<%= page_for_links.id %>" style="display: none" class="elements_for_page"></div>
|
21
19
|
<% end %>
|
22
20
|
</div>
|
23
21
|
<div class="page_infos">
|
@@ -2,14 +2,14 @@
|
|
2
2
|
<div id="errors"></div>
|
3
3
|
<table id="page_names">
|
4
4
|
<tr>
|
5
|
-
<td class="label"><%= _t(
|
5
|
+
<td class="label"><%= _t(:page_type) %>: </td>
|
6
6
|
<td class="select">
|
7
7
|
<%= f.select('page_layout', @page_layouts, {}, {:class => 'alchemy_selectbox long'}) %>
|
8
8
|
</td>
|
9
9
|
</tr>
|
10
10
|
<% unless @page.layoutpage %>
|
11
11
|
<tr>
|
12
|
-
<td class="label"><%= _t(
|
12
|
+
<td class="label"><%= _t(:page_status) %>: </td>
|
13
13
|
<td class="checkbox long">
|
14
14
|
<%= f.check_box :public %>
|
15
15
|
<%= f.label :public %><br/>
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<% end %>
|
27
27
|
<% unless @page.layoutpage %>
|
28
28
|
<tr>
|
29
|
-
<td colspan="2" class="heading"><%= _t(
|
29
|
+
<td colspan="2" class="heading"><%= _t(:names) %></td>
|
30
30
|
</tr>
|
31
31
|
<% end %>
|
32
32
|
<tr>
|
@@ -36,17 +36,17 @@
|
|
36
36
|
<% unless @page.layoutpage %>
|
37
37
|
<tr>
|
38
38
|
<td class="label"><%= f.label "urlname" %>: </td>
|
39
|
-
<td class="input"><%= f.text_field "urlname", :size => 31, :class => "thin_border long" %></td>
|
39
|
+
<td class="input"><%= f.text_field "urlname", :value => @page.slug, :size => 31, :class => "thin_border long" %></td>
|
40
40
|
</tr>
|
41
41
|
<tr>
|
42
42
|
<td class="label"><%= f.label "title" %>: </td>
|
43
43
|
<td class="input"><%= f.text_field "title", :size => 31, :class => "thin_border long" %></td>
|
44
44
|
</tr>
|
45
45
|
<tr>
|
46
|
-
<td colspan="2" class="heading"><%= _t(
|
46
|
+
<td colspan="2" class="heading"><%= _t(:meta_data) %></td>
|
47
47
|
</tr>
|
48
48
|
<tr>
|
49
|
-
<td class="label"><%= _t(
|
49
|
+
<td class="label"><%= _t(:search_engines) %>: </td>
|
50
50
|
<td class="checkbox long">
|
51
51
|
<%= f.check_box "robot_index" %>
|
52
52
|
<%= f.label "robot_index" %><br/>
|
@@ -80,7 +80,7 @@
|
|
80
80
|
<% end %>
|
81
81
|
<tr>
|
82
82
|
<td colspan="2" class="submit">
|
83
|
-
<%= f.button _t(
|
83
|
+
<%= f.button _t(:save), :class => 'button' %>
|
84
84
|
</td>
|
85
85
|
</tr>
|
86
86
|
</table>
|
@@ -2,13 +2,13 @@
|
|
2
2
|
<div id="errors"></div>
|
3
3
|
<table id="page_names">
|
4
4
|
<tr>
|
5
|
-
<td class="label"><%= _t(
|
5
|
+
<td class="label"><%= _t(:page_type) %>: </td>
|
6
6
|
<td class="value long">
|
7
7
|
<p><%= @page.layout_display_name %></p>
|
8
8
|
</td>
|
9
9
|
</tr>
|
10
10
|
<tr>
|
11
|
-
<td class="label"><%= _t(
|
11
|
+
<td class="label"><%= _t(:page_status) %>: </td>
|
12
12
|
<td class="checkbox long">
|
13
13
|
<%= f.check_box :visible -%>
|
14
14
|
<%= f.label :visible %><br/>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
</td>
|
20
20
|
</tr>
|
21
21
|
<tr>
|
22
|
-
<td colspan="2" class="heading"><%= _t(
|
22
|
+
<td colspan="2" class="heading"><%= _t(:names) %></td>
|
23
23
|
</tr>
|
24
24
|
<tr>
|
25
25
|
<td class="label"><%= f.label "name" %>: </td>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
<td class="input"><%= f.text_field "title", :size => 31, :class => "thin_border long" %></td>
|
35
35
|
</tr>
|
36
36
|
<tr>
|
37
|
-
<td colspan="2" class="submit"><%= f.button _t(
|
37
|
+
<td colspan="2" class="submit"><%= f.button _t(:save), :class => 'button' %></td>
|
38
38
|
</tr>
|
39
39
|
</table>
|
40
40
|
<% end %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
</span>
|
14
14
|
<% end %>
|
15
15
|
<%= form_tag(alchemy.unlock_admin_page_path(page), :remote => true) do %>
|
16
|
-
<button class="icon_button small" title="<%= _t(
|
16
|
+
<button class="icon_button small" title="<%= _t(:explain_unlocking) %>">
|
17
17
|
<%= render_icon('close small') %>
|
18
18
|
</button>
|
19
19
|
<% end %>
|
@@ -23,13 +23,13 @@
|
|
23
23
|
<% end %>
|
24
24
|
|
25
25
|
<% content_for(:toolbar) do %>
|
26
|
-
<div
|
26
|
+
<div class="toolbar_buttons">
|
27
27
|
<div class="button_with_label">
|
28
28
|
<%= form_tag alchemy.unlock_admin_page_path(@page, :redirect_to => @layoutpage ? alchemy.admin_layoutpages_path : alchemy.admin_pages_path), :id => 'unlock_page_form' do %>
|
29
|
-
<button class="icon_button" title="<%= _t(
|
29
|
+
<button class="icon_button" title="<%= _t(:explain_unlocking) %>">
|
30
30
|
<%= render_icon('close') %>
|
31
31
|
</button>
|
32
|
-
<label><%= _t(
|
32
|
+
<label><%= _t(:unlock_page) %></label>
|
33
33
|
<% end %>
|
34
34
|
</div>
|
35
35
|
<% unless @page.layoutpage? %>
|
@@ -47,18 +47,18 @@
|
|
47
47
|
render_icon('settings'),
|
48
48
|
alchemy.configure_admin_page_path(@page),
|
49
49
|
{
|
50
|
-
:title => _t(
|
50
|
+
:title => _t(:edit_page_properties),
|
51
51
|
:size => @page.layoutpage? ? '410x150' : '410x650'
|
52
52
|
},
|
53
53
|
:class => :icon_button,
|
54
|
-
:title => _t(
|
54
|
+
:title => _t(:edit_page_properties)
|
55
55
|
) %>
|
56
|
-
<label><%= _t(
|
56
|
+
<label><%= _t(:page_properties) %></label>
|
57
57
|
</div>
|
58
58
|
<% if configuration(:cache_pages) && !@page.layoutpage? %>
|
59
59
|
<div class="button_with_label">
|
60
60
|
<%= form_tag alchemy.publish_admin_page_path(@page), :id => 'publish_page_form' do %>
|
61
|
-
<button class="icon_button" title="<%= _t(
|
61
|
+
<button class="icon_button" title="<%= _t(:explain_publishing) %>">
|
62
62
|
<%= render_icon('publish') %>
|
63
63
|
</button>
|
64
64
|
<label><%= _t("Publish page") %></label>
|
@@ -70,7 +70,7 @@
|
|
70
70
|
<label><%= _t(:preview_size) %></label>
|
71
71
|
</div>
|
72
72
|
</div>
|
73
|
-
<div
|
73
|
+
<div class="toolbar_buttons right">
|
74
74
|
<div class="button_with_label" id="show_preview_window">
|
75
75
|
<%= link_to(render_icon(:preview_window), '#', {
|
76
76
|
:onclick => "Alchemy.openPreviewWindow()",
|
@@ -113,15 +113,11 @@
|
|
113
113
|
label: '<%= _t("New Element") %>',
|
114
114
|
iconClass: 'new_element',
|
115
115
|
onClick: function() {
|
116
|
-
Alchemy.openWindow(
|
117
|
-
'<%=
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
false,
|
122
|
-
true,
|
123
|
-
true
|
124
|
-
);
|
116
|
+
Alchemy.openWindow('<%= alchemy.new_admin_element_path(:page_id => @page.id) %>', {
|
117
|
+
title: '<%= _t("New Element") %>',
|
118
|
+
width: 320,
|
119
|
+
height: 120
|
120
|
+
});
|
125
121
|
}
|
126
122
|
},
|
127
123
|
{
|
@@ -130,15 +126,11 @@
|
|
130
126
|
iconClass: 'clipboard<%= clipboard_empty?("elements") ? "" : " full" %>',
|
131
127
|
buttonId: 'clipboard_button',
|
132
128
|
onClick: function() {
|
133
|
-
Alchemy.openWindow(
|
134
|
-
'<%=
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
false,
|
139
|
-
true,
|
140
|
-
true
|
141
|
-
);
|
129
|
+
Alchemy.openWindow('<%= alchemy.admin_clipboard_path(:remarkable_type => "elements") %>', {
|
130
|
+
title :'<%= _t("Clipboard") %>',
|
131
|
+
width: 380,
|
132
|
+
height: 270
|
133
|
+
});
|
142
134
|
}
|
143
135
|
},
|
144
136
|
{
|
@@ -147,13 +139,14 @@
|
|
147
139
|
iconClass: 'trash<%= trash_empty?("elements") ? "" : " full" %>',
|
148
140
|
buttonId: 'element_trash_button',
|
149
141
|
onClick: function() {
|
150
|
-
Alchemy.
|
142
|
+
Alchemy.TrashWindow.open(<%= @page.id %>, '<%= _t("Trash") %>');
|
151
143
|
}
|
152
144
|
}
|
153
145
|
]
|
154
146
|
}, function() {
|
147
|
+
Alchemy.ImageLoader('#element_area');
|
155
148
|
Alchemy.SortableElements(<%= @page.id %>, '<%= form_authenticity_token %>');
|
156
|
-
Alchemy.
|
149
|
+
Alchemy.ElementEditors.init();
|
157
150
|
Alchemy.SelectBox('.element_editor');
|
158
151
|
Alchemy.Tinymce.init(function() {
|
159
152
|
Alchemy.ElementDirtyObserver('#element_area');
|
@@ -192,7 +185,7 @@
|
|
192
185
|
});
|
193
186
|
|
194
187
|
$('#preview_size').bind('blur.selectBoxIt', function (e) {
|
195
|
-
$('#top_menu').css('z-index',
|
188
|
+
$('#top_menu').css('z-index', 30);
|
196
189
|
});
|
197
190
|
|
198
191
|
Alchemy.PreviewWindow.currentWidth = Alchemy.PreviewWindow.currentWindow.dialog('widget').width();
|