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
@@ -0,0 +1,107 @@
|
|
1
|
+
module Models
|
2
|
+
module Extensions
|
3
|
+
module Page
|
4
|
+
module Parse
|
5
|
+
|
6
|
+
extend ActiveSupport::Concern
|
7
|
+
|
8
|
+
included do
|
9
|
+
field :serialized_template, :type => Binary
|
10
|
+
field :template_dependencies, :type => Array, :default => []
|
11
|
+
field :snippet_dependencies, :type => Array, :default => []
|
12
|
+
|
13
|
+
attr_reader :template_changed
|
14
|
+
|
15
|
+
before_validation :serialize_template
|
16
|
+
after_save :update_template_descendants
|
17
|
+
|
18
|
+
validate :template_must_be_valid
|
19
|
+
|
20
|
+
scope :pages, lambda { |domain| { :any_in => { :domains => [*domain] } } }
|
21
|
+
end
|
22
|
+
|
23
|
+
module InstanceMethods
|
24
|
+
|
25
|
+
def template
|
26
|
+
@template ||= Marshal.load(read_attribute(:serialized_template).to_s) rescue nil
|
27
|
+
end
|
28
|
+
|
29
|
+
protected
|
30
|
+
|
31
|
+
def serialize_template
|
32
|
+
if self.new_record? || self.raw_template_changed?
|
33
|
+
@template_changed = true
|
34
|
+
|
35
|
+
@parsing_errors = []
|
36
|
+
|
37
|
+
begin
|
38
|
+
self._parse_and_serialize_template
|
39
|
+
rescue ::Liquid::SyntaxError => error
|
40
|
+
@parsing_errors << :liquid_syntax
|
41
|
+
rescue ::Locomotive::Liquid::PageNotFound => error
|
42
|
+
@parsing_errors << :liquid_extend
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def _parse_and_serialize_template(context = {})
|
48
|
+
self.parse(context)
|
49
|
+
self._serialize_template
|
50
|
+
end
|
51
|
+
|
52
|
+
def _serialize_template
|
53
|
+
self.serialized_template = BSON::Binary.new(Marshal.dump(@template))
|
54
|
+
end
|
55
|
+
|
56
|
+
def parse(context = {})
|
57
|
+
self.disable_all_editable_elements
|
58
|
+
|
59
|
+
default_context = { :site => self.site, :page => self, :templates => [], :snippets => [] }
|
60
|
+
|
61
|
+
context = default_context.merge(context)
|
62
|
+
|
63
|
+
@template = ::Liquid::Template.parse(self.raw_template, context)
|
64
|
+
|
65
|
+
self.template_dependencies = context[:templates]
|
66
|
+
self.snippet_dependencies = context[:snippets]
|
67
|
+
|
68
|
+
@template.root.context.clear
|
69
|
+
end
|
70
|
+
|
71
|
+
def template_must_be_valid
|
72
|
+
@parsing_errors.try(:each) { |msg| self.errors.add :template, msg }
|
73
|
+
end
|
74
|
+
|
75
|
+
def update_template_descendants
|
76
|
+
return unless @template_changed == true
|
77
|
+
|
78
|
+
# we admit at this point that the current template is up-to-date
|
79
|
+
template_descendants = self.site.pages.any_in(:template_dependencies => [self.id]).to_a
|
80
|
+
|
81
|
+
# group them by fullpath for better performance
|
82
|
+
cached = template_descendants.inject({}) { |memo, page| memo[page.fullpath] = page; memo }
|
83
|
+
|
84
|
+
self._update_direct_template_descendants(template_descendants, cached)
|
85
|
+
|
86
|
+
# finally save them all
|
87
|
+
template_descendants.map(&:save)
|
88
|
+
end
|
89
|
+
|
90
|
+
def _update_direct_template_descendants(template_descendants, cached)
|
91
|
+
direct_descendants = template_descendants.select do |page|
|
92
|
+
((page.template_dependencies || []) - (self.template_dependencies || [])).size == 1
|
93
|
+
end
|
94
|
+
|
95
|
+
direct_descendants.each do |page|
|
96
|
+
page.send(:_parse_and_serialize_template, { :cached_parent => self, :cached_pages => cached })
|
97
|
+
|
98
|
+
page.send(:_update_direct_template_descendants, template_descendants, cached)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -1,19 +1,13 @@
|
|
1
|
-
module Models
|
2
|
-
module Extensions
|
3
|
-
module Page
|
1
|
+
module Models
|
2
|
+
module Extensions
|
3
|
+
module Page
|
4
4
|
module Render
|
5
5
|
|
6
6
|
def render(context)
|
7
7
|
self.template.render(context)
|
8
|
-
|
9
|
-
if self.layout
|
10
|
-
self.layout.template.render(context)
|
11
|
-
else
|
12
|
-
::Liquid::Template.parse("{{ content_for_layout }}").render(context)
|
13
|
-
end
|
14
8
|
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -1,32 +1,32 @@
|
|
1
|
-
module Models
|
2
|
-
module Extensions
|
3
|
-
module Page
|
4
|
-
module Templatized
|
1
|
+
module Models
|
2
|
+
module Extensions
|
3
|
+
module Page
|
4
|
+
module Templatized
|
5
5
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
8
|
included do
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
|
10
|
+
referenced_in :content_type
|
11
|
+
|
12
12
|
field :templatized, :type => Boolean, :default => false
|
13
|
-
|
13
|
+
|
14
14
|
field :content_type_visible_column
|
15
|
-
|
16
|
-
|
15
|
+
|
16
|
+
before_validation :set_slug_if_templatized
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
module InstanceMethods
|
20
|
-
|
20
|
+
|
21
21
|
def set_slug_if_templatized
|
22
22
|
self.slug = 'content_type_template' if self.templatized?
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
31
|
-
|
32
|
-
|
31
|
+
|
32
|
+
|
@@ -1,21 +1,21 @@
|
|
1
|
-
module Models
|
2
|
-
module Extensions
|
3
|
-
module Page
|
4
|
-
module Tree
|
1
|
+
module Models
|
2
|
+
module Extensions
|
3
|
+
module Page
|
4
|
+
module Tree
|
5
5
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
8
|
included do
|
9
9
|
include Mongoid::Acts::Tree
|
10
|
-
|
10
|
+
|
11
11
|
## fields ##
|
12
12
|
field :position, :type => Integer
|
13
|
-
|
13
|
+
|
14
14
|
## behaviours ##
|
15
15
|
acts_as_tree :order => ['position', 'asc']
|
16
|
-
|
16
|
+
|
17
17
|
## callbacks ##
|
18
|
-
|
18
|
+
before_validation :reset_parent
|
19
19
|
before_save { |p| p.send(:write_attribute, :parent_id, nil) if p.parent_id.blank? }
|
20
20
|
before_save :change_parent
|
21
21
|
before_create { |p| p.send(:fix_position, false) }
|
@@ -24,10 +24,11 @@ module Models
|
|
24
24
|
|
25
25
|
# Fixme (Didier L.): Instances methods are defined before the include itself
|
26
26
|
alias :fix_position :hacked_fix_position
|
27
|
-
|
28
|
-
|
27
|
+
alias :descendants :hacked_descendants
|
28
|
+
end
|
29
|
+
|
29
30
|
module InstanceMethods
|
30
|
-
|
31
|
+
|
31
32
|
def sort_children!(ids)
|
32
33
|
ids.each_with_index do |id, position|
|
33
34
|
child = self.children.detect { |p| p._id == id }
|
@@ -35,15 +36,23 @@ module Models
|
|
35
36
|
child.save
|
36
37
|
end
|
37
38
|
end
|
38
|
-
|
39
|
+
|
39
40
|
def parent=(owner) # missing in acts_as_tree
|
40
41
|
@_parent = owner
|
41
42
|
self.fix_position(false)
|
42
43
|
self.instance_variable_set :@_will_move, true
|
43
44
|
end
|
44
|
-
|
45
|
+
|
46
|
+
def hacked_descendants
|
47
|
+
# workorund for mongoid unexpected behavior
|
48
|
+
_new_record_var = self.instance_variable_get(:@new_record)
|
49
|
+
_new_record = _new_record_var != false
|
50
|
+
return [] if _new_record
|
51
|
+
self.class.all_in(path_field => [self._id]).order_by tree_order
|
52
|
+
end
|
53
|
+
|
45
54
|
protected
|
46
|
-
|
55
|
+
|
47
56
|
def change_parent
|
48
57
|
if self.parent_id_changed?
|
49
58
|
self.fix_position(false)
|
@@ -63,15 +72,15 @@ module Models
|
|
63
72
|
self[depth_field] = parent[depth_field] + 1
|
64
73
|
self.save if perform_save
|
65
74
|
end
|
66
|
-
end
|
67
|
-
|
75
|
+
end
|
76
|
+
|
68
77
|
def reset_parent
|
69
78
|
if self.parent_id_changed?
|
70
79
|
@_parent = nil
|
71
80
|
end
|
72
81
|
end
|
73
|
-
|
74
|
-
def add_to_list_bottom
|
82
|
+
|
83
|
+
def add_to_list_bottom
|
75
84
|
self.position = (::Page.where(:_id.ne => self._id).and(:parent_id => self.parent_id).max(:position) || 0) + 1
|
76
85
|
end
|
77
86
|
|
@@ -83,9 +92,9 @@ module Models
|
|
83
92
|
p.save
|
84
93
|
end
|
85
94
|
end
|
86
|
-
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
95
|
+
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
data/app/models/membership.rb
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
class Membership
|
2
|
-
|
2
|
+
|
3
3
|
include Locomotive::Mongoid::Document
|
4
|
-
|
4
|
+
|
5
5
|
## fields ##
|
6
6
|
field :admin, :type => Boolean, :default => false
|
7
|
-
|
7
|
+
|
8
8
|
## associations ##
|
9
|
-
|
9
|
+
referenced_in :account
|
10
10
|
embedded_in :site, :inverse_of => :memberships
|
11
|
-
|
11
|
+
|
12
12
|
## validations ##
|
13
13
|
validates_presence_of :account
|
14
|
-
|
14
|
+
|
15
15
|
## methods ##
|
16
|
-
|
16
|
+
|
17
17
|
def email; @email; end
|
18
|
-
|
18
|
+
|
19
19
|
def email=(email)
|
20
20
|
@email = email
|
21
21
|
self.account = Account.where(:email => email).first
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def process!
|
25
25
|
if @email.blank?
|
26
26
|
self.errors.add_on_blank(:email)
|
27
27
|
:error
|
28
|
-
elsif self.account.
|
28
|
+
elsif self.account.blank?
|
29
29
|
:create_account
|
30
30
|
elsif self.site.memberships.find_all { |m| m.account_id == self.account_id }.size > 1
|
31
31
|
self.errors.add(:base, 'Already created')
|
@@ -35,5 +35,5 @@ class Membership
|
|
35
35
|
:save_it
|
36
36
|
end
|
37
37
|
end
|
38
|
-
|
39
|
-
end
|
38
|
+
|
39
|
+
end
|
data/app/models/page.rb
CHANGED
@@ -1,99 +1,101 @@
|
|
1
1
|
class Page
|
2
|
-
|
2
|
+
|
3
3
|
include Locomotive::Mongoid::Document
|
4
4
|
|
5
|
-
## Extensions ##
|
5
|
+
## Extensions ##
|
6
6
|
include Models::Extensions::Page::Tree
|
7
|
-
include Models::Extensions::Page::
|
7
|
+
include Models::Extensions::Page::EditableElements
|
8
|
+
include Models::Extensions::Page::Parse
|
8
9
|
include Models::Extensions::Page::Render
|
9
10
|
include Models::Extensions::Page::Templatized
|
10
|
-
|
11
|
+
|
11
12
|
## fields ##
|
12
13
|
field :title
|
13
14
|
field :slug
|
14
15
|
field :fullpath
|
16
|
+
field :raw_template
|
15
17
|
field :published, :type => Boolean, :default => false
|
16
18
|
field :cache_strategy, :default => 'none'
|
17
|
-
|
19
|
+
|
18
20
|
## associations ##
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
referenced_in :site
|
22
|
+
|
23
|
+
## indexes ##
|
24
|
+
index :site_id
|
25
|
+
index :parent_id
|
26
|
+
index [[:fullpath, Mongo::ASCENDING], [:site_id, Mongo::ASCENDING]]
|
27
|
+
|
23
28
|
## callbacks ##
|
24
|
-
|
29
|
+
before_validation :normalize_slug
|
25
30
|
before_save { |p| p.fullpath = p.fullpath(true) }
|
26
31
|
before_destroy :do_not_remove_index_and_404_pages
|
27
|
-
|
32
|
+
|
28
33
|
## validations ##
|
29
34
|
validates_presence_of :site, :title, :slug
|
30
35
|
validates_uniqueness_of :slug, :scope => [:site_id, :parent_id]
|
31
36
|
validates_exclusion_of :slug, :in => Locomotive.config.reserved_slugs, :if => Proc.new { |p| p.depth == 0 }
|
32
|
-
|
37
|
+
|
33
38
|
## named scopes ##
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
## behaviours ##
|
40
|
-
liquify_template :joined_parts
|
41
|
-
|
39
|
+
scope :latest_updated, :order_by => [[:updated_at, :desc]], :limit => Locomotive.config.lastest_items_nb
|
40
|
+
scope :index, :where => { :slug => 'index', :depth => 0 }
|
41
|
+
scope :not_found, :where => { :slug => '404', :depth => 0 }
|
42
|
+
scope :published, :where => { :published => true }
|
43
|
+
|
42
44
|
## methods ##
|
43
|
-
|
45
|
+
|
44
46
|
def index?
|
45
47
|
self.slug == 'index' && self.depth.to_i == 0
|
46
48
|
end
|
47
|
-
|
49
|
+
|
48
50
|
def not_found?
|
49
51
|
self.slug == '404' && self.depth.to_i == 0
|
50
52
|
end
|
51
|
-
|
53
|
+
|
52
54
|
def index_or_not_found?
|
53
55
|
self.index? || self.not_found?
|
54
56
|
end
|
55
|
-
|
57
|
+
|
56
58
|
def fullpath(force = false)
|
57
59
|
if read_attribute(:fullpath).present? && !force
|
58
60
|
return read_attribute(:fullpath)
|
59
61
|
end
|
60
|
-
|
62
|
+
|
61
63
|
if self.index? || self.not_found?
|
62
64
|
self.slug
|
63
65
|
else
|
64
66
|
slugs = self.self_and_ancestors.map(&:slug)
|
65
|
-
slugs.shift
|
67
|
+
slugs.shift unless slugs.size == 1
|
66
68
|
File.join slugs
|
67
69
|
end
|
68
70
|
end
|
69
|
-
|
71
|
+
|
70
72
|
def url
|
71
73
|
"http://#{self.site.domains.first}/#{self.fullpath}.html"
|
72
74
|
end
|
73
|
-
|
75
|
+
|
74
76
|
def with_cache?
|
75
77
|
self.cache_strategy != 'none'
|
76
78
|
end
|
77
|
-
|
78
|
-
def to_liquid
|
79
|
+
|
80
|
+
def to_liquid
|
79
81
|
Locomotive::Liquid::Drops::Page.new(self)
|
80
82
|
end
|
81
|
-
|
83
|
+
|
82
84
|
protected
|
83
|
-
|
85
|
+
|
84
86
|
def do_not_remove_index_and_404_pages
|
85
87
|
return if (self.site rescue nil).nil?
|
86
|
-
|
88
|
+
|
87
89
|
if self.index? || self.not_found?
|
88
90
|
self.errors[:base] << I18n.t('errors.messages.protected_page')
|
89
91
|
end
|
90
|
-
|
92
|
+
|
91
93
|
self.errors.empty?
|
92
94
|
end
|
93
|
-
|
94
|
-
def normalize_slug
|
95
|
-
self.slug = self.title.clone if self.slug.blank? && self.title.present?
|
95
|
+
|
96
|
+
def normalize_slug
|
97
|
+
self.slug = self.title.clone if self.slug.blank? && self.title.present?
|
96
98
|
self.slug.slugify!(:without_extension => true) if self.slug.present?
|
97
99
|
end
|
98
|
-
|
99
|
-
end
|
100
|
+
|
101
|
+
end
|
data/app/models/site.rb
CHANGED
@@ -1,95 +1,100 @@
|
|
1
1
|
class Site
|
2
|
-
|
2
|
+
|
3
3
|
include Locomotive::Mongoid::Document
|
4
|
-
|
4
|
+
|
5
5
|
## fields ##
|
6
6
|
field :name
|
7
7
|
field :subdomain
|
8
8
|
field :domains, :type => Array, :default => []
|
9
9
|
field :meta_keywords
|
10
10
|
field :meta_description
|
11
|
-
|
11
|
+
|
12
12
|
## associations ##
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
has_many_related :content_types
|
13
|
+
references_many :pages
|
14
|
+
references_many :snippets, :dependent => :destroy
|
15
|
+
references_many :theme_assets, :dependent => :destroy
|
16
|
+
references_many :asset_collections, :dependent => :destroy
|
17
|
+
references_many :content_types, :dependent => :destroy
|
19
18
|
embeds_many :memberships
|
20
|
-
|
19
|
+
|
20
|
+
## indexes
|
21
|
+
index :domains
|
22
|
+
|
21
23
|
## validations ##
|
22
24
|
validates_presence_of :name, :subdomain
|
23
25
|
validates_uniqueness_of :subdomain
|
24
26
|
validates_exclusion_of :subdomain, :in => Locomotive.config.reserved_subdomains
|
25
27
|
validates_format_of :subdomain, :with => Locomotive::Regexps::SUBDOMAIN, :allow_blank => true
|
26
|
-
validate :domains_must_be_valid_and_unique
|
27
|
-
|
28
|
+
validate :domains_must_be_valid_and_unique
|
29
|
+
|
28
30
|
## callbacks ##
|
29
31
|
after_create :create_default_pages!
|
30
32
|
before_save :add_subdomain_to_domains
|
31
|
-
after_destroy :
|
32
|
-
|
33
|
+
after_destroy :destroy_pages
|
34
|
+
|
33
35
|
## named scopes ##
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
36
|
+
scope :match_domain, lambda { |domain| { :any_in => { :domains => [*domain] } } }
|
37
|
+
scope :match_domain_with_exclusion_of, lambda { |domain, site|
|
38
|
+
{ :any_in => { :domains => [*domain] }, :where => { :_id.ne => site.id } }
|
39
|
+
}
|
40
|
+
|
40
41
|
## methods ##
|
41
42
|
|
42
43
|
def accounts
|
43
44
|
Account.criteria.in(:_id => self.memberships.collect(&:account_id))
|
44
45
|
end
|
45
|
-
|
46
|
+
|
46
47
|
def admin_memberships
|
47
48
|
self.memberships.find_all { |m| m.admin? }
|
48
49
|
end
|
49
|
-
|
50
|
+
|
50
51
|
def add_subdomain_to_domains
|
51
|
-
self.domains ||= []
|
52
|
+
self.domains ||= []
|
52
53
|
(self.domains << "#{self.subdomain}.#{Locomotive.config.default_domain}").uniq!
|
53
54
|
end
|
54
|
-
|
55
|
+
|
55
56
|
def domains_without_subdomain
|
56
57
|
(self.domains || []) - ["#{self.subdomain}.#{Locomotive.config.default_domain}"]
|
57
58
|
end
|
58
|
-
|
59
|
+
|
59
60
|
def domains_with_subdomain
|
60
61
|
((self.domains || []) + ["#{self.subdomain}.#{Locomotive.config.default_domain}"]).uniq
|
61
62
|
end
|
62
|
-
|
63
|
+
|
64
|
+
def to_liquid
|
65
|
+
Locomotive::Liquid::Drops::Site.new(self)
|
66
|
+
end
|
67
|
+
|
63
68
|
protected
|
64
|
-
|
69
|
+
|
65
70
|
def domains_must_be_valid_and_unique
|
66
71
|
return if self.domains.empty?
|
67
|
-
|
72
|
+
|
68
73
|
self.domains_without_subdomain.each do |domain|
|
69
|
-
if
|
74
|
+
if self.class.match_domain_with_exclusion_of(domain, self).any?
|
70
75
|
self.errors.add(:domains, :domain_taken, :value => domain)
|
71
76
|
end
|
72
|
-
|
77
|
+
|
73
78
|
if not domain =~ Locomotive::Regexps::DOMAIN
|
74
79
|
self.errors.add(:domains, :invalid_domain, :value => domain)
|
75
80
|
end
|
76
81
|
end
|
77
82
|
end
|
78
|
-
|
83
|
+
|
79
84
|
def create_default_pages!
|
80
85
|
%w{index 404}.each do |slug|
|
81
86
|
self.pages.create({
|
82
|
-
:slug => slug,
|
83
|
-
:title => I18n.t("attributes.defaults.pages.#{slug}.title"),
|
84
|
-
:
|
87
|
+
:slug => slug,
|
88
|
+
:title => I18n.t("attributes.defaults.pages.#{slug}.title"),
|
89
|
+
:raw_template => I18n.t("attributes.defaults.pages.#{slug}.body"),
|
90
|
+
:published => true
|
85
91
|
})
|
86
92
|
end
|
87
93
|
end
|
88
|
-
|
89
|
-
def
|
90
|
-
|
91
|
-
|
92
|
-
end
|
94
|
+
|
95
|
+
def destroy_pages
|
96
|
+
# pages is a tree so we just need to delete the root (as well as the page not found page)
|
97
|
+
self.pages.index.first.try(:destroy) && self.pages.not_found.first.try(:destroy)
|
93
98
|
end
|
94
|
-
|
95
|
-
end
|
99
|
+
|
100
|
+
end
|
data/app/models/snippet.rb
CHANGED
@@ -1,3 +1,64 @@
|
|
1
|
-
class Snippet
|
1
|
+
class Snippet
|
2
2
|
|
3
|
-
|
3
|
+
include Locomotive::Mongoid::Document
|
4
|
+
|
5
|
+
## fields ##
|
6
|
+
field :name
|
7
|
+
field :slug
|
8
|
+
field :template
|
9
|
+
|
10
|
+
## associations ##
|
11
|
+
referenced_in :site
|
12
|
+
|
13
|
+
## callbacks ##
|
14
|
+
before_validation :normalize_slug
|
15
|
+
after_save :update_templates
|
16
|
+
after_destroy :update_templates
|
17
|
+
|
18
|
+
# TODO: after_save callback to let pages embedding this snippet know about the changes the user has just made.
|
19
|
+
|
20
|
+
## validations ##
|
21
|
+
validates_presence_of :site, :name, :slug, :template
|
22
|
+
validates_uniqueness_of :slug, :scope => :site_id
|
23
|
+
|
24
|
+
## methods ##
|
25
|
+
|
26
|
+
protected
|
27
|
+
|
28
|
+
def normalize_slug
|
29
|
+
# TODO: refactor it
|
30
|
+
self.slug = self.name.clone if self.slug.blank? && self.name.present?
|
31
|
+
self.slug.slugify!(:without_extension => true, :downcase => true) if self.slug.present?
|
32
|
+
end
|
33
|
+
|
34
|
+
def update_templates
|
35
|
+
return unless (self.site rescue false) # not run if the site is being destroyed
|
36
|
+
|
37
|
+
pages = self.site.pages.any_in(:snippet_dependencies => [self.slug]).to_a
|
38
|
+
|
39
|
+
pages.each do |page|
|
40
|
+
self._change_snippet_inside_template(page.template.root)
|
41
|
+
|
42
|
+
page.instance_variable_set(:@template_changed, true)
|
43
|
+
|
44
|
+
page.send(:_serialize_template) && page.save
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def _change_snippet_inside_template(node)
|
49
|
+
case node
|
50
|
+
when Locomotive::Liquid::Tags::Snippet
|
51
|
+
node.refresh(self) if node.slug == self.slug
|
52
|
+
when Locomotive::Liquid::Tags::InheritedBlock
|
53
|
+
self._change_snippet_inside_template(node.parent) if node.parent
|
54
|
+
else
|
55
|
+
if node.respond_to?(:nodelist)
|
56
|
+
(node.nodelist || []).each do |child|
|
57
|
+
self._change_snippet_inside_template(child)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
end
|