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,37 +1,42 @@
|
|
1
1
|
<% content_for :toolbar do %>
|
2
|
-
<div
|
2
|
+
<div class="toolbar_buttons">
|
3
3
|
<div class="button_with_label">
|
4
4
|
<%= link_to_overlay_window(
|
5
|
-
content_tag('span', '', :
|
5
|
+
content_tag('span', '', class: 'icon tag_add'),
|
6
6
|
new_admin_tag_path,
|
7
7
|
{
|
8
|
-
:
|
9
|
-
:
|
8
|
+
title: _t('New Tag'),
|
9
|
+
size: '310x210'
|
10
10
|
},
|
11
|
-
:
|
12
|
-
:
|
11
|
+
title: _t('New Tag'),
|
12
|
+
class: 'icon_button',
|
13
|
+
'data-alchemy-hotkey' => 'alt-n'
|
13
14
|
) %><br />
|
14
15
|
<label><%= _t('New Tag') %></label>
|
15
16
|
</div>
|
16
17
|
</div>
|
17
|
-
<%= render :
|
18
|
+
<%= render partial: 'alchemy/admin/partials/search_form' %>
|
18
19
|
<% end %>
|
19
20
|
|
20
21
|
<div id="archive_all">
|
22
|
+
<h1>
|
23
|
+
<%= @tags.total_count %>
|
24
|
+
<%= ActsAsTaggableOn::Tag.model_name.human(count: @tags.total_count) %>
|
25
|
+
</h1>
|
21
26
|
<% if @tags.any? %>
|
22
27
|
|
23
28
|
<table class="list" id="tag_list">
|
24
29
|
<tr class="legend">
|
25
30
|
<th class="icon"></th>
|
26
|
-
<th class="name"><%= ActsAsTaggableOn::Tag.human_attribute_name(:name) %></th>
|
31
|
+
<th class="name"><%= sortable_column(ActsAsTaggableOn::Tag.human_attribute_name(:name), column: :name) %></th>
|
27
32
|
<th class="count"><%= ActsAsTaggableOn::Tag.human_attribute_name(:taggings_types) %></th>
|
28
|
-
<th class="count"><%= ActsAsTaggableOn::Tag.human_attribute_name(:taggings_count) %></th>
|
33
|
+
<th class="count"><%= sortable_column(ActsAsTaggableOn::Tag.human_attribute_name(:taggings_count), column: :taggings_count) %></th>
|
29
34
|
<th class="tools"></th>
|
30
35
|
</tr>
|
31
|
-
<%= render :
|
36
|
+
<%= render partial: 'tag', collection: @tags %>
|
32
37
|
</table>
|
33
38
|
|
34
|
-
<%= render 'alchemy/admin/partials/pagination_links', :
|
39
|
+
<%= render 'alchemy/admin/partials/pagination_links', items: @tags %>
|
35
40
|
|
36
41
|
<% else %>
|
37
42
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= form_for [:admin, @tag], :
|
1
|
+
<%= form_for [:admin, @tag], as: :tag, url: admin_tags_path, html: {id: 'new_tag'}, remote: true do |form| %>
|
2
2
|
<div class="info">
|
3
3
|
<%= render_icon('info') %>
|
4
4
|
<%= _t(:tags_get_created_if_used_the_first_time) %>
|
@@ -7,10 +7,10 @@
|
|
7
7
|
<table>
|
8
8
|
<tr>
|
9
9
|
<td class="label"><%= form.label :name %></td>
|
10
|
-
<td class="input"><%= form.text_field :name, :
|
10
|
+
<td class="input"><%= form.text_field :name, class: 'input_field', autofocus: true %></td>
|
11
11
|
</tr>
|
12
12
|
<tr>
|
13
|
-
<td colspan="2" class="submit"><%= form.button _t(
|
13
|
+
<td colspan="2" class="submit"><%= form.button _t(:save), name: nil, class: 'button' %></td>
|
14
14
|
</tr>
|
15
15
|
</table>
|
16
16
|
<% end %>
|
@@ -32,11 +32,18 @@
|
|
32
32
|
<td class="input"><%= f.password_field 'password_confirmation', :class => 'thin_border long', :autocomplete => "off", :required => action_name == 'signup' %></td>
|
33
33
|
</tr>
|
34
34
|
<% if @signup %>
|
35
|
-
<%= f.hidden_field :
|
36
|
-
<% elsif permitted_to? :
|
35
|
+
<%= f.hidden_field :roles %>
|
36
|
+
<% elsif permitted_to? :update_roles %>
|
37
37
|
<tr>
|
38
|
-
<td class="label"><%= f.label '
|
39
|
-
<td
|
38
|
+
<td class="label"><%= f.label 'roles' %></td>
|
39
|
+
<td id="user_roles">
|
40
|
+
<% Alchemy::User::ROLES.each do |role| %>
|
41
|
+
<label>
|
42
|
+
<%= check_box_tag 'user[roles][]', role, @user.has_role?(role) %>
|
43
|
+
<%= Alchemy::User.human_rolename(role) %>
|
44
|
+
</label>
|
45
|
+
<% end %>
|
46
|
+
</td>
|
40
47
|
</tr>
|
41
48
|
<% end %>
|
42
49
|
<% unless @signup %>
|
@@ -56,7 +63,7 @@
|
|
56
63
|
</tr>
|
57
64
|
<tr>
|
58
65
|
<td class="submit" colspan="2">
|
59
|
-
<%= f.button _t(
|
66
|
+
<%= f.button _t(:save), :class => 'button' %>
|
60
67
|
</td>
|
61
68
|
</tr>
|
62
69
|
</table>
|
@@ -1,39 +1,39 @@
|
|
1
1
|
<tr class="<%= cycle('even', 'odd') %>">
|
2
|
-
<td class="icon"><%= content_tag 'span', '', :class => "icon user#{user.gender == 'female' ? ' female' : ' male'}"
|
2
|
+
<td class="icon"><%= content_tag 'span', '', :class => "icon user#{user.gender == 'female' ? ' female' : ' male'}" %></td>
|
3
3
|
<td>
|
4
4
|
<%= render_icon(user.logged_in? ? 'online' : 'offline') %>
|
5
5
|
</td>
|
6
6
|
<td class="login"><%= user.login %></td>
|
7
|
-
<td class="name"><%= user.firstname
|
8
|
-
<td><%= user.lastname
|
7
|
+
<td class="name"><%= user.firstname %></td>
|
8
|
+
<td><%= user.lastname %></td>
|
9
9
|
<td class="email"><%= user.email %></td>
|
10
|
-
<td><%= _t(user.language, :
|
10
|
+
<td><%= _t(user.language, scope: 'translations', default: _t(:unknown)) %></td>
|
11
11
|
<td><%= user.last_sign_in_at.present? ? l(user.last_sign_in_at, :format => :default) : _t(:unknown) %></td>
|
12
|
-
<td class="role"><%= user.
|
12
|
+
<td class="role"><%= user.human_roles_string %></td>
|
13
13
|
<td class="tools">
|
14
|
-
|
14
|
+
<% permitted_to?(:destroy, :alchemy_admin_users) do %>
|
15
15
|
<%= link_to_confirmation_window(
|
16
16
|
'',
|
17
|
-
_t(
|
17
|
+
_t(:confirm_to_delete_user),
|
18
18
|
alchemy.admin_user_path(user),
|
19
|
-
:title => _t(
|
19
|
+
:title => _t(:delete_user),
|
20
20
|
:class => "icon user_delete#{user.gender == 'female' ? ' female' : ' male'}"
|
21
|
-
)
|
22
|
-
|
23
|
-
|
21
|
+
) %>
|
22
|
+
<% end %>
|
23
|
+
<% permitted_to?(:edit, :alchemy_admin_users) do %>
|
24
24
|
<%= link_to_overlay_window(
|
25
25
|
'',
|
26
26
|
alchemy.edit_admin_user_path(user),
|
27
27
|
{
|
28
|
-
:title => _t(
|
28
|
+
:title => _t(:edit_user),
|
29
29
|
:overflow => true,
|
30
|
-
:size => '
|
30
|
+
:size => '420x580'
|
31
31
|
},
|
32
32
|
{
|
33
33
|
:class => "icon user_edit#{user.gender == 'female' ? ' female' : ' male'}",
|
34
|
-
:title => _t(
|
34
|
+
:title => _t(:edit_user)
|
35
35
|
}
|
36
|
-
)
|
37
|
-
|
36
|
+
) %>
|
37
|
+
<% end %>
|
38
38
|
</td>
|
39
39
|
</tr>
|
@@ -1,36 +1,48 @@
|
|
1
1
|
<%= toolbar(
|
2
|
-
:
|
2
|
+
buttons: [
|
3
3
|
{
|
4
|
-
:
|
5
|
-
:
|
6
|
-
:
|
7
|
-
:
|
8
|
-
:
|
9
|
-
|
10
|
-
:
|
4
|
+
icon: 'user_add',
|
5
|
+
label: _t(:create_user),
|
6
|
+
url: alchemy.new_admin_user_path,
|
7
|
+
title: _t(:create_user),
|
8
|
+
hotkey: 'alt-n',
|
9
|
+
overlay_options: {
|
10
|
+
title: _t(:create_user),
|
11
|
+
size: "420x580"
|
11
12
|
},
|
12
|
-
:
|
13
|
+
if_permitted_to: [:new, :alchemy_admin_users]
|
13
14
|
}
|
14
15
|
]
|
15
16
|
) %>
|
16
17
|
|
17
18
|
<div id="archive_all">
|
19
|
+
<%= resources_header %>
|
18
20
|
<% if @users.any? %>
|
19
21
|
|
20
22
|
<table class="list" id="user_list">
|
21
23
|
<tr>
|
22
24
|
<th class="icon"></th>
|
23
25
|
<th class="login_status"></th>
|
24
|
-
<th class="login"
|
25
|
-
|
26
|
-
|
27
|
-
<th class="
|
26
|
+
<th class="login">
|
27
|
+
<%= sortable_column(Alchemy::User.human_attribute_name('login'), column: :login) %>
|
28
|
+
</th>
|
29
|
+
<th class="name">
|
30
|
+
<%= sortable_column(Alchemy::User.human_attribute_name('firstname'), column: :firstname) %>
|
31
|
+
</th>
|
32
|
+
<th>
|
33
|
+
<%= sortable_column(Alchemy::User.human_attribute_name('lastname'), column: :lastname) %>
|
34
|
+
</th>
|
35
|
+
<th class="email">
|
36
|
+
<%= sortable_column(Alchemy::User.human_attribute_name('email'), column: :email) %>
|
37
|
+
</th>
|
28
38
|
<th><%= Alchemy::User.human_attribute_name('language') %></th>
|
29
|
-
<th
|
30
|
-
|
39
|
+
<th>
|
40
|
+
<%= sortable_column(Alchemy::User.human_attribute_name('last_sign_in_at'), column: :last_sign_in_at) %>
|
41
|
+
</th>
|
42
|
+
<th class="role"><%= Alchemy::User.human_attribute_name('roles') %></th>
|
31
43
|
<th class="tools"></th>
|
32
44
|
</tr>
|
33
|
-
<%= render :
|
45
|
+
<%= render partial: 'alchemy/admin/users/user', collection: @users %>
|
34
46
|
</table>
|
35
47
|
|
36
48
|
<%= paginate @users %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% css_classes = [options[:page] == page ? "active" : nil] %>
|
2
|
+
<% if page == pages.first %>
|
3
|
+
<% css_classes << "first" %>
|
4
|
+
<% elsif page == pages.last %>
|
5
|
+
<% css_classes << "last" %>
|
6
|
+
<% end %>
|
7
|
+
<%= link_to_unless(
|
8
|
+
!options[:link_active_page] && options[:page] == page,
|
9
|
+
h(page.name),
|
10
|
+
show_alchemy_page_path(page),
|
11
|
+
class: css_classes.compact.join(" "),
|
12
|
+
title: page.title
|
13
|
+
) do |name, url, html_options| %>
|
14
|
+
<%= content_tag :span, name, html_options %>
|
15
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= options[:seperator].html_safe %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
</label>
|
6
6
|
<div class="file" id="file_<%= content.id %>">
|
7
7
|
<div class="file_icon">
|
8
|
-
|
8
|
+
<% if content.ingredient.nil? %>
|
9
9
|
<%= link_to_overlay_window("",
|
10
10
|
alchemy.admin_attachments_path(
|
11
11
|
:content_id => content.id,
|
@@ -14,21 +14,21 @@
|
|
14
14
|
:options => options
|
15
15
|
),
|
16
16
|
{
|
17
|
-
:title => _t(
|
18
|
-
:size => '
|
19
|
-
:
|
17
|
+
:title => _t(:assign_file),
|
18
|
+
:size => '780x580',
|
19
|
+
:close_on_escape => false
|
20
20
|
},
|
21
21
|
:class => 'assign_file',
|
22
|
-
:title => _t(
|
22
|
+
:title => _t(:assign_file)
|
23
23
|
) %>
|
24
|
-
|
24
|
+
<% else %>
|
25
25
|
<%= render_icon(content.ingredient.icon_css_class) %>
|
26
|
-
|
26
|
+
<% end %>
|
27
27
|
</div>
|
28
28
|
<div class="file_name">
|
29
|
-
<%= content.ingredient.name rescue ("←" + _t(
|
29
|
+
<%= content.ingredient.name rescue ("←" + _t(:assign_file_from_archive)).html_safe %>
|
30
30
|
</div>
|
31
|
-
|
31
|
+
<% unless content.ingredient.nil? %>
|
32
32
|
<%= hidden_field_tag content.form_field_name(:attachment_id), content.ingredient.id %>
|
33
33
|
<div class="essence_file_tools">
|
34
34
|
<%= link_to_overlay_window("",
|
@@ -39,12 +39,12 @@
|
|
39
39
|
:options => options
|
40
40
|
),
|
41
41
|
{
|
42
|
-
:title => _t(
|
43
|
-
:size => '
|
44
|
-
:
|
42
|
+
:title => _t(:assign_file),
|
43
|
+
:size => '780x580',
|
44
|
+
:close_on_escape => false
|
45
45
|
},
|
46
46
|
:class => 'assign_file',
|
47
|
-
:title => _t(
|
47
|
+
:title => _t(:assign_file)
|
48
48
|
) %>
|
49
49
|
<%= link_to_overlay_window("",
|
50
50
|
url_for(
|
@@ -53,13 +53,13 @@
|
|
53
53
|
:id => content
|
54
54
|
),
|
55
55
|
{
|
56
|
-
:title => _t(
|
56
|
+
:title => _t(:edit_file_properties),
|
57
57
|
:size => '400x150'
|
58
58
|
},
|
59
59
|
:class => 'edit_file',
|
60
|
-
:title => _t(
|
60
|
+
:title => _t(:edit_file_properties)
|
61
61
|
) %>
|
62
62
|
</div>
|
63
|
-
|
63
|
+
<% end %>
|
64
64
|
</div>
|
65
65
|
</div>
|
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
) if content.essence.attachment %>
|
1
|
+
<% if attachment = content.essence.attachment %>
|
2
|
+
<%= link_to(
|
3
|
+
h(attachment.name),
|
4
|
+
download_alchemy_attachment_path(attachment),
|
5
|
+
:class => "file_link #{content.essence.css_class.blank? ? "" : content.essence.css_class}",
|
6
|
+
:title => "#{content.essence.title.blank? ? attachment.file_name : content.essence.title}"
|
7
|
+
) %>
|
8
|
+
<% end %>
|
@@ -12,13 +12,13 @@
|
|
12
12
|
<% if options[:grouped] %>
|
13
13
|
<%= link_to_confirmation_window(
|
14
14
|
"",
|
15
|
-
_t(
|
15
|
+
_t(:confirm_to_delete_image),
|
16
16
|
alchemy.admin_essence_picture_path(
|
17
17
|
:id => content,
|
18
18
|
:options => options
|
19
19
|
),
|
20
20
|
{
|
21
|
-
:title => _t(
|
21
|
+
:title => _t(:delete_image)
|
22
22
|
}
|
23
23
|
) -%>
|
24
24
|
<% else %>
|
@@ -30,10 +30,7 @@
|
|
30
30
|
<% end %>
|
31
31
|
</span>
|
32
32
|
<%- if content.ingredient -%>
|
33
|
-
<div class="picture_handle" title="<%= _t(
|
34
|
-
<div class="picture_content_spinner">
|
35
|
-
<%= image_tag("alchemy/image_loader.gif", :alt => '') %>
|
36
|
-
</div>
|
33
|
+
<div class="picture_handle" title="<%= _t(:drag_to_sort) if options[:dragable] %>"></div>
|
37
34
|
<%- end -%>
|
38
35
|
<div class="picture_image">
|
39
36
|
<div class="thumbnail_background<%= ' missing' if content.ingredient.nil? %>">
|
@@ -4,7 +4,8 @@
|
|
4
4
|
alchemy.crop_admin_essence_picture_path(content.essence, :options => options),
|
5
5
|
{
|
6
6
|
:size => "816x754",
|
7
|
-
:title => _t('Edit Picturemask')
|
7
|
+
:title => _t('Edit Picturemask'),
|
8
|
+
:image_loader => false
|
8
9
|
},
|
9
10
|
{
|
10
11
|
:title => _t('Edit Picturemask')
|
@@ -23,17 +24,17 @@
|
|
23
24
|
:options => options
|
24
25
|
),
|
25
26
|
{
|
26
|
-
:title => (content.ingredient ? _t(
|
27
|
+
:title => (content.ingredient ? _t(:swap_image) : _t(:insert_image)),
|
27
28
|
:size => '780x580',
|
28
|
-
:
|
29
|
+
:close_on_escape => false
|
29
30
|
},
|
30
|
-
:title => (content.ingredient ? _t(
|
31
|
+
:title => (content.ingredient ? _t(:swap_image) : _t(:insert_image))
|
31
32
|
) %>
|
32
33
|
|
33
34
|
<%= link_to(render_icon(:link), '#', {
|
34
35
|
:onclick => "Alchemy.LinkOverlay.open(this, 420)",
|
35
36
|
:class => content.linked? ? 'linked' : nil,
|
36
|
-
:title => _t(
|
37
|
+
:title => _t(:link_image),
|
37
38
|
:data => {'content-id' => content.id},
|
38
39
|
:id => "edit_link_#{content.id}"
|
39
40
|
}) %>
|
@@ -41,7 +42,7 @@
|
|
41
42
|
<%= link_to(render_icon('unlink'), '#', {
|
42
43
|
:onclick => "Alchemy.LinkOverlay.removeLink(this, #{content.id})",
|
43
44
|
:class => content.linked? ? 'linked' : 'disabled',
|
44
|
-
:title => _t(
|
45
|
+
:title => _t(:unlink)
|
45
46
|
}) %>
|
46
47
|
|
47
48
|
<%= link_to_overlay_window(
|
@@ -52,8 +53,8 @@
|
|
52
53
|
:options => options
|
53
54
|
),
|
54
55
|
{
|
55
|
-
:title => _t(
|
56
|
+
:title => _t(:edit_image_properties),
|
56
57
|
:size => (options[:caption_as_textarea] ? (options[:manual_image_size] ? '380x230' : '380x210') : (options[:manual_image_size] ? '380x190' : '380x180'))
|
57
58
|
},
|
58
|
-
:title => _t(
|
59
|
+
:title => _t(:edit_image_properties)
|
59
60
|
) %>
|
@@ -2,11 +2,6 @@
|
|
2
2
|
<div class="content_editor essence_richtext" id="<%= content_dom_id(content) %>">
|
3
3
|
<%= label_and_remove_link(content) %>
|
4
4
|
<div class="tinymce_container">
|
5
|
-
<% if content.has_custom_tinymce_config? && content.settings[:tinymce] -%>
|
6
|
-
<div class="essence_richtext_loader">
|
7
|
-
<%= image_tag('alchemy/ajax_loader.gif') %>
|
8
|
-
</div>
|
9
|
-
<% end -%>
|
10
5
|
<%= text_area_tag(
|
11
6
|
content.form_field_name,
|
12
7
|
content.ingredient || '',
|
@@ -5,7 +5,7 @@
|
|
5
5
|
:onclick => "Alchemy.LinkOverlay.open(this, 420); return false;",
|
6
6
|
:class => "icon_button#{content.linked? ? ' linked' : ''}",
|
7
7
|
:data => {'content-id' => content.id},
|
8
|
-
:title => _t(
|
8
|
+
:title => _t(:place_link),
|
9
9
|
:id => "edit_link_#{content.id}"
|
10
10
|
) %>
|
11
11
|
<%= link_to(
|
@@ -14,6 +14,6 @@
|
|
14
14
|
:onclick => "Alchemy.LinkOverlay.removeLink(this, #{content.id}); return false;",
|
15
15
|
:class => "icon_button unlink #{content.linked? ? 'linked' : 'disabled'}",
|
16
16
|
:data => {'content-id' => content.id},
|
17
|
-
:title => _t(
|
17
|
+
:title => _t(:unlink)
|
18
18
|
) %>
|
19
19
|
</span>
|