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
@@ -27,7 +27,7 @@ a {
|
|
27
27
|
}
|
28
28
|
|
29
29
|
&:focus {
|
30
|
-
@
|
30
|
+
@extend %white-focus-style;
|
31
31
|
color: black;
|
32
32
|
}
|
33
33
|
}
|
@@ -67,7 +67,7 @@ input.invalid {
|
|
67
67
|
}
|
68
68
|
|
69
69
|
textarea {
|
70
|
-
@
|
70
|
+
@extend %default-input-style;
|
71
71
|
margin: 0;
|
72
72
|
resize: none;
|
73
73
|
outline: none;
|
@@ -94,7 +94,7 @@ input.checkbox {
|
|
94
94
|
/* Buttons */
|
95
95
|
|
96
96
|
#insert, #cancel, input.button, .updateButton {
|
97
|
-
@
|
97
|
+
@extend %button-defaults;
|
98
98
|
}
|
99
99
|
|
100
100
|
/* Browse */
|
@@ -188,7 +188,6 @@ td.charmap, #charmap a {
|
|
188
188
|
|
189
189
|
#codeN {
|
190
190
|
font-size: 10px;
|
191
|
-
font-family: "Lucida Grande", Arial, sans-serif;
|
192
191
|
text-align: center
|
193
192
|
}
|
194
193
|
|
@@ -216,7 +215,7 @@ td.charmap, #charmap a {
|
|
216
215
|
|
217
216
|
.tabs {
|
218
217
|
width: 100%;
|
219
|
-
height:
|
218
|
+
height: 27px;
|
220
219
|
line-height: normal;
|
221
220
|
}
|
222
221
|
|
@@ -228,14 +227,14 @@ td.charmap, #charmap a {
|
|
228
227
|
|
229
228
|
.tabs li {
|
230
229
|
float: left;
|
231
|
-
background: url('shading.png') repeat-x 0 0;
|
232
230
|
margin: 0 2px 0 0;
|
233
|
-
padding:
|
231
|
+
padding: 4px 12px;
|
234
232
|
line-height: 17px;
|
235
233
|
height: 18px;
|
236
234
|
display: block;
|
237
235
|
border: 1px solid #9a9a9a;
|
238
236
|
border-bottom-style: none;
|
237
|
+
@extend .top-rounded-border;
|
239
238
|
}
|
240
239
|
|
241
240
|
.tabs li.current {
|
@@ -247,18 +246,15 @@ td.charmap, #charmap a {
|
|
247
246
|
.tabs span {
|
248
247
|
float: left;
|
249
248
|
display: block;
|
250
|
-
|
251
|
-
padding: 0px 10px 0 0;
|
249
|
+
padding: 0;
|
252
250
|
}
|
253
251
|
|
254
252
|
.tabs .current span {
|
255
|
-
|
253
|
+
|
256
254
|
}
|
257
255
|
|
258
256
|
.tabs a {
|
259
257
|
text-decoration: none;
|
260
|
-
font-family: "Lucida Grande", Arial, sans-serif;
|
261
|
-
font-size: 10px;
|
262
258
|
}
|
263
259
|
|
264
260
|
.tabs a:link, .tabs a:visited, .tabs a:hover {
|
@@ -274,11 +270,11 @@ td.charmap, #charmap a {
|
|
274
270
|
.panel_wrapper div.current {
|
275
271
|
display: block;
|
276
272
|
width: 100%;
|
277
|
-
height:
|
273
|
+
height: 287px;
|
278
274
|
overflow: visible;
|
279
275
|
}
|
280
276
|
|
281
|
-
div#general_panel { height:
|
277
|
+
div#general_panel { height: 287px }
|
282
278
|
|
283
279
|
div#advanced_panel { height: 300px }
|
284
280
|
|
@@ -324,7 +320,7 @@ h3 {
|
|
324
320
|
|
325
321
|
.title {
|
326
322
|
font-size: 12px;
|
327
|
-
font-weight:
|
323
|
+
font-weight: normal;
|
328
324
|
color: $text-color;
|
329
325
|
}
|
330
326
|
|
@@ -413,6 +409,12 @@ h3 {
|
|
413
409
|
}
|
414
410
|
|
415
411
|
#iframecontainer iframe#iframe {
|
416
|
-
@
|
412
|
+
@extend %default-input-style;
|
417
413
|
padding: 0;
|
418
414
|
}
|
415
|
+
|
416
|
+
#htmlSource {
|
417
|
+
margin-top: 1em;
|
418
|
+
height: 496px !important;
|
419
|
+
margin-bottom: 4px;
|
420
|
+
}
|
@@ -2,25 +2,18 @@
|
|
2
2
|
z-index: 10;
|
3
3
|
padding: 4px;
|
4
4
|
height: 44px;
|
5
|
-
|
5
|
+
@extend %gradiated-toolbar;
|
6
6
|
margin-right: 0px;
|
7
7
|
border: $default-border;
|
8
8
|
border-top-style: none;
|
9
9
|
border-right-style: none;
|
10
|
-
@
|
10
|
+
@extend .bottom-left-rounded-border;
|
11
11
|
position: relative;
|
12
12
|
margin-left: 5px;
|
13
13
|
|
14
|
-
form {
|
15
|
-
margin: 0 8px;
|
16
|
-
float: right;
|
17
|
-
text-align: center;
|
18
|
-
}
|
19
|
-
|
20
14
|
div.button_with_label {
|
21
15
|
|
22
16
|
form {
|
23
|
-
float: none;
|
24
17
|
margin: 0;
|
25
18
|
@include inline-block;
|
26
19
|
line-height: 5px;
|
@@ -39,16 +32,75 @@
|
|
39
32
|
padding: 0;
|
40
33
|
}
|
41
34
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
border-
|
35
|
+
a.button {
|
36
|
+
width: 25px;
|
37
|
+
height: 21px;
|
38
|
+
text-decoration: none;
|
39
|
+
float: right;
|
40
|
+
border-width: 0;
|
41
|
+
border-style: none;
|
42
|
+
font-size: 0;
|
43
|
+
padding: 0;
|
44
|
+
background-repeat: no-repeat;
|
45
|
+
background-position: 0 0;
|
46
|
+
|
47
|
+
&:active {
|
48
|
+
text-decoration: none;
|
49
|
+
background-position: 0 -21px;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.js_filter_field {
|
54
|
+
@include border-radius(15px);
|
55
|
+
}
|
56
|
+
|
57
|
+
.js_filter_field_box {
|
48
58
|
margin-right: 2*$default-margin;
|
49
|
-
|
59
|
+
|
60
|
+
label {
|
61
|
+
margin: 0;
|
62
|
+
}
|
50
63
|
}
|
51
64
|
|
65
|
+
.search_form {
|
66
|
+
position: absolute;
|
67
|
+
top: 4px;
|
68
|
+
right: 8px;
|
69
|
+
text-align: center;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.toolbar_buttons {
|
74
|
+
margin-right: 8px;
|
75
|
+
white-space: nowrap;
|
76
|
+
|
77
|
+
&.right {
|
78
|
+
position: absolute;
|
79
|
+
right: 8px;
|
80
|
+
top: 4px;
|
81
|
+
margin-left: 8px;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.toolbar_spacer {
|
86
|
+
@include inline-block;
|
87
|
+
width: 1px;
|
88
|
+
height: 37px;
|
89
|
+
border-right-style: dotted;
|
90
|
+
border-right-width: 1px;
|
91
|
+
margin-right: 2*$default-margin;
|
92
|
+
margin-left: $default-margin;
|
93
|
+
}
|
94
|
+
|
95
|
+
#overlay_toolbar {
|
96
|
+
@extend %gradiated-toolbar;
|
97
|
+
border: $default-border;
|
98
|
+
height: 44px;
|
99
|
+
border-top-style: none;
|
100
|
+
border-left-style: none;
|
101
|
+
border-right-style: none;
|
102
|
+
padding: $default-padding;
|
103
|
+
|
52
104
|
a.button {
|
53
105
|
width: 25px;
|
54
106
|
height: 21px;
|
@@ -66,14 +118,22 @@
|
|
66
118
|
background-position: 0 -21px;
|
67
119
|
}
|
68
120
|
}
|
69
|
-
}
|
70
121
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
122
|
+
.search_field {
|
123
|
+
width: 225px;
|
124
|
+
}
|
125
|
+
|
126
|
+
form {
|
127
|
+
float: right;
|
128
|
+
width: 310px;
|
129
|
+
margin-top: 2px;
|
130
|
+
padding: 0 !important;
|
131
|
+
margin-right: 0;
|
75
132
|
|
76
|
-
|
77
|
-
|
78
|
-
|
133
|
+
.button {
|
134
|
+
position: absolute;
|
135
|
+
top: 2px;
|
136
|
+
right: 4px;
|
137
|
+
}
|
138
|
+
}
|
79
139
|
}
|
@@ -14,7 +14,7 @@ a#uploadswitcher, a.underline {
|
|
14
14
|
position: relative;
|
15
15
|
margin-bottom: 8px;
|
16
16
|
border: 1px solid #9e9e9e;
|
17
|
-
@
|
17
|
+
@extend .rounded-border;
|
18
18
|
}
|
19
19
|
|
20
20
|
#uploadProgressContainer .progressName,
|
@@ -31,34 +31,39 @@ a#uploadswitcher, a.underline {
|
|
31
31
|
}
|
32
32
|
|
33
33
|
#uploadProgressContainer .progressBarContainer {
|
34
|
-
background: #F9F9F9
|
34
|
+
background-color: #F9F9F9;
|
35
|
+
@include background-image(linear-gradient(top, darken($medium-gray, 10) 5%, $light-gray 35%, lighten($light-gray, 10) 90%));
|
35
36
|
border: 1px solid #9E9E9E;
|
36
|
-
@
|
37
|
+
@extend .rounded-border;
|
37
38
|
height: 16px;
|
38
39
|
overflow: hidden;
|
39
40
|
width: 100%;
|
40
41
|
}
|
41
42
|
|
42
43
|
#uploadProgressContainer .progressBarInProgress {
|
43
|
-
background: #77AAD5
|
44
|
+
background-color: #77AAD5;
|
45
|
+
@extend %progressbar;
|
44
46
|
height: 16px;
|
45
47
|
width: 0;
|
46
48
|
}
|
47
49
|
|
48
50
|
#uploadProgressContainer .progressBarComplete {
|
49
|
-
background: #00D827
|
51
|
+
background-color: #00D827;
|
52
|
+
@extend %progressbar;
|
50
53
|
height: 16px;
|
51
54
|
width: 0;
|
52
55
|
}
|
53
56
|
|
54
57
|
#uploadProgressContainer .progressBarError {
|
55
|
-
background: #F00
|
58
|
+
background-color: #F00;
|
59
|
+
@extend %progressbar;
|
56
60
|
height: 16px;
|
57
61
|
width: 0;
|
58
62
|
}
|
59
63
|
|
60
64
|
#uploadProgressContainer .progressBarCanceled {
|
61
|
-
background: #E4E4E4
|
65
|
+
background-color: #E4E4E4;
|
66
|
+
@extend %progressbar;
|
62
67
|
height: 16px;
|
63
68
|
width: 0;
|
64
69
|
}
|
@@ -66,7 +71,7 @@ a#uploadswitcher, a.underline {
|
|
66
71
|
#uploadProgressContainer .progressCancel {
|
67
72
|
background: #f1f1f1 url('icons.png') no-repeat -1px -72px;
|
68
73
|
border: 1px solid #9e9e9e;
|
69
|
-
@
|
74
|
+
@extend .rounded-border;
|
70
75
|
width: 15px;
|
71
76
|
height: 16px;
|
72
77
|
position: absolute;
|
@@ -92,7 +97,7 @@ object.swfupload {
|
|
92
97
|
#dropbox {
|
93
98
|
background: $medium-gray;
|
94
99
|
border: $default-border;
|
95
|
-
@
|
100
|
+
@extend .rounded-border;
|
96
101
|
padding: $default-padding;
|
97
102
|
margin-bottom: 2*$default-padding;
|
98
103
|
text-align: center;
|
@@ -26,7 +26,7 @@
|
|
26
26
|
position: absolute;
|
27
27
|
direction: ltr;
|
28
28
|
border: $default-border;
|
29
|
-
@
|
29
|
+
@extend .rounded-border;
|
30
30
|
}
|
31
31
|
|
32
32
|
.alchemy .mceWrapper {
|
@@ -199,12 +199,13 @@ a.mceMove {
|
|
199
199
|
}
|
200
200
|
|
201
201
|
.alchemy .mceClose {
|
202
|
-
|
203
|
-
background: image-url("alchemy/ui-icons_666666_256x240.png") -96px -128px;
|
202
|
+
@extend .icon-cancel;
|
204
203
|
width: 16px;
|
205
204
|
height: 16px;
|
206
|
-
top:
|
207
|
-
|
205
|
+
top: 7px;
|
206
|
+
right: 8px;
|
207
|
+
text-align: center;
|
208
|
+
&:before { font-size: 16px }
|
208
209
|
}
|
209
210
|
|
210
211
|
.alchemy .mceMin {
|
@@ -217,8 +218,9 @@ a.mceMove {
|
|
217
218
|
right: 28px;
|
218
219
|
width: 16px;
|
219
220
|
height: 16px;
|
220
|
-
|
221
|
+
@extend .icon-exit-fullscreen;
|
221
222
|
top: 6px;
|
223
|
+
padding-top: 3px;
|
222
224
|
}
|
223
225
|
|
224
226
|
.alchemy .mceMax {
|
@@ -226,14 +228,16 @@ a.mceMove {
|
|
226
228
|
right: 28px;
|
227
229
|
width: 16px;
|
228
230
|
height: 16px;
|
229
|
-
|
231
|
+
@extend .icon-fullscreen;
|
230
232
|
top: 6px;
|
233
|
+
padding-top: 3px;
|
231
234
|
}
|
232
235
|
|
233
236
|
.alchemy .mceClose, .alchemy .mceMin, .alchemy .mceMed, .alchemy .mceMax {
|
237
|
+
|
234
238
|
&:hover {
|
235
239
|
border: 1px solid $button-hover-border-color;
|
236
|
-
@
|
240
|
+
@extend .rounded-border;
|
237
241
|
background-color: $button-hover-bg-color;
|
238
242
|
color: $text-color;
|
239
243
|
font-weight: normal;
|
@@ -242,22 +246,15 @@ a.mceMove {
|
|
242
246
|
|
243
247
|
.alchemy .mceClose {
|
244
248
|
&:hover {
|
245
|
-
|
246
|
-
right:
|
249
|
+
top: 6px;
|
250
|
+
right: 7px;
|
247
251
|
}
|
248
252
|
}
|
249
253
|
|
250
|
-
.alchemy .mceMax {
|
251
|
-
&:hover {
|
252
|
-
background-position: -33px -81px;
|
253
|
-
right: 26px;
|
254
|
-
}
|
255
|
-
}
|
256
|
-
|
257
|
-
.alchemy .mceMed {
|
254
|
+
.alchemy .mceMax, .alchemy .mceMed {
|
258
255
|
&:hover {
|
259
|
-
|
260
|
-
right:
|
256
|
+
top: 5px;
|
257
|
+
right: 27px;
|
261
258
|
}
|
262
259
|
}
|
263
260
|
|
@@ -370,7 +367,7 @@ a.mceMove {
|
|
370
367
|
/* Alert/Confirm */
|
371
368
|
|
372
369
|
.alchemy .mceButton {
|
373
|
-
@
|
370
|
+
@extend %button-defaults;
|
374
371
|
bottom: 10px;
|
375
372
|
// width: 80px;
|
376
373
|
// height: 25px;
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Alchemy
|
2
2
|
module Admin
|
3
|
-
class AttachmentsController <
|
3
|
+
class AttachmentsController < ResourcesController
|
4
|
+
helper 'alchemy/admin/tags'
|
4
5
|
|
5
6
|
protect_from_forgery :except => [:create]
|
6
7
|
|
7
8
|
def index
|
9
|
+
@attachments = Attachment.scoped
|
10
|
+
@attachments = @attachments.tagged_with(params[:tagged_with]) if params[:tagged_with].present?
|
11
|
+
@attachments = @attachments.find_paginated(params, 15, sort_order)
|
8
12
|
if in_overlay?
|
9
13
|
archive_overlay
|
10
14
|
else
|
11
|
-
|
15
|
+
# render index.html.erb
|
12
16
|
end
|
13
17
|
end
|
14
18
|
|
@@ -24,17 +28,14 @@ module Alchemy
|
|
24
28
|
end
|
25
29
|
|
26
30
|
def create
|
27
|
-
@attachment = Attachment.create(
|
28
|
-
:uploaded_data => params[:Filedata],
|
29
|
-
:name => params[:Filedata].original_filename
|
30
|
-
)
|
31
|
+
@attachment = Attachment.create!(:file => params[:Filedata])
|
31
32
|
if in_overlay?
|
32
33
|
@while_assigning = true
|
33
34
|
@content = Content.find(params[:content_id], :select => 'id') if !params[:content_id].blank?
|
34
35
|
@swap = params[:swap]
|
35
36
|
@options = hashified_options
|
36
37
|
end
|
37
|
-
@attachments = Attachment.find_paginated(params, per_page_value_for_screen_size)
|
38
|
+
@attachments = Attachment.find_paginated(params, per_page_value_for_screen_size, sort_order)
|
38
39
|
@message = _t('File %{name} uploaded succesfully', :name => @attachment.name)
|
39
40
|
# Are we using the Flash uploader? Or the plain html file uploader?
|
40
41
|
if params[Rails.application.config.session_options[:key]].blank?
|
@@ -45,18 +46,18 @@ module Alchemy
|
|
45
46
|
|
46
47
|
def edit
|
47
48
|
@attachment = Attachment.find(params[:id])
|
48
|
-
render :
|
49
|
+
render layout: !request.xhr?
|
49
50
|
end
|
50
51
|
|
51
52
|
def update
|
52
53
|
@attachment = Attachment.find(params[:id])
|
53
54
|
oldname = @attachment.name
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
@attachment.update_attributes(params[:attachment])
|
56
|
+
render_errors_or_redirect(
|
57
|
+
@attachment,
|
58
|
+
admin_attachments_path(:page => params[:page], :query => params[:query], :per_page => params[:per_page]),
|
59
|
+
_t("File successfully updated")
|
60
|
+
)
|
60
61
|
end
|
61
62
|
|
62
63
|
def destroy
|
@@ -68,23 +69,15 @@ module Alchemy
|
|
68
69
|
|
69
70
|
def show
|
70
71
|
@attachment = Attachment.find(params[:id])
|
71
|
-
|
72
|
-
@attachment.public_filename,
|
73
|
-
{
|
74
|
-
:name => @attachment.filename,
|
75
|
-
:type => @attachment.content_type,
|
76
|
-
:disposition => 'inline'
|
77
|
-
}
|
78
|
-
)
|
72
|
+
render layout: !request.xhr?
|
79
73
|
end
|
80
74
|
|
81
75
|
def download
|
82
76
|
@attachment = Attachment.find(params[:id])
|
83
|
-
|
84
|
-
@attachment.
|
85
|
-
:
|
86
|
-
:type => @attachment.
|
87
|
-
:disposition => 'attachment'
|
77
|
+
send_data(
|
78
|
+
@attachment.file.data, {
|
79
|
+
:filename => @attachment.file_name,
|
80
|
+
:type => @attachment.file_mime_type
|
88
81
|
}
|
89
82
|
)
|
90
83
|
end
|
@@ -92,22 +85,19 @@ module Alchemy
|
|
92
85
|
private
|
93
86
|
|
94
87
|
def in_overlay?
|
95
|
-
|
88
|
+
params[:content_id].present?
|
96
89
|
end
|
97
90
|
|
98
91
|
def archive_overlay
|
99
|
-
@content = Content.find(params[:content_id])
|
100
|
-
@options =
|
101
|
-
if !params[:only].blank?
|
102
|
-
condition = "filename LIKE '%.#{params[:only].join("' OR filename LIKE '%.")}'"
|
103
|
-
elsif !params[:except].blank?
|
104
|
-
condition = "filename NOT LIKE '%.#{params[:except].join("' OR filename NOT LIKE '%.")}'"
|
105
|
-
else
|
106
|
-
condition = ""
|
107
|
-
end
|
108
|
-
@attachments = Attachment.where(condition).order(:name)
|
92
|
+
@content = Content.find(params[:content_id], select: 'id')
|
93
|
+
@options = hashified_options
|
109
94
|
respond_to do |format|
|
110
|
-
format.html {
|
95
|
+
format.html {
|
96
|
+
render partial: 'archive_overlay'
|
97
|
+
}
|
98
|
+
format.js {
|
99
|
+
render action: 'archive_overlay'
|
100
|
+
}
|
111
101
|
end
|
112
102
|
end
|
113
103
|
|