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/Gemfile
CHANGED
@@ -1,46 +1,60 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
gem 'rails', '3.0.0
|
6
|
-
|
7
|
-
gem 'liquid', '2.0.0'
|
8
|
-
gem 'bson_ext', '>= 1.0.1'
|
9
|
-
gem 'mongo_ext'
|
10
|
-
gem 'mongoid', '2.0.0.beta6'
|
11
|
-
gem 'mongoid_acts_as_tree', '0.1.5'
|
12
|
-
gem 'mongo_session_store', '2.0.0.pre'
|
1
|
+
source :rubygems
|
2
|
+
|
3
|
+
# add in all the runtime dependencies
|
4
|
+
|
5
|
+
gem 'rails', '>= 3.0.0'
|
6
|
+
|
13
7
|
gem 'warden'
|
14
|
-
gem 'devise', '1.1.
|
15
|
-
|
16
|
-
gem '
|
17
|
-
gem '
|
18
|
-
gem '
|
19
|
-
|
20
|
-
gem '
|
21
|
-
gem '
|
22
|
-
gem '
|
8
|
+
gem 'devise', '= 1.1.3'
|
9
|
+
|
10
|
+
gem 'mongoid', '2.0.0.beta.19'
|
11
|
+
gem 'bson_ext', '1.1.1'
|
12
|
+
gem 'locomotive_mongoid_acts_as_tree', '0.1.5.1', :require => 'mongoid_acts_as_tree'
|
13
|
+
|
14
|
+
gem 'haml', '= 3.0.18'
|
15
|
+
gem 'locomotive_liquid', '2.2.2', :require => 'liquid'
|
16
|
+
gem 'formtastic', '>= 1.1.0'
|
17
|
+
gem 'inherited_resources', '>= 1.1.2'
|
18
|
+
|
19
|
+
gem 'rmagick', '= 2.12.2'
|
20
|
+
gem 'locomotive_carrierwave', :require => 'carrierwave'
|
21
|
+
|
22
|
+
gem 'custom_fields', '1.0.0.beta'
|
23
|
+
gem 'fog', '0.3.7'
|
24
|
+
gem 'mimetype-fu'
|
25
|
+
gem 'actionmailer-with-request'
|
23
26
|
gem 'heroku'
|
24
|
-
gem 'httparty', '0.6.
|
27
|
+
gem 'httparty', '>= 0.6.1'
|
25
28
|
gem 'RedCloth'
|
26
|
-
gem '
|
29
|
+
gem 'delayed_job', '2.1.0.pre2'
|
30
|
+
gem 'delayed_job_mongoid', '1.0.0.rc'
|
31
|
+
gem 'rubyzip'
|
32
|
+
|
33
|
+
# The rest of the dependencies are for use when in the locomotive dev environment
|
27
34
|
|
28
|
-
# Development environment
|
29
35
|
group :development do
|
30
36
|
# Using mongrel instead of webrick (default server)
|
31
37
|
gem 'mongrel'
|
32
38
|
gem 'cgi_multipart_eof_fix'
|
33
39
|
gem 'fastthread'
|
34
|
-
|
40
|
+
end
|
41
|
+
|
42
|
+
group :test, :development do
|
43
|
+
gem 'ruby-debug'
|
35
44
|
end
|
36
45
|
|
37
46
|
group :test do
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
47
|
+
gem 'autotest'
|
48
|
+
gem 'growl-glue'
|
49
|
+
gem 'rspec-rails', '>= 2.0.0.beta.18'
|
50
|
+
gem 'factory_girl_rails'
|
51
|
+
gem 'pickle', :git => 'http://github.com/ianwhite/pickle.git'
|
52
|
+
gem 'capybara'
|
53
|
+
|
54
|
+
gem 'database_cleaner'
|
55
|
+
gem 'cucumber', '0.8.5'
|
56
|
+
gem 'cucumber-rails'
|
57
|
+
gem 'spork'
|
58
|
+
gem 'launchy'
|
59
|
+
gem 'mocha', :git => 'git://github.com/floehopper/mocha.git'
|
46
60
|
end
|
data/README.textile
CHANGED
@@ -8,7 +8,7 @@ If we have to give only 5 main features to describe our application, there will
|
|
8
8
|
* nice looking UI (see http://www.locomotiveapp.org for some screenshots)
|
9
9
|
* flexible content types
|
10
10
|
* playing smoothly with Heroku and MongoHQ
|
11
|
-
* inline editing (
|
11
|
+
* inline editing (beta)
|
12
12
|
|
13
13
|
h2. Strategy / Development status
|
14
14
|
|
@@ -19,23 +19,29 @@ h2. Gems
|
|
19
19
|
|
20
20
|
Here is a short list of main gems used in the application.
|
21
21
|
|
22
|
-
* Rails 3
|
23
|
-
* Mongoid
|
22
|
+
* Rails 3.0
|
23
|
+
* Mongoid 2.0.0.beta 17 (with MongoDB 1.6)
|
24
24
|
* Liquid
|
25
25
|
* Devise
|
26
26
|
* Carrierwave
|
27
27
|
* Haml
|
28
|
+
* Delayed job
|
28
29
|
|
29
30
|
h2. Installation
|
30
31
|
|
31
32
|
See the "official website":http://www.locomotiveapp.org
|
32
33
|
|
33
|
-
h2.
|
34
|
+
h2. Team
|
35
|
+
|
36
|
+
* Developers: "Didier Lafforgue":http://www.nocoffee.fr, "Jacques Crocker":http://www.railsjedi.com
|
37
|
+
* UI Designer: "Sacha Greif":http://www.sachagreif.com
|
34
38
|
|
35
|
-
|
39
|
+
h2. Credits
|
36
40
|
|
37
41
|
"Rodrigo Alvarez":http://blog.codecaster.es/ for his plugin named Congo which gave us a good starting point and for his availability for (very late) tech discussions.
|
38
42
|
|
43
|
+
"Emmanuel Grard":http://www.grardesign.com designed the awesome locomotive illustration in the LocomotiveApp.org landing page.
|
44
|
+
|
39
45
|
h2. Contact
|
40
46
|
|
41
47
|
Feel free to contact me at didier at nocoffee dot fr.
|
@@ -1,18 +1,18 @@
|
|
1
1
|
module Admin
|
2
2
|
class AccountsController < BaseController
|
3
|
-
|
3
|
+
|
4
4
|
sections 'settings'
|
5
|
-
|
5
|
+
|
6
6
|
def new
|
7
7
|
@account = Account.new(:email => params[:email])
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def create
|
11
11
|
@account = Account.create(params[:account])
|
12
12
|
current_site.memberships.create(:account => @account) if @account.errors.empty?
|
13
|
-
|
13
|
+
|
14
14
|
respond_with @account, :location => edit_admin_current_site_url
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
end
|
18
|
-
end
|
18
|
+
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Admin
|
2
2
|
class ApiContentsController < ActionController::Base
|
3
|
-
|
3
|
+
|
4
4
|
include Locomotive::Routing::SiteDispatcher
|
5
|
-
|
5
|
+
|
6
6
|
before_filter :require_site
|
7
|
-
|
7
|
+
|
8
8
|
before_filter :set_content_type
|
9
|
-
|
9
|
+
|
10
10
|
def create
|
11
11
|
@content = @content_type.contents.build(params[:content])
|
12
12
|
|
@@ -18,13 +18,13 @@ module Admin
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
protected
|
23
|
-
|
23
|
+
|
24
24
|
def set_content_type
|
25
|
-
@content_type = current_site.content_types.where(:slug => params[:slug]).first
|
25
|
+
@content_type = current_site.content_types.where(:slug => params[:slug]).first
|
26
26
|
render :json => { :error => 'Api not enabled'} and return false unless @content_type.api_enabled
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
end
|
30
|
-
end
|
30
|
+
end
|
@@ -1,25 +1,25 @@
|
|
1
1
|
module Admin
|
2
2
|
class AssetCollectionsController < BaseController
|
3
|
-
|
4
|
-
sections 'assets'
|
5
|
-
|
3
|
+
|
4
|
+
sections 'assets'
|
5
|
+
|
6
6
|
before_filter :set_collections
|
7
|
-
|
7
|
+
|
8
8
|
def index
|
9
9
|
if not @asset_collections.empty?
|
10
10
|
redirect_to(edit_admin_asset_collection_url(@asset_collections.first)) and return
|
11
11
|
end
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def show
|
15
15
|
@asset_collection = current_site.asset_collections.find(params[:id])
|
16
16
|
render :action => 'edit'
|
17
17
|
end
|
18
|
-
|
19
|
-
protected
|
20
|
-
|
18
|
+
|
19
|
+
protected
|
20
|
+
|
21
21
|
def set_collections
|
22
|
-
@asset_collections = current_site.asset_collections.order_by([[:name, :asc]])
|
22
|
+
@asset_collections = current_site.asset_collections.not_internal.order_by([[:name, :asc]])
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -1,30 +1,30 @@
|
|
1
1
|
module Admin
|
2
2
|
class AssetsController < BaseController
|
3
|
-
|
4
|
-
sections 'assets'
|
5
|
-
|
3
|
+
|
4
|
+
sections 'assets'
|
5
|
+
|
6
6
|
before_filter :set_collections_and_current_collection
|
7
|
-
|
7
|
+
|
8
8
|
respond_to :json, :only => :update
|
9
|
-
|
9
|
+
|
10
10
|
def create
|
11
11
|
create! { edit_admin_asset_collection_url(@asset_collection) }
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def update
|
15
15
|
update! { edit_admin_asset_collection_url(@asset_collection) }
|
16
16
|
end
|
17
|
-
|
18
|
-
protected
|
19
|
-
|
17
|
+
|
18
|
+
protected
|
19
|
+
|
20
20
|
def begin_of_association_chain
|
21
21
|
@asset_collection
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def set_collections_and_current_collection
|
25
|
-
@asset_collections = current_site.asset_collections
|
26
|
-
@asset_collection =
|
25
|
+
@asset_collections = current_site.asset_collections.not_internal.order_by([[:name, :asc]])
|
26
|
+
@asset_collection = current_site.asset_collections.find(params[:collection_id])
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
end
|
30
30
|
end
|
@@ -1,37 +1,37 @@
|
|
1
1
|
module Admin
|
2
2
|
class BaseController < InheritedResources::Base
|
3
|
-
|
3
|
+
|
4
4
|
include Locomotive::Routing::SiteDispatcher
|
5
|
-
|
5
|
+
|
6
6
|
layout 'admin/application'
|
7
|
-
|
7
|
+
|
8
8
|
before_filter :authenticate_admin!
|
9
|
-
|
9
|
+
|
10
10
|
before_filter :require_site
|
11
|
-
|
11
|
+
|
12
12
|
before_filter :validate_site_membership
|
13
|
-
|
13
|
+
|
14
14
|
before_filter :set_locale
|
15
|
-
|
15
|
+
|
16
16
|
helper_method :sections
|
17
|
-
|
17
|
+
|
18
18
|
# https://rails.lighthouseapp.com/projects/8994/tickets/1905-apphelpers-within-plugin-not-being-mixed-in
|
19
19
|
Dir[File.dirname(__FILE__) + "/../../helpers/**/*_helper.rb"].each do |file|
|
20
20
|
helper "admin/#{File.basename(file, '.rb').gsub(/_helper$/, '')}"
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
self.responder = Locomotive::AdminResponder # custom responder
|
24
|
-
|
24
|
+
|
25
25
|
defaults :route_prefix => 'admin'
|
26
|
-
|
26
|
+
|
27
27
|
respond_to :html
|
28
|
-
|
28
|
+
|
29
29
|
protected
|
30
|
-
|
30
|
+
|
31
31
|
def begin_of_association_chain
|
32
32
|
current_site
|
33
|
-
end
|
34
|
-
|
33
|
+
end
|
34
|
+
|
35
35
|
def self.sections(main, sub = nil)
|
36
36
|
before_filter do |c|
|
37
37
|
sub = sub.call(c) if sub.respond_to?(:call)
|
@@ -39,18 +39,18 @@ module Admin
|
|
39
39
|
c.instance_variable_set(:@admin_sections, sections)
|
40
40
|
end
|
41
41
|
end
|
42
|
-
|
42
|
+
|
43
43
|
def sections(key = nil)
|
44
44
|
if !key.nil? && key.to_sym == :sub
|
45
45
|
@admin_sections[:sub] || self.controller_name.dasherize
|
46
|
-
else
|
46
|
+
else
|
47
47
|
@admin_sections[:main]
|
48
|
-
end
|
48
|
+
end
|
49
49
|
end
|
50
|
-
|
50
|
+
|
51
51
|
def set_locale
|
52
52
|
I18n.locale = current_admin.locale
|
53
53
|
end
|
54
|
-
|
54
|
+
|
55
55
|
end
|
56
|
-
end
|
56
|
+
end
|
@@ -1,45 +1,45 @@
|
|
1
1
|
module Admin
|
2
2
|
class ContentsController < BaseController
|
3
|
-
|
3
|
+
|
4
4
|
sections 'contents'
|
5
|
-
|
5
|
+
|
6
6
|
before_filter :set_content_type
|
7
|
-
|
7
|
+
|
8
8
|
respond_to :json, :only => :update
|
9
|
-
|
9
|
+
|
10
10
|
def index
|
11
11
|
@contents = @content_type.list_or_group_contents
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def create
|
15
15
|
create! do |success, failure|
|
16
16
|
success.html { redirect_to edit_admin_content_url(@content_type.slug, @content) }
|
17
17
|
end
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
def update
|
21
21
|
update! { edit_admin_content_url(@content_type.slug, @content) }
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def sort
|
25
25
|
@content_type.sort_contents!(params[:order])
|
26
|
-
|
26
|
+
|
27
27
|
respond_with(@content_type, :location => admin_contents_url(@content_type.slug))
|
28
|
-
end
|
29
|
-
|
28
|
+
end
|
29
|
+
|
30
30
|
def destroy
|
31
31
|
destroy! { admin_contents_url(@content_type.slug) }
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
protected
|
35
|
-
|
35
|
+
|
36
36
|
def set_content_type
|
37
37
|
@content_type ||= current_site.content_types.where(:slug => params[:slug]).first
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
def begin_of_association_chain
|
41
41
|
set_content_type
|
42
|
-
end
|
43
|
-
|
42
|
+
end
|
43
|
+
|
44
44
|
end
|
45
|
-
end
|
45
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Admin
|
2
|
+
class CrossDomainSessionsController < BaseController
|
3
|
+
|
4
|
+
layout 'admin/box'
|
5
|
+
|
6
|
+
skip_before_filter :verify_authenticity_token
|
7
|
+
|
8
|
+
skip_before_filter :validate_site_membership
|
9
|
+
|
10
|
+
skip_before_filter :set_locale, :only => :create
|
11
|
+
|
12
|
+
before_filter :authenticate_admin!, :only => :new
|
13
|
+
|
14
|
+
def new
|
15
|
+
if site = current_admin.sites.detect { |s| s._id.to_s == params[:target_id] }
|
16
|
+
@target = site.domains_without_subdomain.first || site.domains_with_subdomain.first
|
17
|
+
current_admin.reset_switch_site_token!
|
18
|
+
else
|
19
|
+
redirect_to admin_pages_path
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def create
|
24
|
+
if account = Account.find_using_switch_site_token(params[:token])
|
25
|
+
account.reset_switch_site_token!
|
26
|
+
sign_in(account)
|
27
|
+
redirect_to admin_pages_path
|
28
|
+
else
|
29
|
+
redirect_to new_admin_session_path, :alert => t('flash.admin.cross_domain_sessions.create.alert')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
@@ -1,24 +1,24 @@
|
|
1
1
|
module Admin
|
2
2
|
class CurrentSitesController < BaseController
|
3
|
-
|
3
|
+
|
4
4
|
sections 'settings', 'site'
|
5
|
-
|
5
|
+
|
6
6
|
actions :edit, :update
|
7
|
-
|
7
|
+
|
8
8
|
respond_to :json, :only => :update
|
9
|
-
|
9
|
+
|
10
10
|
def update
|
11
11
|
update! do |success, failure|
|
12
12
|
success.html { redirect_to edit_admin_current_site_url(new_host_if_subdomain_changed) }
|
13
13
|
end
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
protected
|
17
|
-
|
17
|
+
|
18
18
|
def resource
|
19
19
|
@site = current_site
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
def new_host_if_subdomain_changed
|
23
23
|
if @site.domains.include?(request.host)
|
24
24
|
{}
|
@@ -26,6 +26,6 @@ module Admin
|
|
26
26
|
{ :host => "#{@site.subdomain}.#{Locomotive.config.default_domain}:#{request.port}" }
|
27
27
|
end
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
end
|
31
|
-
end
|
31
|
+
end
|
@@ -1,39 +1,39 @@
|
|
1
1
|
module Admin
|
2
2
|
class CustomFieldsController < BaseController
|
3
|
-
|
3
|
+
|
4
4
|
layout false
|
5
|
-
|
5
|
+
|
6
6
|
before_filter :set_parent_and_fields
|
7
|
-
|
7
|
+
|
8
8
|
def edit
|
9
9
|
@field = @fields.find(params[:id])
|
10
10
|
render :action => "edit_#{@field.kind.downcase}"
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def update
|
14
14
|
@field = @fields.find(params[:id])
|
15
15
|
@field.updated_at = Time.now # forces mongoid to save the object
|
16
|
-
|
16
|
+
|
17
17
|
params[:custom_field][:category_items_attributes].delete('-1')
|
18
|
-
|
18
|
+
|
19
19
|
if @field.update_attributes(params[:custom_field])
|
20
20
|
render :json => @field.attributes
|
21
21
|
else
|
22
22
|
render :json => { :error => t('flash.admin.custom_fields.update.alert') }
|
23
23
|
end
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
protected
|
27
|
-
|
27
|
+
|
28
28
|
def set_parent_and_fields
|
29
29
|
if params[:parent] == 'asset_collection'
|
30
30
|
@parent = current_site.asset_collections.where(:slug => params[:slug]).first
|
31
|
-
@fields = @parent.asset_custom_fields
|
31
|
+
@fields = @parent.asset_custom_fields
|
32
32
|
else
|
33
33
|
@parent = current_site.content_types.where(:slug => params[:slug]).first
|
34
34
|
@fields = @parent.content_custom_fields
|
35
35
|
end
|
36
36
|
end
|
37
|
-
|
37
|
+
|
38
38
|
end
|
39
|
-
end
|
39
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Admin
|
2
|
+
class ImagesController < BaseController
|
3
|
+
|
4
|
+
include ActionView::Helpers::SanitizeHelper
|
5
|
+
include ActionView::Helpers::TextHelper
|
6
|
+
|
7
|
+
defaults :collection_name => 'assets', :instance_name => 'asset'
|
8
|
+
|
9
|
+
respond_to :json, :only => [:index, :create, :destroy]
|
10
|
+
|
11
|
+
def index
|
12
|
+
index! do |response|
|
13
|
+
response.json do
|
14
|
+
render :json => { :images => @assets.collect { |image| image_to_json(image) } }
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def create
|
20
|
+
params[:asset] = { :name => params[:name], :source => params[:file] } if params[:file]
|
21
|
+
|
22
|
+
create! do |success, failure|
|
23
|
+
success.json do
|
24
|
+
render :json => image_to_json(@asset)
|
25
|
+
end
|
26
|
+
failure.json { render :json => { :status => 'error' } }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
protected
|
31
|
+
|
32
|
+
def collection
|
33
|
+
@assets ||= begin_of_association_chain.assets
|
34
|
+
end
|
35
|
+
|
36
|
+
def begin_of_association_chain
|
37
|
+
@asset_collection ||= AssetCollection.find_or_create_internal(current_site)
|
38
|
+
end
|
39
|
+
|
40
|
+
def image_to_json(image)
|
41
|
+
{
|
42
|
+
:status => 'success',
|
43
|
+
:name => truncate(image.name, :length => 15),
|
44
|
+
:url => image.source.url,
|
45
|
+
:vignette_url => image.vignette_url,
|
46
|
+
:destroy_url => admin_image_url(image, :json)
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Admin
|
2
|
+
class ImportsController < BaseController
|
3
|
+
|
4
|
+
sections 'settings', 'site'
|
5
|
+
|
6
|
+
actions :show, :new, :create
|
7
|
+
|
8
|
+
def show
|
9
|
+
@job = Delayed::Job.where({ :job_type => 'import', :site_id => current_site.id }).last
|
10
|
+
|
11
|
+
respond_to do |format|
|
12
|
+
format.html do
|
13
|
+
redirect_to new_admin_import_url if @job.nil?
|
14
|
+
end
|
15
|
+
format.json { render :json => {
|
16
|
+
:step => @job.nil? ? 'done' : @job.step,
|
17
|
+
:failed => @job && @job.last_error.present?
|
18
|
+
} }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
def new; end
|
24
|
+
|
25
|
+
def create
|
26
|
+
if params[:zipfile].blank?
|
27
|
+
@error = t('errors.messages.blank')
|
28
|
+
flash[:alert] = t('flash.admin.imports.create.alert')
|
29
|
+
render 'new'
|
30
|
+
else
|
31
|
+
path = self.store_zipfile!
|
32
|
+
|
33
|
+
job = Locomotive::Import::Job.new(path, current_site)
|
34
|
+
Delayed::Job.enqueue job, { :site => current_site, :job_type => 'import' }
|
35
|
+
|
36
|
+
flash[:notice] = t('flash.admin.imports.create.notice')
|
37
|
+
|
38
|
+
redirect_to admin_import_url
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
protected
|
43
|
+
|
44
|
+
def store_zipfile!
|
45
|
+
file = CarrierWave::SanitizedFile.new(params[:zipfile])
|
46
|
+
file.move_to(File.join(Rails.root, 'tmp', 'files', current_site.id.to_s))
|
47
|
+
file.path
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Admin
|
2
2
|
class MembershipsController < BaseController
|
3
|
-
|
3
|
+
|
4
4
|
sections 'settings'
|
5
|
-
|
5
|
+
|
6
6
|
def create
|
7
7
|
@membership = current_site.memberships.build(params[:membership])
|
8
8
|
|
@@ -21,6 +21,6 @@ module Admin
|
|
21
21
|
def destroy
|
22
22
|
destroy! { edit_admin_current_site_url }
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
end
|
26
|
-
end
|
26
|
+
end
|