locomotive_cms 0.0.3.3 → 0.0.4.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +47 -33
- data/README.textile +11 -5
- data/app/controllers/admin/accounts_controller.rb +6 -6
- data/app/controllers/admin/api_contents_controller.rb +9 -9
- data/app/controllers/admin/asset_collections_controller.rb +9 -9
- data/app/controllers/admin/assets_controller.rb +13 -13
- data/app/controllers/admin/base_controller.rb +21 -21
- data/app/controllers/admin/content_types_controller.rb +7 -3
- data/app/controllers/admin/contents_controller.rb +16 -16
- data/app/controllers/admin/cross_domain_sessions_controller.rb +34 -0
- data/app/controllers/admin/current_sites_controller.rb +9 -9
- data/app/controllers/admin/custom_fields_controller.rb +11 -11
- data/app/controllers/admin/images_controller.rb +51 -0
- data/app/controllers/admin/imports_controller.rb +51 -0
- data/app/controllers/admin/memberships_controller.rb +4 -4
- data/app/controllers/admin/my_accounts_controller.rb +9 -9
- data/app/controllers/admin/pages_controller.rb +23 -12
- data/app/controllers/admin/passwords_controller.rb +6 -6
- data/app/controllers/admin/rendering_controller.rb +6 -6
- data/app/controllers/admin/sessions_controller.rb +8 -8
- data/app/controllers/admin/sitemaps_controller.rb +6 -6
- data/app/controllers/admin/sites_controller.rb +9 -9
- data/app/controllers/admin/snippets_controller.rb +10 -8
- data/app/controllers/admin/theme_assets_controller.rb +28 -17
- data/app/controllers/application_controller.rb +9 -1
- data/app/controllers/home_controller.rb +4 -4
- data/app/helpers/admin/accounts_helper.rb +3 -3
- data/app/helpers/admin/assets_helper.rb +11 -5
- data/app/helpers/admin/base_helper.rb +9 -9
- data/app/helpers/admin/custom_fields_helper.rb +11 -11
- data/app/helpers/admin/login_helper.rb +7 -7
- data/app/helpers/admin/pages_helper.rb +22 -18
- data/app/helpers/admin/sites_helper.rb +5 -5
- data/app/models/account.rb +33 -16
- data/app/models/asset.rb +19 -15
- data/app/models/asset_collection.rb +29 -20
- data/app/models/content_instance.rb +34 -17
- data/app/models/content_type.rb +29 -22
- data/app/models/editable_element.rb +21 -0
- data/app/models/editable_file.rb +9 -0
- data/app/models/editable_long_text.rb +3 -0
- data/app/models/editable_short_text.rb +12 -0
- data/app/models/extensions/asset/vignette.rb +13 -11
- data/app/models/extensions/page/editable_elements.rb +111 -0
- data/app/models/extensions/page/parse.rb +107 -0
- data/app/models/extensions/page/render.rb +8 -14
- data/app/models/extensions/page/templatized.rb +16 -16
- data/app/models/extensions/page/tree.rb +33 -24
- data/app/models/membership.rb +12 -12
- data/app/models/page.rb +41 -39
- data/app/models/site.rb +46 -41
- data/app/models/snippet.rb +63 -2
- data/app/models/theme_asset.rb +103 -59
- data/app/uploaders/asset_uploader.rb +19 -18
- data/app/uploaders/editable_file_uploader.rb +11 -0
- data/app/uploaders/theme_asset_uploader.rb +11 -22
- data/app/views/admin/accounts/new.html.haml +4 -4
- data/app/views/admin/asset_collections/edit.html.haml +10 -10
- data/app/views/admin/asset_collections/index.html.haml +2 -2
- data/app/views/admin/asset_collections/new.html.haml +2 -2
- data/app/views/admin/assets/edit.html.haml +1 -1
- data/app/views/admin/assets/new.html.haml +2 -2
- data/app/views/admin/content_types/_form.html.haml +4 -4
- data/app/views/admin/content_types/edit.html.haml +3 -3
- data/app/views/admin/content_types/new.html.haml +2 -2
- data/app/views/admin/contents/_form.html.haml +1 -1
- data/app/views/admin/contents/_list.html.haml +3 -3
- data/app/views/admin/contents/edit.html.haml +1 -1
- data/app/views/admin/contents/index.html.haml +6 -6
- data/app/views/admin/contents/new.html.haml +3 -3
- data/app/views/admin/cross_domain_sessions/new.html.haml +14 -0
- data/app/views/admin/current_sites/_form.html.haml +9 -9
- data/app/views/admin/current_sites/edit.html.haml +3 -2
- data/app/views/admin/custom_fields/_custom_form.html.haml +4 -4
- data/app/views/admin/custom_fields/_edit_field.html.haml +2 -2
- data/app/views/admin/custom_fields/_index.html.haml +24 -24
- data/app/views/admin/custom_fields/edit_category.html.haml +16 -16
- data/app/views/admin/errors/404.html.haml +7 -0
- data/app/views/admin/errors/500.html.haml +7 -0
- data/app/views/admin/imports/new.html.haml +21 -0
- data/app/views/admin/imports/show.html.haml +19 -0
- data/app/views/admin/mailer/confirmation_instructions.html.haml +2 -2
- data/app/views/admin/mailer/reset_password_instructions.html.haml +4 -4
- data/app/views/admin/mailer/unlock_instructions.html.haml +3 -3
- data/app/views/admin/memberships/new.html.haml +3 -3
- data/app/views/admin/my_accounts/edit.html.haml +11 -10
- data/app/views/admin/pages/_editable_elements.html.haml +35 -0
- data/app/views/admin/pages/_form.html.haml +21 -26
- data/app/views/admin/pages/_page.html.haml +5 -5
- data/app/views/admin/pages/edit.html.haml +3 -3
- data/app/views/admin/pages/index.html.haml +2 -2
- data/app/views/admin/pages/new.html.haml +2 -2
- data/app/views/admin/passwords/edit.html.haml +4 -4
- data/app/views/admin/passwords/new.html.haml +6 -6
- data/app/views/admin/sessions/new.html.haml +2 -2
- data/app/views/admin/shared/_footer.html.haml +1 -1
- data/app/views/admin/shared/_form_actions.html.haml +2 -2
- data/app/views/admin/shared/_head.html.haml +3 -3
- data/app/views/admin/shared/_header.html.haml +9 -2
- data/app/views/admin/shared/menu/_contents.html.haml +3 -3
- data/app/views/admin/shared/menu/_settings.html.haml +1 -2
- data/app/views/admin/sitemaps/show.xml.builder +13 -3
- data/app/views/admin/sites/_form.html.haml +5 -5
- data/app/views/admin/sites/new.html.haml +2 -2
- data/app/views/admin/snippets/_form.html.haml +6 -3
- data/app/views/admin/snippets/_snippet.html.haml +3 -2
- data/app/views/admin/snippets/edit.html.haml +2 -2
- data/app/views/admin/snippets/index.html.haml +2 -2
- data/app/views/admin/snippets/new.html.haml +3 -3
- data/app/views/admin/theme_assets/_asset.html.haml +11 -10
- data/app/views/admin/theme_assets/_form.html.haml +19 -21
- data/app/views/admin/theme_assets/edit.html.haml +1 -1
- data/app/views/admin/theme_assets/images.html.haml +11 -11
- data/app/views/admin/theme_assets/index.html.haml +34 -19
- data/app/views/admin/theme_assets/new.html.haml +2 -2
- data/app/views/home/show.html.haml +2 -2
- data/app/views/layouts/admin/application.html.haml +6 -6
- data/app/views/layouts/admin/{login.html.haml → box.html.haml} +5 -3
- data/app/views/layouts/application.html.haml +1 -1
- data/config/application.rb +3 -1
- data/config/cucumber.yml +2 -8
- data/config/environments/development.rb +4 -3
- data/config/environments/production.rb +16 -1
- data/config/environments/test.rb +7 -1
- data/config/initializers/devise.rb +3 -9
- data/config/initializers/formtastic.rb +2 -2
- data/config/initializers/haml.rb +1 -0
- data/config/initializers/inflections.rb +6 -1
- data/config/initializers/locomotive.rb +8 -9
- data/config/initializers/rspec_generator.rb +1 -1
- data/config/initializers/secret_token.rb +1 -1
- data/config/locales/admin_ui_en.yml +93 -56
- data/config/locales/admin_ui_fr.yml +82 -68
- data/config/locales/default_en.yml +8 -10
- data/config/locales/default_fr.yml +32 -37
- data/config/locales/flash.en.yml +20 -21
- data/config/locales/flash.fr.yml +20 -21
- data/config/routes.rb +33 -27
- data/lib/generators/locomotive/copy_assets/copy_assets_generator.rb +5 -5
- data/lib/generators/locomotive/install/install_generator.rb +3 -3
- data/lib/generators/locomotive/install/templates/locomotive.rb +8 -8
- data/lib/locomotive/admin_responder.rb +5 -5
- data/lib/locomotive/carrierwave/base.rb +3 -3
- data/lib/locomotive/carrierwave/patches.rb +17 -13
- data/lib/locomotive/carrierwave.rb +5 -1
- data/lib/locomotive/configuration.rb +8 -8
- data/lib/{core_ext.rb → locomotive/core_ext.rb} +15 -11
- data/lib/locomotive/custom_fields.rb +6 -5
- data/lib/locomotive/delayed_job.rb +47 -0
- data/lib/locomotive/engine.rb +13 -4
- data/lib/locomotive/heroku/custom_domain.rb +14 -14
- data/lib/locomotive/heroku.rb +18 -16
- data/lib/locomotive/httparty/patches.rb +4 -4
- data/lib/locomotive/httparty/webservice.rb +4 -4
- data/lib/locomotive/httparty.rb +1 -1
- data/lib/locomotive/import/asset_collections.rb +53 -0
- data/lib/locomotive/import/assets.rb +74 -0
- data/lib/locomotive/import/content_types.rb +84 -0
- data/lib/locomotive/import/job.rb +73 -0
- data/lib/locomotive/import/pages.rb +114 -0
- data/lib/locomotive/import/site.rb +17 -0
- data/lib/locomotive/import/snippets.rb +23 -0
- data/lib/locomotive/import.rb +7 -0
- data/lib/locomotive/inherited_resources.rb +5 -4
- data/lib/locomotive/liquid/drops/asset.rb +21 -0
- data/lib/locomotive/liquid/drops/asset_collections.rb +47 -12
- data/lib/locomotive/liquid/drops/base.rb +12 -12
- data/lib/locomotive/liquid/drops/content.rb +10 -10
- data/lib/locomotive/liquid/drops/contents.rb +15 -20
- data/lib/locomotive/liquid/drops/page.rb +9 -11
- data/lib/locomotive/liquid/drops/site.rb +15 -0
- data/lib/locomotive/liquid/errors.rb +5 -0
- data/lib/locomotive/liquid/filters/date.rb +14 -14
- data/lib/locomotive/liquid/filters/html.rb +65 -24
- data/lib/locomotive/liquid/filters/misc.rb +11 -11
- data/lib/locomotive/liquid/filters/text.rb +7 -7
- data/lib/locomotive/liquid/tags/blueprint.rb +13 -13
- data/lib/locomotive/liquid/tags/consume.rb +23 -13
- data/lib/locomotive/liquid/tags/editable/base.rb +60 -0
- data/lib/locomotive/liquid/tags/editable/file.rb +23 -0
- data/lib/locomotive/liquid/tags/editable/long_text.rb +31 -0
- data/lib/locomotive/liquid/tags/editable/short_text.rb +31 -0
- data/lib/locomotive/liquid/tags/editable.rb +4 -0
- data/lib/locomotive/liquid/tags/extends.rb +42 -0
- data/lib/locomotive/liquid/tags/google_analytics.rb +39 -0
- data/lib/locomotive/liquid/tags/inherited_block.rb +31 -0
- data/lib/locomotive/liquid/tags/inline_editor.rb +52 -0
- data/lib/locomotive/liquid/tags/jquery.rb +8 -8
- data/lib/locomotive/liquid/tags/nav.rb +17 -17
- data/lib/locomotive/liquid/tags/paginate.rb +23 -23
- data/lib/locomotive/liquid/tags/snippet.rb +39 -14
- data/lib/locomotive/liquid/tags/with_scope.rb +11 -11
- data/lib/locomotive/liquid.rb +3 -3
- data/lib/locomotive/logger.rb +4 -4
- data/lib/locomotive/middlewares/fonts.rb +44 -0
- data/lib/locomotive/middlewares.rb +1 -0
- data/lib/locomotive/misc_form_builder.rb +47 -0
- data/lib/locomotive/mongoid/document.rb +7 -8
- data/lib/locomotive/mongoid/model_extensions.rb +1 -1
- data/lib/locomotive/mongoid/patches.rb +79 -51
- data/lib/locomotive/mongoid.rb +1 -1
- data/lib/locomotive/railties/tasks.rake +16 -0
- data/lib/locomotive/regexps.rb +4 -8
- data/lib/locomotive/render.rb +46 -36
- data/lib/locomotive/routing/default_constraint.rb +12 -13
- data/lib/locomotive/routing/site_dispatcher.rb +20 -18
- data/lib/locomotive/routing.rb +2 -0
- data/lib/locomotive/session_store.rb +57 -0
- data/lib/locomotive/version.rb +3 -0
- data/lib/locomotive.rb +22 -14
- data/lib/tasks/cucumber.rake +2 -2
- data/lib/tasks/rspec.rake +1 -1
- data/public/images/admin/{login → box}/bottom_panel_bg.png +0 -0
- data/public/images/admin/{login → box}/buttons/left_bg.png +0 -0
- data/public/images/admin/{login → box}/buttons/right_bg.png +0 -0
- data/public/images/admin/{login → box}/content_panel_bg.png +0 -0
- data/public/images/admin/{login → box}/input_bg.png +0 -0
- data/public/images/admin/{login → box}/light_bg.png +0 -0
- data/public/images/admin/{login → box}/top_panel_bg.png +0 -0
- data/public/images/admin/{login → box}/wrapper_bg.png +0 -0
- data/public/images/admin/buttons/dark-gray-bg.png +0 -0
- data/public/images/admin/form/spinner.gif +0 -0
- data/public/images/admin/inline_editor/action-left.png +0 -0
- data/public/images/admin/inline_editor/action-right.png +0 -0
- data/public/images/admin/inline_editor/bg.png +0 -0
- data/public/images/admin/inline_editor/drawer.png +0 -0
- data/public/images/admin/list/icons/states.png +0 -0
- data/public/images/admin/plugins/selectmenu/arrow.png +0 -0
- data/public/images/admin/plugins/selectmenu/background.png +0 -0
- data/public/javascripts/admin/account.js +4 -4
- data/public/javascripts/admin/aloha/VERSION.txt +2 -0
- data/public/javascripts/admin/aloha/aloha-nodeps.js +153 -0
- data/public/javascripts/admin/aloha/aloha.js +246 -0
- data/public/javascripts/admin/aloha/css/aloha.css +408 -0
- data/{vendor/plugins/custom_fields/MIT-LICENSE → public/javascripts/admin/aloha/deps/MIT-LICENSE.txt} +4 -4
- data/public/javascripts/admin/aloha/deps/extjs/resources/charts.swf +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/css/ext-all.css +6795 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/css/xtheme-gray.css +1654 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/expressinstall.swf +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/corners-blue.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/corners.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/l-blue.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/l.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/r-blue.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/r.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/tb-blue.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/box/tb.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/arrow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/btn.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/group-cs.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/group-lr.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/group-tb.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-b-noline.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-b.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-bo.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-noline.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow-o.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/button/s-arrow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/dd/drop-add.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/dd/drop-no.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/dd/drop-yes.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/editor/tb-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/checkbox.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/clear-trigger.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/clear-trigger.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/date-trigger.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/date-trigger.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/error-tip-corners.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/exclamation.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/radio.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/search-trigger.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/search-trigger.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/text-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger-square.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger-square.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger-tpl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/form/trigger.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/gradient-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/arrow-left-white.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/arrow-right-white.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/col-move-bottom.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/col-move-top.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/columns.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/dirty.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/done.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/drop-no.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/drop-yes.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/footer-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-blue-hd.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-blue-split.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-hrow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-loading.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-split.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid-vista-hd.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-hd-btn.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-hrow-over.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-hrow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/group-by.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/group-collapse.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/group-expand-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/group-expand.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hd-pop.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-asc.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-desc.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-lock.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-lock.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-unlock.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/hmenu-unlock.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/invalid_line.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/loading.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/mso-hd.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/nowait.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-first-disabled.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-first.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-last-disabled.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-last.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-next-disabled.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-next.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-prev-disabled.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/page-prev.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/pick-button.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/refresh.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/row-check-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/row-expand-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/row-over.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/row-sel.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/sort-hd.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/sort_asc.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/sort_desc.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/grid/wait.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/collapse.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/expand.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/gradient-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/mini-bottom.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/mini-left.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/mini-right.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/mini-top.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/ns-collapse.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/ns-expand.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/panel-close.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/panel-title-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/panel-title-light-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/stick.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/stuck.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/tab-close-on.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/layout/tab-close.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/checked.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/group-checked.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/item-over.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/menu-parent.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/menu.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/menu/unchecked.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/corners-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/left-right.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/light-hd.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/tool-sprites.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/tools-sprites-trans.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/top-bottom.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/top-bottom.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/white-corners-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/white-left-right.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/panel/white-top-bottom.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/progress/progress-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/qtip/bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/qtip/close.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/qtip/tip-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/s.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shadow-c.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shadow-lr.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shadow.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/blue-loading.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/calendar.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/glass-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/hd-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/large-loading.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/left-btn.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/loading-balls.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/right-btn.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/shared/warning.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/e-handle-dark.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/e-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/ne-handle-dark.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/ne-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/nw-handle-dark.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/nw-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/s-handle-dark.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/s-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/se-handle-dark.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/se-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/square.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/sw-handle-dark.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/sizer/sw-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/slider/slider-bg.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/slider/slider-thumb.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/slider/slider-v-bg.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/slider/slider-v-thumb.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/scroll-left.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/scroll-right.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/scroller-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-over-left-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-over-right-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-close.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-strip-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-strip-bg.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tabs/tabs-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/btn-arrow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/btn-over-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/gray-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/more.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/tb-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/arrows.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-add.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-between.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-no.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-over.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-under.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/drop-yes.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end-minus.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end-plus.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-end.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-line.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-minus-nl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-minus.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-plus-nl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow-plus.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/elbow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/folder-open.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/folder.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/leaf.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/loading.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/tree/s.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/icon-error.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/icon-info.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/icon-question.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/icon-warning.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/left-corners.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/left-corners.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/left-right.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/left-right.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/right-corners.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/right-corners.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/top-bottom.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/default/window/top-bottom.psd +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/btn-arrow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/btn-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/btn.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/group-cs.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/group-lr.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/group-tb.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/s-arrow-bo.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/button/s-arrow-o.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/clear-trigger.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/date-trigger.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/search-trigger.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/trigger-square.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/form/trigger.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/gradient-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/col-move-bottom.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/col-move-top.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hd-btn.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow-over.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow-over2.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-hrow2.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-bg2.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/group-collapse.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/group-expand-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/group-expand.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/page-first.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/page-last.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/page-next.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/page-prev.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/refresh.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/row-expand-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/sort_asc.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/grid/sort_desc.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/menu/group-checked.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/menu/item-over-disabled.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/menu/item-over.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/menu/menu-parent.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/corners-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/left-right.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/light-hd.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/tool-sprite-tpl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/tool-sprites.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/tools-sprites-trans.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/top-bottom.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/top-bottom.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/white-corners-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/white-left-right.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/panel/white-top-bottom.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/progress/progress-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/qtip/bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/qtip/close.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/qtip/tip-anchor-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/qtip/tip-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/s.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/shared/hd-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/shared/left-btn.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/shared/right-btn.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/e-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/ne-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/nw-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/s-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/se-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/square.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/sizer/sw-handle.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/slider/slider-thumb.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/slider/slider-v-thumb.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/scroll-left.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/scroll-right.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/scroller-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-left-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-over-left-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-over-right-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-btm-right-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-close.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-bg.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tabs/tabs-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/btn-arrow-light.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/btn-arrow.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/btn-over-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/gray-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/more.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/tb-bg.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/toolbar/tb-btn-sprite.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/arrows.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/elbow-end-minus-nl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/elbow-end-minus.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/elbow-end-plus-nl.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/tree/elbow-end-plus.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/icon-error.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/icon-info.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/icon-question.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/icon-warning.gif +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/left-corners.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/left-corners.pspimage +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/left-right.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/right-corners.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/images/gray/window/top-bottom.png +0 -0
- data/public/javascripts/admin/aloha/deps/extjs/resources/resources.jsb +507 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/css/prettyPhoto.css +386 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/btnNext.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/btnPrevious.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/contentPattern.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/loader.gif +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_rounded/sprite.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/btnNext.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/btnPrevious.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/contentPattern.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/loader.gif +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/dark_square/sprite.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/btnNext.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/btnPrevious.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternBottom.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternLeft.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternRight.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/contentPatternTop.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/loader.gif +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/facebook/sprite.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_rounded/btnNext.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_rounded/btnPrevious.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_rounded/loader.gif +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_rounded/sprite.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_square/btnNext.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_square/btnPrevious.png +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_square/loader.gif +0 -0
- data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/images/light_square/sprite.png +0 -0
- data/public/javascripts/admin/aloha/i18n/de.dict +5 -0
- data/public/javascripts/admin/aloha/i18n/en.dict +5 -0
- data/public/javascripts/admin/aloha/i18n/eo.dict +5 -0
- data/public/javascripts/admin/aloha/i18n/fi.dict +5 -0
- data/public/javascripts/admin/aloha/i18n/fr.dict +5 -0
- data/public/javascripts/admin/aloha/i18n/it.dict +5 -0
- data/public/javascripts/admin/aloha/i18n/ru.dict +5 -0
- data/public/javascripts/admin/aloha/images/base.gif +0 -0
- data/public/javascripts/admin/aloha/images/base.png +0 -0
- data/public/javascripts/admin/aloha/images/base_multi.png +0 -0
- data/public/javascripts/admin/aloha/images/fade_in.png +0 -0
- data/public/javascripts/admin/aloha/images/fade_out.png +0 -0
- data/public/javascripts/admin/aloha/images/gentics_logo.png +0 -0
- data/public/javascripts/admin/aloha/images/grabhandle.png +0 -0
- data/public/javascripts/admin/aloha/images/maximize.png +0 -0
- data/public/javascripts/admin/aloha/images/multisplit-close.gif +0 -0
- data/public/javascripts/admin/aloha/images/multisplit-open.gif +0 -0
- data/public/javascripts/admin/aloha/images/multisplit_base.jpg +0 -0
- data/public/javascripts/admin/aloha/images/pin.png +0 -0
- data/public/javascripts/admin/aloha/images/removeformat.png +0 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/de.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/en.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/eo.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/fi.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/fr.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/it.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/plugin.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummySave/i18n/de.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummySave/i18n/en.dict +3 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummySave/i18n/fi.dict +3 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummySave/i18n/fr.dict +3 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummySave/i18n/it.dict +3 -0
- data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummySave/plugin.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/de.dict +30 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/en.dict +30 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/eo.dict +29 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/fi.dict +30 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/fr.dict +30 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/it.dict +30 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/ru.dict +30 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/plugin.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/de.dict +20 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/en.dict +20 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/eo.dict +16 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/fi.dict +20 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/fr.dict +16 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/it.dict +20 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/plugin.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.HighlightEditables/css/HighlightEditables.css +14 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.HighlightEditables/plugin.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/css/Link.css +15 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/css/jquery.autocomplete.css +48 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/deps/jquery.autocomplete.js +1 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/de.dict +4 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/en.dict +4 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/fr.dict +4 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/ru.dict +4 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/plugin.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/ressource.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/ressourcedummy.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/ressourceregistry.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/de.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/en.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/eo.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/fi.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/fr.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/it.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/i18n/ru.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/plugin.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.TOC/plugin.js +1 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/de.dict +12 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/en.dict +12 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/eo.dict +12 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/fi.dict +12 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/fr.dict +12 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/it.dict +12 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/ru.dict +12 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/plugin.js +7 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/down.cur +0 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/left.cur +0 -0
- data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/table.css +194 -0
- data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Loader/plugin.js +1 -0
- data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/i18n/en.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/i18n/fi.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/i18n/fr.dict +2 -0
- data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/person.css +3 -0
- data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/plugin.js +1 -0
- data/public/javascripts/admin/aloha/plugins/simpletable/plugin.js.deactivated +2330 -0
- data/public/javascripts/admin/application.js +112 -98
- data/public/javascripts/admin/asset_collections.js +50 -50
- data/public/javascripts/admin/assets.js +4 -4
- data/public/javascripts/admin/content_types.js +15 -15
- data/public/javascripts/admin/contents.js +20 -20
- data/public/javascripts/admin/custom_fields.js +154 -154
- data/public/javascripts/admin/editable_elements.js +30 -0
- data/public/javascripts/admin/import.js +32 -0
- data/public/javascripts/admin/inline_editor.js +64 -0
- data/public/javascripts/admin/inline_editor_toolbar.js +170 -0
- data/public/javascripts/admin/pages.js +86 -79
- data/public/javascripts/admin/plugins/imagepicker.js +81 -0
- data/public/javascripts/admin/plugins/plupload/src/flash.js +298 -0
- data/public/javascripts/admin/plugins/plupload/src/plupload.js +1333 -0
- data/public/javascripts/admin/plugins/selectmenu.js +527 -0
- data/public/javascripts/admin/plugins/smartupdater.js +155 -0
- data/public/javascripts/admin/plugins/tiny_mce/langs/fr.js +154 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/inlinepopups/skins/locomotive/window.css +72 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/css/locoimage.css +110 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/editor_plugin.js +1 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/editor_plugin_src.js +46 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/image.htm +62 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/{advimage → locoimage}/img/sample.gif +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/js/image.js +172 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/langs/en_dlg.js +9 -0
- data/public/javascripts/admin/plugins/tiny_mce/plugins/locoimage/langs/fr_dlg.js +9 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/js/source_editor.js +37 -37
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/langs/fr.js +62 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/langs/fr_dlg.js +51 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/content.css +36 -5
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/dialog.css +53 -109
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/butt2.png +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/button-bg.png +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/buttons.png +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/down_arrow.gif +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/fade-butt.png +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/icons.png +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/items.gif +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/menu-arrow.png +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/menu-check.png +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/progress.gif +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/tabs.gif +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/toolbarbg.png +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/ui.css +997 -213
- data/public/javascripts/admin/rails.js +16 -11
- data/public/javascripts/admin/site.js +42 -38
- data/public/javascripts/admin/snippets.js +21 -15
- data/public/javascripts/admin/theme_assets.js +32 -94
- data/public/javascripts/admin/utils.js +10 -10
- data/public/stylesheets/admin/application.css +142 -154
- data/public/stylesheets/admin/assets.css +54 -0
- data/public/stylesheets/admin/box.css +114 -59
- data/public/stylesheets/admin/buttons.css +36 -38
- data/public/stylesheets/admin/editable_elements.css +64 -0
- data/public/stylesheets/admin/fancybox_changes.css +101 -0
- data/public/stylesheets/admin/formtastic.css +3 -3
- data/public/stylesheets/admin/formtastic_changes.css +239 -232
- data/public/stylesheets/admin/inline_editor.css +90 -0
- data/public/stylesheets/admin/jquery/images/ui-icons_ffffff_256x240.png +0 -0
- data/public/stylesheets/admin/layout.css +86 -84
- data/public/stylesheets/admin/menu.css +106 -106
- data/public/stylesheets/admin/plugins/selectmenu.css +64 -0
- metadata +1104 -586
- data/app/controllers/admin/layouts_controller.rb +0 -13
- data/app/controllers/admin/page_parts_controller.rb +0 -12
- data/app/models/extensions/page/parts.rb +0 -54
- data/app/models/layout.rb +0 -48
- data/app/models/liquid_template.rb +0 -32
- data/app/models/page_part.rb +0 -35
- data/app/views/admin/layouts/_form.html.haml +0 -10
- data/app/views/admin/layouts/_layout.html.haml +0 -7
- data/app/views/admin/layouts/edit.html.haml +0 -18
- data/app/views/admin/layouts/index.html.haml +0 -15
- data/app/views/admin/layouts/new.html.haml +0 -15
- data/lib/locomotive/liquid/db_file_system.rb +0 -18
- data/lib/locomotive/liquid/drops/javascripts.rb +0 -18
- data/lib/locomotive/liquid/drops/stylesheets.rb +0 -19
- data/lib/locomotive/liquid/liquify_template.rb +0 -57
- data/lib/misc_form_builder.rb +0 -45
- data/public/images/admin/nocoffee.gif +0 -0
- data/public/javascripts/admin/page_parts.js +0 -88
- data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/css/advimage.css +0 -13
- data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/editor_plugin.js +0 -1
- data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/editor_plugin_src.js +0 -50
- data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/image.htm +0 -232
- data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/js/image.js +0 -443
- data/public/javascripts/admin/plugins/tiny_mce/plugins/advimage/langs/en_dlg.js +0 -43
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/menu_arrow.gif +0 -0
- data/public/javascripts/admin/plugins/tiny_mce/themes/advanced/skins/locomotive/img/menu_check.gif +0 -0
- data/public/stylesheets/admin/login.css +0 -141
- data/public/stylesheets/admin/page_parts.css +0 -67
- data/spec/factories.rb +0 -77
- data/spec/lib/core_ext_spec.rb +0 -37
- data/spec/lib/locomotive/heroku_spec.rb +0 -149
- data/spec/lib/locomotive/httparty/patches_spec.rb +0 -19
- data/spec/lib/locomotive/httparty/webservice_spec.rb +0 -24
- data/spec/lib/locomotive/liquid/drops/contents_spec.rb +0 -33
- data/spec/lib/locomotive/liquid/drops/page_spec.rb +0 -48
- data/spec/lib/locomotive/liquid/filters/html_spec.rb +0 -82
- data/spec/lib/locomotive/liquid/filters/misc_spec.rb +0 -36
- data/spec/lib/locomotive/liquid/filters/text_spec.rb +0 -11
- data/spec/lib/locomotive/liquid/tags/consume_spec.rb +0 -40
- data/spec/lib/locomotive/liquid/tags/nav_spec.rb +0 -50
- data/spec/lib/locomotive/liquid/tags/paginate_spec.rb +0 -99
- data/spec/lib/locomotive/liquid/tags/snippet_spec.rb +0 -20
- data/spec/lib/locomotive/liquid/tags/with_scope_spec.rb +0 -20
- data/spec/lib/locomotive/render_spec.rb +0 -127
- data/spec/models/account_spec.rb +0 -65
- data/spec/models/asset_collections_spec.rb +0 -177
- data/spec/models/content_instance_spec.rb +0 -33
- data/spec/models/content_type_spec.rb +0 -49
- data/spec/models/layout_spec.rb +0 -64
- data/spec/models/liquid_template_spec.rb +0 -19
- data/spec/models/membership_spec.rb +0 -56
- data/spec/models/page_spec.rb +0 -358
- data/spec/models/site_spec.rb +0 -147
- data/spec/models/snippet_spec.rb +0 -9
- data/spec/models/theme_asset_spec.rb +0 -89
- data/spec/spec_helper.rb +0 -18
- data/spec/support/be_valid.rb +0 -31
- data/spec/support/carrierwave.rb +0 -32
- data/spec/support/locomotive.rb +0 -36
- data/vendor/plugins/custom_fields/Gemfile +0 -12
- data/vendor/plugins/custom_fields/README +0 -13
- data/vendor/plugins/custom_fields/Rakefile +0 -29
- data/vendor/plugins/custom_fields/init.rb +0 -2
- data/vendor/plugins/custom_fields/lib/custom_fields/custom_fields_for.rb +0 -50
- data/vendor/plugins/custom_fields/lib/custom_fields/extensions/mongoid/associations/embeds_many.rb +0 -31
- data/vendor/plugins/custom_fields/lib/custom_fields/extensions/mongoid/associations/has_many_related.rb +0 -33
- data/vendor/plugins/custom_fields/lib/custom_fields/extensions/mongoid/associations/proxy.rb +0 -20
- data/vendor/plugins/custom_fields/lib/custom_fields/extensions/mongoid/document.rb +0 -28
- data/vendor/plugins/custom_fields/lib/custom_fields/field.rb +0 -82
- data/vendor/plugins/custom_fields/lib/custom_fields/proxy_class_enabler.rb +0 -37
- data/vendor/plugins/custom_fields/lib/custom_fields/types/boolean.rb +0 -29
- data/vendor/plugins/custom_fields/lib/custom_fields/types/category.rb +0 -85
- data/vendor/plugins/custom_fields/lib/custom_fields/types/date.rb +0 -35
- data/vendor/plugins/custom_fields/lib/custom_fields/types/default.rb +0 -37
- data/vendor/plugins/custom_fields/lib/custom_fields/types/file.rb +0 -27
- data/vendor/plugins/custom_fields/lib/custom_fields/types/string.rb +0 -13
- data/vendor/plugins/custom_fields/lib/custom_fields/types/text.rb +0 -15
- data/vendor/plugins/custom_fields/lib/custom_fields.rb +0 -28
- data/vendor/plugins/custom_fields/spec/fixtures/doc.txt +0 -1
- data/vendor/plugins/custom_fields/spec/integration/custom_fields_for_spec.rb +0 -28
- data/vendor/plugins/custom_fields/spec/integration/types/category_spec.rb +0 -26
- data/vendor/plugins/custom_fields/spec/integration/types/file_spec.rb +0 -18
- data/vendor/plugins/custom_fields/spec/models/person.rb +0 -10
- data/vendor/plugins/custom_fields/spec/models/project.rb +0 -18
- data/vendor/plugins/custom_fields/spec/models/task.rb +0 -10
- data/vendor/plugins/custom_fields/spec/spec_helper.rb +0 -27
- data/vendor/plugins/custom_fields/spec/support/carrierwave.rb +0 -31
- data/vendor/plugins/custom_fields/spec/support/mongoid.rb +0 -6
- data/vendor/plugins/custom_fields/spec/unit/custom_field_spec.rb +0 -42
- data/vendor/plugins/custom_fields/spec/unit/custom_fields_for_spec.rb +0 -106
- data/vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb +0 -25
- data/vendor/plugins/custom_fields/spec/unit/types/boolean_spec.rb +0 -81
- data/vendor/plugins/custom_fields/spec/unit/types/category_spec.rb +0 -112
- data/vendor/plugins/custom_fields/spec/unit/types/date_spec.rb +0 -59
- data/vendor/plugins/custom_fields/spec/unit/types/file_spec.rb +0 -23
- data/vendor/plugins/custom_fields/uninstall.rb +0 -1
data/spec/models/page_spec.rb
DELETED
@@ -1,358 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Page do
|
4
|
-
|
5
|
-
before(:each) do
|
6
|
-
Site.any_instance.stubs(:create_default_pages!).returns(true)
|
7
|
-
end
|
8
|
-
|
9
|
-
it 'should have a valid factory' do
|
10
|
-
Factory.build(:page).should be_valid
|
11
|
-
end
|
12
|
-
|
13
|
-
# Validations ##
|
14
|
-
|
15
|
-
%w{site title}.each do |field|
|
16
|
-
it "should validate presence of #{field}" do
|
17
|
-
page = Factory.build(:page, field.to_sym => nil)
|
18
|
-
page.should_not be_valid
|
19
|
-
page.errors[field.to_sym].should == ["can't be blank"]
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
it 'should validate presence of slug' do
|
24
|
-
page = Factory.build(:page, :title => nil, :slug => nil)
|
25
|
-
page.should_not be_valid
|
26
|
-
page.errors[:slug].should == ["can't be blank"]
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should validate uniqueness of slug' do
|
30
|
-
page = Factory(:page)
|
31
|
-
(page = Factory.build(:page, :site => page.site)).should_not be_valid
|
32
|
-
page.errors[:slug].should == ["is already taken"]
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should validate uniqueness of slug within a "folder"' do
|
36
|
-
site = Factory(:site)
|
37
|
-
root = Factory(:page, :slug => 'index', :site => site)
|
38
|
-
child_1 = Factory(:page, :slug => 'first_child', :parent => root, :site => site)
|
39
|
-
(page = Factory.build(:page, :slug => 'first_child', :parent => root, :site => site)).should_not be_valid
|
40
|
-
page.errors[:slug].should == ["is already taken"]
|
41
|
-
|
42
|
-
page.slug = 'index'
|
43
|
-
page.valid?.should be_true
|
44
|
-
end
|
45
|
-
|
46
|
-
%w{admin stylesheets images javascripts}.each do |slug|
|
47
|
-
it "should consider '#{slug}' as invalid" do
|
48
|
-
page = Factory.build(:page, :slug => slug)
|
49
|
-
page.should_not be_valid
|
50
|
-
page.errors[:slug].should == ["is reserved"]
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
# Named scopes ##
|
55
|
-
|
56
|
-
# Associations ##
|
57
|
-
|
58
|
-
# Methods ##
|
59
|
-
|
60
|
-
describe 'once created' do
|
61
|
-
|
62
|
-
it 'should tell if the page is the index one' do
|
63
|
-
Factory.build(:page, :slug => 'index', :site => nil).index?.should be_true
|
64
|
-
Factory.build(:page, :slug => 'index', :depth => 1, :site => nil).index?.should be_false
|
65
|
-
end
|
66
|
-
|
67
|
-
it 'should have normalized slug' do
|
68
|
-
page = Factory.build(:page, :slug => ' Valid ité.html ')
|
69
|
-
page.valid?
|
70
|
-
page.slug.should == 'Valid_ite'
|
71
|
-
|
72
|
-
page = Factory.build(:page, :title => ' Valid ité.html ', :slug => nil, :site => page.site)
|
73
|
-
page.should be_valid
|
74
|
-
page.slug.should == 'Valid_ite'
|
75
|
-
end
|
76
|
-
|
77
|
-
it 'has no cache strategy' do
|
78
|
-
page = Factory.build(:page, :site => nil)
|
79
|
-
page.with_cache?.should == false
|
80
|
-
end
|
81
|
-
|
82
|
-
end
|
83
|
-
|
84
|
-
describe '#deleting' do
|
85
|
-
|
86
|
-
before(:each) do
|
87
|
-
@page = Factory.build(:page)
|
88
|
-
end
|
89
|
-
|
90
|
-
it 'does not delete the index page' do
|
91
|
-
@page.stubs(:index?).returns(true)
|
92
|
-
lambda {
|
93
|
-
@page.destroy.should be_false
|
94
|
-
@page.errors.first == 'You can not remove index or 404 pages'
|
95
|
-
}.should_not change(Page, :count)
|
96
|
-
end
|
97
|
-
|
98
|
-
it 'does not delete the 404 page' do
|
99
|
-
@page.stubs(:not_found?).returns(true)
|
100
|
-
lambda {
|
101
|
-
@page.destroy.should be_false
|
102
|
-
@page.errors.first == 'You can not remove index or 404 pages'
|
103
|
-
}.should_not change(Page, :count)
|
104
|
-
end
|
105
|
-
|
106
|
-
end
|
107
|
-
|
108
|
-
describe 'accepts_nested_attributes_for used for parts' do
|
109
|
-
|
110
|
-
before(:each) do
|
111
|
-
@page = Factory.build(:page)
|
112
|
-
@page.parts.build(:name => 'Main content', :slug => 'layout')
|
113
|
-
@page.parts.build(:name => 'Left column', :slug => 'left_sidebar')
|
114
|
-
@page.parts.build(:name => 'Right column', :slug => 'right_sidebar')
|
115
|
-
end
|
116
|
-
|
117
|
-
it 'should add parts' do
|
118
|
-
attributes = { '0' => { 'slug' => 'footer', 'name' => 'A custom footer', 'value' => 'End of page' } }
|
119
|
-
@page.parts_attributes = attributes
|
120
|
-
@page.parts.size.should == 4
|
121
|
-
@page.parts.last.slug.should == 'footer'
|
122
|
-
@page.parts.last.disabled.should == false
|
123
|
-
end
|
124
|
-
|
125
|
-
it 'should update parts' do
|
126
|
-
attributes = { '0' => { 'slug' => 'layout', 'name' => 'A new name', 'value' => 'Hello world' } }
|
127
|
-
@page.parts_attributes = attributes
|
128
|
-
@page.parts.size.should == 3
|
129
|
-
@page.parts.first.slug.should == 'layout'
|
130
|
-
@page.parts.first.name.should == 'A new name'
|
131
|
-
@page.parts.first.value.should == 'Hello world'
|
132
|
-
end
|
133
|
-
|
134
|
-
it 'should disable parts' do
|
135
|
-
attributes = { '0' => { 'slug' => 'left_sidebar', 'disabled' => 'true' } }
|
136
|
-
@page.parts_attributes = attributes
|
137
|
-
@page.parts.size.should == 3
|
138
|
-
@page.parts.first.disabled.should == true
|
139
|
-
@page.parts[1].disabled.should == true
|
140
|
-
@page.parts[2].disabled.should == true
|
141
|
-
end
|
142
|
-
|
143
|
-
it 'should add/update/disable parts at the same time' do
|
144
|
-
@page.parts.size.should == 3
|
145
|
-
|
146
|
-
attributes = {
|
147
|
-
'0' => { 'slug' => 'layout', 'name' => 'Body', 'value' => 'Hello world' },
|
148
|
-
'1' => { 'slug' => 'left_sidebar', 'disabled' => 'true' },
|
149
|
-
'2' => { 'id' => @page.parts[2].id, 'value' => 'Content from right sidebar', 'disabled' => 'false' }
|
150
|
-
}
|
151
|
-
@page.parts_attributes = attributes
|
152
|
-
@page.parts.size.should == 3
|
153
|
-
|
154
|
-
@page.parts[0].value.should == 'Hello world'
|
155
|
-
@page.parts[1].disabled.should == true
|
156
|
-
@page.parts[2].disabled.should == false
|
157
|
-
end
|
158
|
-
|
159
|
-
it 'should update it with success (mongoid bug #71)' do
|
160
|
-
@page.save
|
161
|
-
@page = Page.first
|
162
|
-
|
163
|
-
@page.parts.size.should == 3
|
164
|
-
@page.parts_attributes = { '0' => { 'slug' => 'header', 'name' => 'A custom header', 'value' => 'Head of page' } }
|
165
|
-
@page.parts.size.should == 4
|
166
|
-
|
167
|
-
@page.save
|
168
|
-
@page = Page.first
|
169
|
-
|
170
|
-
@page.parts.size.should == 4
|
171
|
-
end
|
172
|
-
|
173
|
-
end
|
174
|
-
|
175
|
-
describe 'dealing with page parts' do # DUPLICATED ?
|
176
|
-
|
177
|
-
before(:each) do
|
178
|
-
@page = Factory.build(:page)
|
179
|
-
@parts = [
|
180
|
-
PagePart.new(:name => 'Main content', :slug => 'layout'),
|
181
|
-
PagePart.new(:name => 'Left column', :slug => 'left_sidebar'),
|
182
|
-
PagePart.new(:name => 'Right column', :slug => 'right_sidebar')
|
183
|
-
]
|
184
|
-
@page.send(:update_parts, @parts)
|
185
|
-
end
|
186
|
-
|
187
|
-
it 'should add new parts from an array of parts' do
|
188
|
-
@page.parts.size.should == 3
|
189
|
-
@page.parts.shift.name.should == 'Main content'
|
190
|
-
@page.parts.shift.name.should == 'Left column'
|
191
|
-
@page.parts.shift.name.should == 'Right column'
|
192
|
-
end
|
193
|
-
|
194
|
-
it 'should update parts' do
|
195
|
-
@parts[1].name = 'Very left column'
|
196
|
-
@page.send(:update_parts, @parts)
|
197
|
-
@page.parts.size.should == 3
|
198
|
-
@page.parts[1].name.should == 'Very left column'
|
199
|
-
@page.parts[1].slug.should == 'left_sidebar'
|
200
|
-
end
|
201
|
-
|
202
|
-
it 'should disable parts' do
|
203
|
-
@parts = [@parts.shift, @parts.pop]
|
204
|
-
@page.send(:update_parts, @parts)
|
205
|
-
@page.parts.size.should == 3
|
206
|
-
@page.parts[1].name.should == 'Left column'
|
207
|
-
@page.parts[1].disabled.should be_true
|
208
|
-
end
|
209
|
-
|
210
|
-
it 'should enable parts previously disabled' do
|
211
|
-
parts_at_first = @parts.clone
|
212
|
-
@parts = [@parts.shift, @parts.pop]
|
213
|
-
@page.send(:update_parts, @parts)
|
214
|
-
@page.send(:update_parts, parts_at_first)
|
215
|
-
@page.parts.size.should == 3
|
216
|
-
@page.parts[1].name.should == 'Left column'
|
217
|
-
@page.parts[1].disabled.should be_true
|
218
|
-
end
|
219
|
-
|
220
|
-
end
|
221
|
-
|
222
|
-
describe 'acts as tree' do
|
223
|
-
|
224
|
-
before(:each) do
|
225
|
-
@home = Factory(:page)
|
226
|
-
@child_1 = Factory(:page, :title => 'Subpage 1', :slug => 'foo', :parent_id => @home._id, :site => @home.site)
|
227
|
-
end
|
228
|
-
|
229
|
-
it 'should add root elements' do
|
230
|
-
page_404 = Factory(:page, :title => 'Page not found', :slug => '404', :site => @home.site)
|
231
|
-
Page.roots.count.should == 2
|
232
|
-
Page.roots.should == [@home, page_404]
|
233
|
-
end
|
234
|
-
|
235
|
-
it 'should add sub pages' do
|
236
|
-
child_2 = Factory(:page, :title => 'Subpage 2', :slug => 'bar', :parent => @home, :site => @home.site)
|
237
|
-
Page.first.children.count.should == 2
|
238
|
-
Page.first.children.should == [@child_1, child_2]
|
239
|
-
end
|
240
|
-
|
241
|
-
it 'should move its children accordingly' do
|
242
|
-
sub_child_1 = Factory(:page, :title => 'Sub Subpage 1', :slug => 'bar', :parent => @child_1, :site => @home.site)
|
243
|
-
archives = Factory(:page, :title => 'archives', :slug => 'archives', :parent => @home, :site => @home.site)
|
244
|
-
posts = Factory(:page, :title => 'posts', :slug => 'posts', :parent => archives, :site => @home.site)
|
245
|
-
|
246
|
-
@child_1.parent_id = archives._id
|
247
|
-
@child_1.save
|
248
|
-
|
249
|
-
@child_1.position.should == 2
|
250
|
-
@home.reload.children.count.should == 1
|
251
|
-
|
252
|
-
archives.reload.children.count.should == 2
|
253
|
-
archives.children.last.depth.should == 2
|
254
|
-
archives.children.last.position.should == 2
|
255
|
-
archives.children.last.children.first.depth.should == 3
|
256
|
-
end
|
257
|
-
|
258
|
-
it 'should generate a path / url from parents' do
|
259
|
-
@home.fullpath.should == 'index'
|
260
|
-
@home.url.should == 'http://acme.example.com/index.html'
|
261
|
-
|
262
|
-
@child_1.fullpath.should == 'foo'
|
263
|
-
@child_1.url.should == 'http://acme.example.com/foo.html'
|
264
|
-
|
265
|
-
nested_page = Factory(:page, :title => 'Sub sub page 1', :slug => 'bar', :parent => @child_1, :site => @home.site)
|
266
|
-
nested_page.fullpath.should == 'foo/bar'
|
267
|
-
nested_page.url.should == 'http://acme.example.com/foo/bar.html'
|
268
|
-
end
|
269
|
-
|
270
|
-
it 'should destroy descendants as well' do
|
271
|
-
Factory(:page, :title => 'Sub Subpage 1', :slug => 'bar', :parent_id => @child_1._id, :site => @home.site)
|
272
|
-
@child_1.destroy
|
273
|
-
Page.where(:slug => 'bar').first.should be_nil
|
274
|
-
end
|
275
|
-
|
276
|
-
end
|
277
|
-
|
278
|
-
describe 'acts as list' do
|
279
|
-
|
280
|
-
before(:each) do
|
281
|
-
@home = Factory(:page)
|
282
|
-
@child_1 = Factory(:page, :title => 'Subpage 1', :slug => 'foo', :parent => @home, :site => @home.site)
|
283
|
-
@child_2 = Factory(:page, :title => 'Subpage 2', :slug => 'bar', :parent => @home, :site => @home.site)
|
284
|
-
@child_3 = Factory(:page, :title => 'Subpage 3', :slug => 'acme', :parent => @home, :site => @home.site)
|
285
|
-
end
|
286
|
-
|
287
|
-
it 'should be at the bottom of the folder once created' do
|
288
|
-
[@child_1, @child_2, @child_3].each_with_index { |c, i| c.position.should == i + 1 }
|
289
|
-
end
|
290
|
-
|
291
|
-
it 'should have its position updated if a sibling is removed' do
|
292
|
-
@child_2.destroy
|
293
|
-
[@child_1, @child_3.reload].each_with_index { |c, i| c.position.should == i + 1 }
|
294
|
-
end
|
295
|
-
|
296
|
-
end
|
297
|
-
|
298
|
-
context 'rendering' do
|
299
|
-
|
300
|
-
before(:each) do
|
301
|
-
@page = Factory.build(:page, :site => nil)
|
302
|
-
@page.parts.build :slug => 'layout', :value => 'Hello world !'
|
303
|
-
@page.parts.build :slug => 'left_sidebar', :value => 'A sidebar...'
|
304
|
-
@page.send(:store_template)
|
305
|
-
@layout = Factory.build(:layout, :site => nil)
|
306
|
-
@layout.send(:store_template)
|
307
|
-
@context = Liquid::Context.new
|
308
|
-
end
|
309
|
-
|
310
|
-
context 'without layout' do
|
311
|
-
|
312
|
-
it 'should render the body part' do
|
313
|
-
@page.render(@context).should == 'Hello world !'
|
314
|
-
end
|
315
|
-
|
316
|
-
end
|
317
|
-
|
318
|
-
context 'with layout' do
|
319
|
-
|
320
|
-
it 'should render both the body and sidebar parts' do
|
321
|
-
@page.layout = @layout
|
322
|
-
@page.render(@context).should == %{<html>
|
323
|
-
<head>
|
324
|
-
<title>My website</title>
|
325
|
-
</head>
|
326
|
-
<body>
|
327
|
-
<div id="sidebar">A sidebar...</div>
|
328
|
-
<div id="main"><p>Hello world !</p></div>
|
329
|
-
</body>
|
330
|
-
</html>}
|
331
|
-
end
|
332
|
-
|
333
|
-
end
|
334
|
-
|
335
|
-
end
|
336
|
-
|
337
|
-
describe 'templatized extension' do
|
338
|
-
|
339
|
-
before(:each) do
|
340
|
-
@page = Factory.build(:page, :site => nil, :templatized => true, :content_type_id => 42)
|
341
|
-
ContentType.stubs(:find).returns(Factory.build(:content_type, :site => nil))
|
342
|
-
end
|
343
|
-
|
344
|
-
it 'is considered as a templatized page' do
|
345
|
-
@page.templatized?.should be_true
|
346
|
-
end
|
347
|
-
|
348
|
-
it 'fills in the slug field' do
|
349
|
-
@page.valid?
|
350
|
-
@page.slug.should == 'content_type_template'
|
351
|
-
end
|
352
|
-
|
353
|
-
it 'does forget to set the content type id' do
|
354
|
-
@page.content_type_id.should == '42'
|
355
|
-
end
|
356
|
-
|
357
|
-
end
|
358
|
-
end
|
data/spec/models/site_spec.rb
DELETED
@@ -1,147 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Site do
|
4
|
-
|
5
|
-
before(:each) do
|
6
|
-
Locomotive.stubs(:add_heroku_domain).returns(true)
|
7
|
-
end
|
8
|
-
|
9
|
-
it 'should have a valid factory' do
|
10
|
-
Factory.build(:site).should be_valid
|
11
|
-
end
|
12
|
-
|
13
|
-
## Validations ##
|
14
|
-
|
15
|
-
it 'should validate presence of name' do
|
16
|
-
site = Factory.build(:site, :name => nil)
|
17
|
-
site.should_not be_valid
|
18
|
-
site.errors[:name].should == ["can't be blank"]
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should validate presence of subdomain' do
|
22
|
-
site = Factory.build(:site, :subdomain => nil)
|
23
|
-
site.should_not be_valid
|
24
|
-
site.errors[:subdomain].should == ["can't be blank"]
|
25
|
-
end
|
26
|
-
|
27
|
-
%w{test test42}.each do |subdomain|
|
28
|
-
it "should accept subdomain like '#{subdomain}'" do
|
29
|
-
Factory.build(:site, :subdomain => subdomain).should be_valid
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
['-', '_test', 'test_', 't est', '42', '42test', 'foo_bar'].each do |subdomain|
|
34
|
-
it "should not accept subdomain like '#{subdomain}'" do
|
35
|
-
(site = Factory.build(:site, :subdomain => subdomain)).should_not be_valid
|
36
|
-
site.errors[:subdomain].should == ['is invalid']
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
it "should not use reserved keywords as subdomain" do
|
41
|
-
%w{www admin email blog webmail mail support help site sites}.each do |subdomain|
|
42
|
-
(site = Factory.build(:site, :subdomain => subdomain)).should_not be_valid
|
43
|
-
site.errors[:subdomain].should == ['is reserved']
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
it 'should validate uniqueness of subdomain' do
|
48
|
-
Factory(:site)
|
49
|
-
(site = Factory.build(:site)).should_not be_valid
|
50
|
-
site.errors[:subdomain].should == ["is already taken"]
|
51
|
-
end
|
52
|
-
|
53
|
-
it 'should validate uniqueness of domains' do
|
54
|
-
Factory(:site, :domains => %w{www.acme.net www.acme.com})
|
55
|
-
|
56
|
-
(site = Factory.build(:site, :domains => %w{www.acme.com})).should_not be_valid
|
57
|
-
site.errors[:domains].should == ["www.acme.com is already taken"]
|
58
|
-
|
59
|
-
(site = Factory.build(:site, :subdomain => 'foo', :domains => %w{acme.example.com})).should_not be_valid
|
60
|
-
site.errors[:domains].should == ["acme.example.com is already taken"]
|
61
|
-
end
|
62
|
-
|
63
|
-
it 'should validate format of domains' do
|
64
|
-
site = Factory.build(:site, :domains => ['barformat.superlongextension', '-foo.net'])
|
65
|
-
site.should_not be_valid
|
66
|
-
site.errors[:domains].should == ['barformat.superlongextension is invalid', '-foo.net is invalid']
|
67
|
-
end
|
68
|
-
|
69
|
-
## Named scopes ##
|
70
|
-
|
71
|
-
it 'should retrieve sites by domain' do
|
72
|
-
site_1 = Factory(:site, :domains => %w{www.acme.net})
|
73
|
-
site_2 = Factory(:site, :subdomain => 'test', :domains => %w{www.example.com})
|
74
|
-
|
75
|
-
sites = Site.match_domain('www.acme.net')
|
76
|
-
sites.size.should == 1
|
77
|
-
sites.first.should == site_1
|
78
|
-
|
79
|
-
sites = Site.match_domain('www.example.com')
|
80
|
-
sites.size.should == 1
|
81
|
-
sites.first.should == site_2
|
82
|
-
|
83
|
-
sites = Site.match_domain('test.example.com')
|
84
|
-
sites.size.should == 1
|
85
|
-
sites.first.should == site_2
|
86
|
-
|
87
|
-
sites = Site.match_domain('www.unknown.com')
|
88
|
-
sites.should be_empty
|
89
|
-
end
|
90
|
-
|
91
|
-
## Associations ##
|
92
|
-
|
93
|
-
it 'should have many accounts' do
|
94
|
-
site = Factory.build(:site)
|
95
|
-
account_1, account_2 = Factory(:account), Factory(:account, :name => 'homer', :email => 'homer@simpson.net')
|
96
|
-
site.memberships.build(:account => account_1, :admin => true)
|
97
|
-
site.memberships.build(:account => account_2)
|
98
|
-
site.memberships.size.should == 2
|
99
|
-
site.accounts.should == [account_1, account_2]
|
100
|
-
end
|
101
|
-
|
102
|
-
## Methods ##
|
103
|
-
|
104
|
-
it 'should return domains without subdomain' do
|
105
|
-
site = Factory(:site, :domains => %w{www.acme.net www.acme.com})
|
106
|
-
site.domains.should == %w{www.acme.net www.acme.com acme.example.com}
|
107
|
-
site.domains_without_subdomain.should == %w{www.acme.net www.acme.com}
|
108
|
-
end
|
109
|
-
|
110
|
-
describe 'once created' do
|
111
|
-
|
112
|
-
before(:each) do
|
113
|
-
@site = Factory(:site)
|
114
|
-
end
|
115
|
-
|
116
|
-
it 'should create index and 404 pages' do
|
117
|
-
@site.pages.size.should == 2
|
118
|
-
@site.pages.first.slug.should == 'index'
|
119
|
-
@site.pages.last.slug.should == '404'
|
120
|
-
end
|
121
|
-
|
122
|
-
end
|
123
|
-
|
124
|
-
describe 'delete in cascade' do
|
125
|
-
|
126
|
-
before(:each) do
|
127
|
-
@site = Factory(:site)
|
128
|
-
end
|
129
|
-
|
130
|
-
it 'should destroy pages' do
|
131
|
-
@site.pages.expects(:destroy_all)
|
132
|
-
@site.destroy
|
133
|
-
end
|
134
|
-
|
135
|
-
it 'should destroy layouts' do
|
136
|
-
@site.layouts.expects(:destroy_all)
|
137
|
-
@site.destroy
|
138
|
-
end
|
139
|
-
|
140
|
-
it 'should destroy snippets' do
|
141
|
-
@site.snippets.expects(:destroy_all)
|
142
|
-
@site.destroy
|
143
|
-
end
|
144
|
-
|
145
|
-
end
|
146
|
-
|
147
|
-
end
|
data/spec/models/snippet_spec.rb
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe ThemeAsset do
|
4
|
-
|
5
|
-
describe 'attaching a file' do
|
6
|
-
|
7
|
-
before(:each) do
|
8
|
-
ThemeAsset.any_instance.stubs(:site_id).returns('test')
|
9
|
-
@asset = Factory.build(:theme_asset)
|
10
|
-
end
|
11
|
-
|
12
|
-
describe 'file is a picture' do
|
13
|
-
|
14
|
-
it 'should process picture' do
|
15
|
-
@asset.source = FixturedAsset.open('5k.png')
|
16
|
-
@asset.source.file.content_type.should_not be_nil
|
17
|
-
@asset.image?.should be_true
|
18
|
-
end
|
19
|
-
|
20
|
-
it 'should get width and height from the image' do
|
21
|
-
@asset.source = FixturedAsset.open('5k.png')
|
22
|
-
@asset.width.should == 32
|
23
|
-
@asset.height.should == 32
|
24
|
-
end
|
25
|
-
|
26
|
-
it 'should have a slug' do
|
27
|
-
@asset.source = FixturedAsset.open('5k.png')
|
28
|
-
@asset.save
|
29
|
-
@asset.slug.should == '5k'
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
describe 'file is not allowed' do
|
35
|
-
|
36
|
-
it 'should not be valid' do
|
37
|
-
@asset.source = FixturedAsset.open('wrong.txt')
|
38
|
-
@asset.valid?.should be_false
|
39
|
-
@asset.errors[:source].should_not be_blank
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
it 'should process stylesheet' do
|
45
|
-
@asset.source = FixturedAsset.open('main.css')
|
46
|
-
@asset.source.file.content_type.should_not be_nil
|
47
|
-
@asset.stylesheet?.should be_true
|
48
|
-
end
|
49
|
-
|
50
|
-
it 'should process javascript' do
|
51
|
-
@asset.source = FixturedAsset.open('application.js')
|
52
|
-
@asset.source.file.content_type.should_not be_nil
|
53
|
-
@asset.javascript?.should be_true
|
54
|
-
end
|
55
|
-
|
56
|
-
it 'should get size' do
|
57
|
-
@asset.source = FixturedAsset.open('main.css')
|
58
|
-
@asset.size.should == 25
|
59
|
-
end
|
60
|
-
|
61
|
-
end
|
62
|
-
|
63
|
-
describe 'creating from plain text' do
|
64
|
-
|
65
|
-
before(:each) do
|
66
|
-
ThemeAsset.any_instance.stubs(:site_id).returns('test')
|
67
|
-
@asset = Factory.build(:theme_asset)
|
68
|
-
@asset.performing_plain_text = true
|
69
|
-
@asset.slug = 'a file'
|
70
|
-
@asset.plain_text = "Lorem ipsum"
|
71
|
-
end
|
72
|
-
|
73
|
-
it 'should handle stylesheet' do
|
74
|
-
@asset.content_type = 'stylesheet'
|
75
|
-
@asset.valid?.should be_true
|
76
|
-
@asset.stylesheet?.should be_true
|
77
|
-
@asset.source.should_not be_nil
|
78
|
-
end
|
79
|
-
|
80
|
-
it 'should handle javascript' do
|
81
|
-
@asset.content_type = 'javascript'
|
82
|
-
@asset.valid?.should be_true
|
83
|
-
@asset.javascript?.should be_true
|
84
|
-
@asset.source.should_not be_nil
|
85
|
-
end
|
86
|
-
|
87
|
-
end
|
88
|
-
|
89
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
2
|
-
# from the project root directory.
|
3
|
-
ENV["RAILS_ENV"] ||= 'test'
|
4
|
-
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
|
5
|
-
require 'rspec/rails'
|
6
|
-
|
7
|
-
# Requires supporting files with custom matchers and macros, etc,
|
8
|
-
# in ./support/ and its subdirectories.
|
9
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
10
|
-
|
11
|
-
Rspec.configure do |config|
|
12
|
-
config.mock_with :mocha
|
13
|
-
|
14
|
-
config.before(:each) do
|
15
|
-
Locomotive.config.heroku = false
|
16
|
-
Mongoid.master.collections.select { |c| c.name != 'system.indexes' }.each(&:drop)
|
17
|
-
end
|
18
|
-
end
|
data/spec/support/be_valid.rb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
module Spec
|
2
|
-
module Rails
|
3
|
-
module Matchers
|
4
|
-
class BeValid #:nodoc:
|
5
|
-
|
6
|
-
def matches?(model)
|
7
|
-
@model = model
|
8
|
-
@model.errors.clear
|
9
|
-
@model.errors.empty? && @model.valid?
|
10
|
-
end
|
11
|
-
|
12
|
-
def failure_message
|
13
|
-
"#{@model.class} expected to be valid but had errors:\n #{@model.errors.full_messages.join("\n ")}"
|
14
|
-
end
|
15
|
-
|
16
|
-
def negative_failure_message
|
17
|
-
"#{@model.class} expected to be invalid but was valid.\n"
|
18
|
-
end
|
19
|
-
|
20
|
-
def description
|
21
|
-
"be valid"
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
def be_valid
|
27
|
-
BeValid.new
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
data/spec/support/carrierwave.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'carrierwave/test/matchers'
|
2
|
-
|
3
|
-
CarrierWave.configure do |config|
|
4
|
-
config.storage = :file
|
5
|
-
config.store_dir = "spec/tmp/uploads"
|
6
|
-
config.cache_dir = "spec/tmp/cache"
|
7
|
-
config.root = File.join(Rails.root, 'spec', 'tmp')
|
8
|
-
# config.enable_processing = false
|
9
|
-
end
|
10
|
-
|
11
|
-
module FixturedAsset
|
12
|
-
def self.open(filename)
|
13
|
-
File.new(self.path(filename))
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.path(filename)
|
17
|
-
File.join(File.dirname(__FILE__), '..', 'fixtures', 'assets', filename)
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.duplicate(filename)
|
21
|
-
dst = File.join(File.dirname(__FILE__), '..', 'tmp', filename)
|
22
|
-
FileUtils.cp self.path(filename), dst
|
23
|
-
dst
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.reset!
|
27
|
-
FileUtils.rm_rf(File.join(File.dirname(__FILE__), '..', 'tmp'))
|
28
|
-
FileUtils.mkdir(File.join(File.dirname(__FILE__), '..', 'tmp'))
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
FixturedAsset.reset!
|