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,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<% content_for(:subnav_additions) do %>
|
2
|
+
<% unless @locked_pages.blank? %>
|
3
3
|
<label><%= _t('Active Pages') %> »</label>
|
4
|
-
|
4
|
+
<% @locked_pages.each do |page| %>
|
5
5
|
<div class="subnavi_tab wide" id="locked_page_<%= page.id %>">
|
6
6
|
<%= link_to alchemy.edit_admin_page_path(page) do %>
|
7
7
|
<span class="page_name" title="<%= page.name %>">
|
@@ -9,19 +9,19 @@
|
|
9
9
|
</span>
|
10
10
|
<% end %>
|
11
11
|
<%= form_tag(alchemy.unlock_admin_page_path(page), :remote => true) do %>
|
12
|
-
<button class="icon_button small" title="<%= _t(
|
12
|
+
<button class="icon_button small" title="<%= _t(:explain_unlocking) %>">
|
13
13
|
<%= render_icon('close small') %>
|
14
14
|
</button>
|
15
15
|
<% end %>
|
16
16
|
</div>
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
<% end %>
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
20
20
|
|
21
|
-
|
22
|
-
<div
|
21
|
+
<% content_for :toolbar do %>
|
22
|
+
<div class="toolbar_buttons">
|
23
23
|
<%= render :partial => 'alchemy/admin/partials/language_tree_select' %>
|
24
|
-
|
24
|
+
<% permitted_to?(:flush, :alchemy_admin_pages) do %>
|
25
25
|
<div class="button_with_label">
|
26
26
|
<%= link_to(
|
27
27
|
render_icon('flush'),
|
@@ -30,11 +30,11 @@
|
|
30
30
|
:method => :post,
|
31
31
|
:class => 'icon_button please_wait',
|
32
32
|
:title => _t('Flush page cache')
|
33
|
-
)
|
33
|
+
) %>
|
34
34
|
<label><%= _t('Flush page cache') %></label>
|
35
35
|
</div>
|
36
|
-
|
37
|
-
|
36
|
+
<% end %>
|
37
|
+
<% permitted_to?(:sort, :alchemy_admin_pages) do %>
|
38
38
|
<div class="button_with_label" id="page_sorting_button">
|
39
39
|
<%= link_to(
|
40
40
|
render_icon('sort'),
|
@@ -44,10 +44,10 @@
|
|
44
44
|
:remote => true,
|
45
45
|
:class => 'icon_button please_wait',
|
46
46
|
:title => _t('Sort pages')
|
47
|
-
)
|
47
|
+
) %>
|
48
48
|
<label><%= _t('Sort pages') %></label>
|
49
49
|
</div>
|
50
|
-
|
50
|
+
<% end %>
|
51
51
|
<div class="button_with_label" id="clipboard_button">
|
52
52
|
<%= link_to_overlay_window(
|
53
53
|
render_icon("clipboard#{clipboard_empty?('pages') ? '' : ' full'}"),
|
@@ -58,26 +58,37 @@
|
|
58
58
|
},
|
59
59
|
:class => 'icon_button',
|
60
60
|
:title => _t('Show clipboard')
|
61
|
-
)
|
61
|
+
) %>
|
62
62
|
<label><%= _t('Show clipboard') %></label>
|
63
63
|
</div>
|
64
64
|
</div>
|
65
|
-
|
65
|
+
<div class="js_filter_field_box">
|
66
|
+
<input name="filter" id="search_field" class="thin_border js_filter_field">
|
67
|
+
<%= render_icon :search %>
|
68
|
+
<%= link_to('', '#', {
|
69
|
+
class: "js_filter_field_clear",
|
70
|
+
title: _t(:click_to_show_all)
|
71
|
+
}) %>
|
72
|
+
<label><%= _t :search %></label>
|
73
|
+
</div>
|
74
|
+
<% end %>
|
66
75
|
|
67
76
|
<div id="archive_all">
|
68
|
-
|
77
|
+
<% if @page_root %>
|
69
78
|
|
70
79
|
<div id="sort_panel" style="display: none">
|
71
80
|
<div class="info">
|
72
81
|
<%= render_icon('info') %>
|
73
|
-
<%= _t(
|
82
|
+
<%= _t(:explain_sitemap_dragndrop_sorting) %>
|
74
83
|
</div>
|
75
84
|
<div class="buttons">
|
76
|
-
<%= link_to( _t(
|
85
|
+
<%= link_to( _t(:cancel), alchemy.admin_pages_path, :class => 'button' ) %>
|
77
86
|
<%= submit_tag( _t('save order'), :id => 'save_page_order', :class => 'button' ) %>
|
78
87
|
</div>
|
79
88
|
</div>
|
80
89
|
|
90
|
+
<h1 id="page_filter_result"></h1>
|
91
|
+
|
81
92
|
<h2 id="sitemap_heading">
|
82
93
|
<span class="page_name"><%= _t('Name') %></span>
|
83
94
|
<span class="page_infos"><%= _t('Status') %></span>
|
@@ -85,7 +96,7 @@
|
|
85
96
|
|
86
97
|
<%= render :partial => 'sitemap' %>
|
87
98
|
|
88
|
-
|
99
|
+
<% else %>
|
89
100
|
|
90
101
|
<%= render :partial => 'create_language_form' %>
|
91
102
|
<% content_for(:javascripts) do %>
|
@@ -96,7 +107,7 @@
|
|
96
107
|
}});
|
97
108
|
});
|
98
109
|
</script>
|
99
|
-
|
110
|
+
<% end %>
|
100
111
|
|
101
|
-
<% end
|
112
|
+
<% end %>
|
102
113
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
(function($) {
|
2
2
|
$('#sitemap').replaceWith('<%= escape_javascript(render(:partial => "sitemap")) -%>');
|
3
3
|
$('#sort_panel').show();
|
4
|
-
$('#sitemap_heading').css({'padding-top':
|
4
|
+
$('#sitemap_heading').css({'padding-top': 102});
|
5
5
|
Alchemy.PageSorter.init();
|
6
6
|
Alchemy.pleaseWaitOverlay(false);
|
7
7
|
})(jQuery);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
<div id="swf_upload_container" style="display: block">
|
2
2
|
<div id="spanButtonPlaceHolder">
|
3
3
|
<p>
|
4
|
-
<%= image_tag('alchemy/ajax_loader.gif', :style => 'width: 16px; height: 16px; top: 3px; position: relative') %>
|
5
4
|
<%= _t('Please wait. Flash® is loading...') %>
|
6
5
|
</p>
|
7
6
|
</div>
|
@@ -21,12 +20,12 @@
|
|
21
20
|
<h2 id="flash_upload_error_explanation" style="display: none">
|
22
21
|
<%= _t('Error with the Flash® Uploader!') %>
|
23
22
|
</h2>
|
24
|
-
<p><%= _t(
|
23
|
+
<p><%= _t(:use_alternative_uploader_instead) %></p>
|
25
24
|
<p>
|
26
25
|
<%= file_field_tag('Filedata') %>
|
27
26
|
</p>
|
28
27
|
<p>
|
29
|
-
<%= submit_tag _t(
|
28
|
+
<%= submit_tag _t(:upload), :class => 'button' %>
|
30
29
|
</p>
|
31
30
|
<p>
|
32
31
|
<small>
|
@@ -30,9 +30,9 @@
|
|
30
30
|
:remote => true,
|
31
31
|
:class => "search_field_clear",
|
32
32
|
:id => "search_field_clear",
|
33
|
-
:title => _t(
|
33
|
+
:title => _t(:click_to_show_all),
|
34
34
|
:style => (params[:query].nil? ? "display: none" : "display: block")
|
35
35
|
) %>
|
36
36
|
</div>
|
37
|
-
<%= submit_tag _t(
|
37
|
+
<%= submit_tag _t(:search), :name => nil, :class => 'button' %>
|
38
38
|
<% end %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
self
|
6
6
|
end -%>
|
7
7
|
<%- url ||= url_scope.url_for(:action => 'index') -%>
|
8
|
-
<%= form_tag(url, :method => :get) do %>
|
8
|
+
<%= form_tag(url, :method => :get, class: 'search_form') do %>
|
9
9
|
<div class="search_field">
|
10
10
|
<%= render_icon('search') %>
|
11
11
|
<%= text_field_tag("query", params['query'], :class => 'thin_border', :id => "search_input_field") %>
|
@@ -14,9 +14,9 @@
|
|
14
14
|
url,
|
15
15
|
:class => "search_field_clear",
|
16
16
|
:id => "search_field_clear",
|
17
|
-
:title => _t(
|
17
|
+
:title => _t(:click_to_show_all),
|
18
18
|
:style => (params[:query].nil? ? "display: none" : "display: block")
|
19
19
|
) %>
|
20
20
|
</div>
|
21
|
-
<label><%= _t(
|
21
|
+
<label><%= _t(:search) %></label>
|
22
22
|
<% end %>
|
@@ -16,8 +16,8 @@
|
|
16
16
|
<%= render 'alchemy/admin/partials/flash_upload' %>
|
17
17
|
|
18
18
|
<div class="browse">
|
19
|
-
<%= label_tag :multiple, _t(
|
20
|
-
<input name="Filedata" id="multiple" type="file" multiple value="<%= _t(
|
19
|
+
<%= label_tag :multiple, _t(:browse), :style => 'display:none;' %>
|
20
|
+
<input name="Filedata" id="multiple" type="file" multiple value="<%= _t(:browse) %>">
|
21
21
|
<a href="#" class="button no-spinner" id="cancelHTML5Queue" style="display: none">
|
22
22
|
<%= _t("swfupload.cancel_uploads") %>
|
23
23
|
</a>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<div id="library_sidebar">
|
2
2
|
<%= render :partial => 'filter_bar' %>
|
3
|
-
<div id="tag_list">
|
3
|
+
<div id="tag_list" class="with_filter_bar<%= params[:tagged_with].present? ? ' filtered' : '' %>">
|
4
4
|
<%= render :partial => 'tag_list' %>
|
5
5
|
</div>
|
6
6
|
</div>
|
7
7
|
<%= form_tag delete_multiple_admin_pictures_path, :method => :delete do %>
|
8
8
|
<div class="selected_item_tools">
|
9
|
-
<h2><%= _t(
|
9
|
+
<h2><%= _t(:edit_selected_pictures) %></h2>
|
10
10
|
<%= link_to(
|
11
11
|
render_icon('edit') + _t("Edit"),
|
12
12
|
edit_multiple_admin_pictures_path,
|
@@ -16,12 +16,12 @@
|
|
16
16
|
:style => 'float: none'
|
17
17
|
) %>
|
18
18
|
<%= button_tag render_icon('destroy') + _t("Delete"), 'data-alchemy-confirm' => {
|
19
|
-
:title => _t(
|
20
|
-
:message => _t(
|
19
|
+
:title => _t(:please_confirm),
|
20
|
+
:message => _t(:confirm_to_delete_images_from_server),
|
21
21
|
:okLabel => _t("Yes"),
|
22
22
|
:cancelLabel => _t("No")
|
23
23
|
}.to_json, :class => 'button with_icon' %>
|
24
|
-
<%= _t(
|
24
|
+
<%= _t(:or) %>
|
25
25
|
<%= link_to(
|
26
26
|
render_icon('delete-small') + _t("Clear selection"),
|
27
27
|
admin_pictures_path(
|
@@ -39,12 +39,12 @@
|
|
39
39
|
<% if @pictures.blank? and @recent_pictures.blank? and params[:query].nil? %>
|
40
40
|
<div class="info">
|
41
41
|
<%= render_icon('info') %>
|
42
|
-
<%= _t(
|
42
|
+
<%= _t(:no_images_in_archive) %>
|
43
43
|
</div>
|
44
44
|
<% elsif @pictures.blank? and @recent_pictures.blank? %>
|
45
45
|
<div class="info">
|
46
46
|
<%= render_icon('info') %>
|
47
|
-
<%= _t(
|
47
|
+
<%= _t(:no_search_results) %>
|
48
48
|
</div>
|
49
49
|
<% else %>
|
50
50
|
<%= render :partial => 'picture', :collection => @pictures %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div id="overlay_toolbar">
|
3
3
|
<%= render 'filter_and_size_bar' %>
|
4
4
|
</div>
|
5
|
-
<div id="assign_image_list" class="with_padding">
|
5
|
+
<div id="assign_image_list" class="with_padding<%= params[:tagged_with].present? ? ' filtered' : '' %>">
|
6
6
|
<div id="library_sidebar">
|
7
7
|
<%= render 'filter_bar' %>
|
8
8
|
<div id="tag_list">
|
@@ -11,7 +11,7 @@
|
|
11
11
|
:options => @options
|
12
12
|
}),
|
13
13
|
:remote => true,
|
14
|
-
:title => _t(
|
14
|
+
:title => _t(:small_thumbnails),
|
15
15
|
:class => "icon_button"
|
16
16
|
) %>
|
17
17
|
<%= link_to(
|
@@ -25,7 +25,7 @@
|
|
25
25
|
:options => @options
|
26
26
|
}),
|
27
27
|
:remote => true,
|
28
|
-
:title => _t(
|
28
|
+
:title => _t(:medium_thumbnails),
|
29
29
|
:class => "icon_button"
|
30
30
|
) %>
|
31
31
|
<%= link_to(
|
@@ -39,7 +39,7 @@
|
|
39
39
|
:options => @options
|
40
40
|
}),
|
41
41
|
:remote => true,
|
42
|
-
:title => _t(
|
42
|
+
:title => _t(:big_thumbnails),
|
43
43
|
:class => "icon_button"
|
44
44
|
) %>
|
45
45
|
<label><%= _t('Image size') %></label>
|
@@ -59,14 +59,14 @@
|
|
59
59
|
),
|
60
60
|
{
|
61
61
|
:size => "540x550",
|
62
|
-
:title => _t(
|
62
|
+
:title => _t(:upload_image)
|
63
63
|
},
|
64
64
|
{
|
65
65
|
:class => 'icon_button',
|
66
|
-
:title => _t(
|
66
|
+
:title => _t(:upload_image)
|
67
67
|
}
|
68
68
|
) %>
|
69
|
-
<label><%= _t(
|
69
|
+
<label><%= _t(:upload_image) %></label>
|
70
70
|
</div>
|
71
71
|
<%= render :partial => 'alchemy/admin/partials/remote_search_form' %>
|
72
72
|
</div>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<% params_to_keep = [:size, :tagged_with, :query, :element_id, :content_id, :_] %>
|
1
|
+
<% params_to_keep = [:size, :tagged_with, :query, :element_id, :options, :content_id, :_] %>
|
2
2
|
|
3
3
|
<div id="filter_bar">
|
4
4
|
<h2><%= _t('Filter') %></h2>
|
5
5
|
<%= select_tag(
|
6
6
|
'picture_filter',
|
7
7
|
options_for_select([
|
8
|
-
[_t(
|
9
|
-
[_t(
|
10
|
-
[_t(
|
8
|
+
[_t(:all_pictures), ''],
|
9
|
+
[_t(:last_upload_only), 'last_upload'],
|
10
|
+
[_t(:recently_uploaded_only), 'recent']
|
11
11
|
], params[:filter]),
|
12
12
|
:data => { :remote => !!request.xhr? },
|
13
13
|
:class => 'alchemy_selectbox'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% if @pictures.empty? %>
|
2
2
|
<div class="info">
|
3
3
|
<%= render_icon('info') %>
|
4
|
-
<%= _t(
|
4
|
+
<%= _t(:no_images_in_archive) %>
|
5
5
|
</div>
|
6
6
|
<% else %>
|
7
7
|
<%= render :partial => "picture_to_assign", :collection => @pictures, :locals => {:options => @options, :size => @size} %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<span class="picture_tool delete">
|
7
7
|
<%= link_to_confirmation_window(
|
8
8
|
"",
|
9
|
-
_t(
|
9
|
+
_t(:confirm_to_delete_image_from_server),
|
10
10
|
alchemy.admin_picture_path(
|
11
11
|
:id => picture,
|
12
12
|
:query => params[:query],
|
@@ -65,19 +65,14 @@
|
|
65
65
|
) -%>
|
66
66
|
</span>
|
67
67
|
<% end %>
|
68
|
-
<div class="image_spinner spinner">
|
69
|
-
<%= image_tag("alchemy/image_loader.gif", :alt => '') %>
|
70
|
-
</div>
|
71
68
|
<%= link_to(
|
72
69
|
image_tag(
|
73
70
|
alchemy.thumbnail_path(:id => picture, :size => @size, :sh => picture.security_token(:size => @size)),
|
74
71
|
:alt => picture.name,
|
75
|
-
:title => _t(
|
76
|
-
:onload => "Alchemy.fadeImage(this, '#picture_#{picture.id} .image_spinner');",
|
77
|
-
:style => "display: none;"
|
72
|
+
:title => _t(:zoom_image)
|
78
73
|
),
|
79
74
|
'#',
|
80
|
-
:onclick => "Alchemy.zoomImage('#{
|
75
|
+
:onclick => "Alchemy.zoomImage('#{admin_picture_path(:id => picture.id, :sh => picture.security_token)}', '#{picture.name}', #{picture.image_file_width || 320}, #{picture.image_file_height || 240})",
|
81
76
|
:class => 'thumbnail_background',
|
82
77
|
:id => 'show_in_window'
|
83
78
|
) %>
|
@@ -1,14 +1,11 @@
|
|
1
1
|
<div class="picture_thumbnail assign_image_list_detail <%= size.blank? ? 'medium' : size %>" name="<%= picture_to_assign.name %>" id="picture_to_assign_<%= picture_to_assign.id %>">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<div class="image_spinner spinner">
|
10
|
-
<%= image_tag("alchemy/image_loader.gif", :alt => '') %>
|
11
|
-
</div>
|
2
|
+
<% unless params[:image_assign_url].blank? %>
|
3
|
+
<% action_url = params[:image_assign_url] + "?picture_id=#{picture_to_assign.id}" %>
|
4
|
+
<% action_method = params[:image_assign_method] %>
|
5
|
+
<% else %>
|
6
|
+
<% action_url = create_or_assign_url(picture_to_assign, @options) %>
|
7
|
+
<% action_method = @content.blank? ? 'post' : 'put' %>
|
8
|
+
<% end %>
|
12
9
|
<%= link_to(
|
13
10
|
image_tag(
|
14
11
|
alchemy.thumbnail_path(
|
@@ -16,15 +13,13 @@
|
|
16
13
|
:size => size,
|
17
14
|
:sh => picture_to_assign.security_token(:size => size)
|
18
15
|
),
|
19
|
-
:alt => picture_to_assign.name
|
20
|
-
:onload => "Alchemy.fadeImage(this, '#picture_to_assign_#{picture_to_assign.id} .image_spinner');",
|
21
|
-
:style => "display: none;"
|
16
|
+
:alt => picture_to_assign.name
|
22
17
|
),
|
23
18
|
action_url,
|
24
19
|
:remote => true,
|
25
20
|
:onclick => '$(self).attr("href", "#").off("click")',
|
26
21
|
:method => action_method,
|
27
|
-
:title => _t(
|
22
|
+
:title => _t(:assign_image),
|
28
23
|
:class => 'thumbnail_background'
|
29
24
|
) %>
|
30
25
|
<div class="picture_name" title="<%= picture_to_assign.name %>">
|
@@ -1,29 +1,31 @@
|
|
1
1
|
<% p = params.dup %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<%
|
7
|
-
|
8
|
-
<%=
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
2
|
+
<% if Alchemy::Picture.tag_counts.any? %>
|
3
|
+
<h2><%= _t("Filter by tag") %></h2>
|
4
|
+
<%= js_filter_field '#tag_list li' %>
|
5
|
+
<ul>
|
6
|
+
<% Alchemy::Picture.tag_counts.each do |t| %>
|
7
|
+
<% picture_tags = filtered_by_tag?(t) ? tag_filter(remove: t) : tag_filter(add: t) %>
|
8
|
+
<%= content_tag 'li', name: t.name, class: p[:tagged_with].try(:split, ',').try(:include?, t.name) ? 'active' : nil do %>
|
9
|
+
<%= link_to(
|
10
|
+
"#{t.name} (#{t.count})",
|
11
|
+
url_for(
|
12
|
+
p.delete_if { |k, v| k == "page" }.merge(
|
13
|
+
action: 'index',
|
14
|
+
tagged_with: picture_tags
|
15
|
+
)
|
16
|
+
),
|
17
|
+
remote: request.xhr?,
|
18
|
+
class: 'please_wait'
|
19
|
+
) %>
|
20
|
+
<% end %>
|
19
21
|
<% end %>
|
22
|
+
</ul>
|
23
|
+
<% if p[:tagged_with].present? %>
|
24
|
+
<%= link_to(
|
25
|
+
render_icon('delete-small') + _t('Remove tag filter'),
|
26
|
+
url_for(p.delete_if { |k, v| k == "tagged_with" }.merge(action: 'index')),
|
27
|
+
remote: request.xhr?,
|
28
|
+
class: 'button small with_icon please_wait'
|
29
|
+
) %>
|
20
30
|
<% end %>
|
21
|
-
</ul>
|
22
|
-
<% if p[:tagged_with].present? %>
|
23
|
-
<%= link_to(
|
24
|
-
render_icon('delete-small') + _t('Remove tag filter'),
|
25
|
-
url_for(p.delete_if { |k, v| k == "tagged_with" }.merge(:action => :index)),
|
26
|
-
:remote => request.xhr?,
|
27
|
-
:class => 'button small with_icon please_wait'
|
28
|
-
) %>
|
29
31
|
<% end %>
|