refinerycms 0.9.8.9 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/Gemfile +32 -42
- data/Gemfile.lock +201 -0
- data/Rakefile +7 -0
- data/app/views/sitemap/index.xml.builder +22 -0
- data/authentication/app/controllers/admin/users_controller.rb +90 -0
- data/authentication/app/controllers/passwords_controller.rb +43 -0
- data/authentication/app/controllers/registrations_controller.rb +67 -0
- data/authentication/app/controllers/sessions_controller.rb +23 -0
- data/{vendor/refinerycms/authentication → authentication}/app/helpers/sessions_helper.rb +0 -0
- data/{vendor/refinerycms/authentication → authentication}/app/helpers/users_helper.rb +0 -0
- data/authentication/app/mailers/user_mailer.rb +20 -0
- data/{vendor/refinerycms/authentication → authentication}/app/models/role.rb +0 -0
- data/{vendor/refinerycms/authentication → authentication}/app/models/roles_users.rb +0 -0
- data/authentication/app/models/user.rb +58 -0
- data/{vendor/refinerycms/authentication → authentication}/app/models/user_plugin.rb +0 -0
- data/authentication/app/views/admin/users/_form.html.erb +92 -0
- data/authentication/app/views/admin/users/_user.html.erb +19 -0
- data/authentication/app/views/admin/users/_users.html.erb +4 -0
- data/{vendor/refinerycms/authentication → authentication}/app/views/admin/users/edit.html.erb +0 -0
- data/authentication/app/views/admin/users/index.html.erb +12 -0
- data/{vendor/refinerycms/authentication → authentication}/app/views/admin/users/new.html.erb +0 -0
- data/authentication/app/views/layouts/login.html.erb +21 -0
- data/authentication/app/views/passwords/edit.html.erb +31 -0
- data/authentication/app/views/passwords/new.html.erb +18 -0
- data/authentication/app/views/registrations/new.html.erb +41 -0
- data/authentication/app/views/sessions/new.html.erb +29 -0
- data/authentication/app/views/user_mailer/reset_notification.html.erb +12 -0
- data/authentication/app/views/user_mailer/reset_notification.text.plain.erb +7 -0
- data/authentication/config/locales/cs.yml +75 -0
- data/authentication/config/locales/da.yml +72 -0
- data/authentication/config/locales/de.yml +72 -0
- data/authentication/config/locales/el.yml +72 -0
- data/authentication/config/locales/en.yml +72 -0
- data/authentication/config/locales/es.yml +100 -0
- data/authentication/config/locales/fr.yml +72 -0
- data/authentication/config/locales/it.yml +97 -0
- data/authentication/config/locales/lolcat.yml +55 -0
- data/authentication/config/locales/lt.yml +55 -0
- data/authentication/config/locales/lv.yml +72 -0
- data/authentication/config/locales/nb.yml +72 -0
- data/authentication/config/locales/nl.yml +70 -0
- data/authentication/config/locales/pl.yml +100 -0
- data/authentication/config/locales/pt-BR.yml +68 -0
- data/authentication/config/locales/rs.yml +72 -0
- data/authentication/config/locales/ru.yml +97 -0
- data/authentication/config/locales/sl.yml +61 -0
- data/authentication/config/locales/sv.yml +64 -0
- data/authentication/config/locales/zh-CN.yml +72 -0
- data/authentication/config/locales/zh-TW.yml +72 -0
- data/authentication/config/routes.rb +31 -0
- data/authentication/db/migrate/20100913234705_create_refinerycms_authentication_schema.rb +43 -0
- data/{db → authentication/db}/migrate/20100929035252_add_missing_indexes_to_roles_users.rb +0 -0
- data/authentication/db/migrate/20101206013505_change_to_devise_users_table.rb +27 -0
- data/authentication/db/migrate/20110106184757_add_remember_created_at_to_users.rb +9 -0
- data/authentication/features/lost_password.feature +49 -0
- data/authentication/features/manage_users.feature +61 -0
- data/authentication/features/step_definitions/lost_password.rb +8 -0
- data/authentication/features/step_definitions/user_steps.rb +36 -0
- data/authentication/features/support/factories.rb +18 -0
- data/authentication/features/support/paths.rb +24 -0
- data/authentication/lib/authenticated_system.rb +29 -0
- data/authentication/lib/authentication.rb +30 -0
- data/authentication/lib/generators/refinerycms_authentication_generator.rb +8 -0
- data/authentication/license.md +21 -0
- data/authentication/readme.md +17 -0
- data/authentication/refinerycms-authentication.gemspec +20 -0
- data/authentication/spec/models/user_spec.rb +159 -0
- data/autotest/autotest.rb +17 -0
- data/autotest/discover.rb +2 -0
- data/base/db/migrate/20100913234706_create_refinerycms_core_schema.rb +23 -0
- data/base/db/migrate/20101217113424_add_locale_to_slugs.rb +13 -0
- data/base/features/step_definitions/web_steps.rb +219 -0
- data/base/features/support/env.rb +84 -0
- data/base/features/support/factories.rb +1 -0
- data/base/features/support/negative_expectations_helper.rb +57 -0
- data/base/features/support/paths.rb +91 -0
- data/base/lib/base.rb +32 -0
- data/base/lib/generators/refinerycms_base_generator.rb +8 -0
- data/base/lib/refinery.rb +32 -0
- data/base/lib/refinery/version.rb +16 -0
- data/base/license.md +21 -0
- data/base/refinerycms-base.gemspec +18 -0
- data/bin/refinerycms +183 -80
- data/changelog.md +51 -0
- data/config.ru +4 -0
- data/config/cucumber.yml +15 -0
- data/config/database.yml.mysql +1 -5
- data/config/database.yml.sqlite3 +4 -4
- data/config/environments/development.rb +5 -6
- data/config/environments/production.rb +5 -15
- data/config/environments/test.rb +4 -6
- data/core/app/controllers/admin/base_controller.rb +10 -0
- data/core/app/controllers/admin/dialogs_controller.rb +26 -0
- data/core/app/controllers/admin/refinery_core_controller.rb +12 -0
- data/core/app/controllers/application_controller.rb +6 -0
- data/core/app/controllers/refinery/fast_controller.rb +9 -0
- data/core/app/controllers/sitemap_controller.rb +14 -0
- data/core/app/helpers/application_helper.rb +5 -0
- data/core/app/views/admin/_head.html.erb +43 -0
- data/core/app/views/admin/_javascripts.html.erb +32 -0
- data/core/app/views/admin/_menu.html.erb +17 -0
- data/core/app/views/admin/dialogs/show.html.erb +19 -0
- data/core/app/views/layouts/admin.html.erb +24 -0
- data/core/app/views/layouts/admin_dialog.html.erb +14 -0
- data/core/app/views/layouts/application.html.erb +21 -0
- data/core/app/views/shared/_content_page.html.erb +63 -0
- data/core/app/views/shared/_draft_page_message.html.erb +3 -0
- data/core/app/views/shared/_footer.html.erb +4 -0
- data/core/app/views/shared/_google_analytics.html.erb +8 -0
- data/core/app/views/shared/_head.html.erb +42 -0
- data/core/app/views/shared/_header.html.erb +8 -0
- data/core/app/views/shared/_html_tag.html.erb +6 -0
- data/core/app/views/shared/_ie6check.html.erb +63 -0
- data/core/app/views/shared/_javascripts.html.erb +10 -0
- data/core/app/views/shared/_menu.html.erb +30 -0
- data/{vendor/refinerycms/core → core}/app/views/shared/_menu_branch.html.erb +0 -0
- data/core/app/views/shared/_message.html.erb +10 -0
- data/core/app/views/shared/_no_script.html.erb +9 -0
- data/core/app/views/shared/_site_bar.html.erb +25 -0
- data/core/app/views/shared/admin/_continue_editing.html.erb +3 -0
- data/{vendor/refinerycms/core → core}/app/views/shared/admin/_error_messages.html.erb +0 -0
- data/core/app/views/shared/admin/_form_actions.html.erb +77 -0
- data/core/app/views/shared/admin/_image_picker.html.erb +60 -0
- data/core/app/views/shared/admin/_make_sortable.html.erb +13 -0
- data/core/app/views/shared/admin/_resource_picker.html.erb +66 -0
- data/core/app/views/shared/admin/_search.html.erb +6 -0
- data/{vendor/refinerycms/core → core}/app/views/shared/admin/_sortable_list.html.erb +0 -0
- data/core/app/views/shared/admin/_tabbed_fields.html.erb +42 -0
- data/core/app/views/welcome.html.erb +17 -0
- data/core/app/views/wymiframe.html.erb +15 -0
- data/core/config/locales/cs.yml +77 -0
- data/core/config/locales/da.yml +75 -0
- data/core/config/locales/de.yml +75 -0
- data/core/config/locales/el.yml +75 -0
- data/core/config/locales/en.yml +75 -0
- data/core/config/locales/es.yml +68 -0
- data/core/config/locales/fr.yml +72 -0
- data/core/config/locales/it.yml +96 -0
- data/core/config/locales/lolcat.yml +68 -0
- data/core/config/locales/lt.yml +75 -0
- data/core/config/locales/lv.yml +72 -0
- data/core/config/locales/nb.yml +75 -0
- data/core/config/locales/nl.yml +75 -0
- data/core/config/locales/pl.yml +75 -0
- data/core/config/locales/pt-BR.yml +72 -0
- data/core/config/locales/rs.yml +76 -0
- data/core/config/locales/ru.yml +71 -0
- data/core/config/locales/sl.yml +72 -0
- data/core/config/locales/sv.yml +75 -0
- data/core/config/locales/zh-CN.yml +75 -0
- data/core/config/locales/zh-TW.yml +75 -0
- data/core/config/routes.rb +19 -0
- data/core/crud.md +197 -0
- data/core/doc/included-jquery-ui-packages.jpg +0 -0
- data/core/engines.md +179 -0
- data/core/features/search.feature +55 -0
- data/core/features/site_bar.feature +24 -0
- data/core/features/step_definitions/core_steps.rb +61 -0
- data/{vendor/refinerycms/core → core}/features/support/paths.rb +0 -0
- data/{vendor/refinerycms/core → core}/features/uploads/beach.jpeg +0 -0
- data/{vendor/refinerycms/core → core}/features/uploads/refinery_is_awesome.txt +0 -0
- data/core/lib/core.rb +143 -0
- data/core/lib/generators/refinerycms_generator.rb +107 -0
- data/core/lib/generators/templates/.gitignore +83 -0
- data/core/lib/generators/templates/.rspec +2 -0
- data/core/lib/generators/templates/app/views/sitemap/index.xml.builder +22 -0
- data/core/lib/generators/templates/autotest/autotest.rb +17 -0
- data/core/lib/generators/templates/autotest/discover.rb +2 -0
- data/core/lib/generators/templates/config/cucumber.yml +15 -0
- data/core/lib/generators/templates/config/database.yml.mysql +20 -0
- data/core/lib/generators/templates/config/database.yml.postgresql +57 -0
- data/core/lib/generators/templates/config/database.yml.sqlite3 +26 -0
- data/core/lib/generators/templates/config/i18n-js.yml +6 -0
- data/core/lib/generators/templates/config/initializers/devise.rb +142 -0
- data/core/lib/generators/templates/config/settings.rb +3 -0
- data/core/lib/generators/templates/db/seeds.rb +5 -0
- data/core/lib/generators/templates/spec/rcov.opts +2 -0
- data/core/lib/generators/templates/spec/spec_helper.rb +76 -0
- data/{vendor/refinerycms/core → core}/lib/refinery/activity.rb +0 -0
- data/core/lib/refinery/admin/base_controller.rb +111 -0
- data/core/lib/refinery/admin_base_controller.rb +5 -0
- data/core/lib/refinery/application.rb +76 -0
- data/core/lib/refinery/application_controller.rb +116 -0
- data/core/lib/refinery/application_helper.rb +19 -0
- data/core/lib/refinery/base_presenter.rb +27 -0
- data/core/lib/refinery/catch_all_routes.rb +11 -0
- data/core/lib/refinery/crud.rb +295 -0
- data/core/lib/refinery/helpers/form_helper.rb +66 -0
- data/core/lib/refinery/helpers/head_helper.rb +17 -0
- data/core/lib/refinery/helpers/html_truncation_helper.rb +25 -0
- data/core/lib/refinery/helpers/image_helper.rb +49 -0
- data/core/lib/refinery/helpers/menu_helper.rb +68 -0
- data/core/lib/refinery/helpers/meta_helper.rb +67 -0
- data/core/lib/refinery/helpers/pagination_helper.rb +16 -0
- data/core/lib/refinery/helpers/script_helper.rb +36 -0
- data/core/lib/refinery/helpers/site_bar_helper.rb +24 -0
- data/core/lib/refinery/helpers/tag_helper.rb +21 -0
- data/{vendor/refinerycms/core → core}/lib/refinery/helpers/translation_helper.rb +0 -0
- data/{vendor/refinerycms/core → core}/lib/refinery/link_renderer.rb +0 -0
- data/core/lib/refinery/plugin.rb +134 -0
- data/core/lib/refinery/plugins.rb +75 -0
- data/core/lib/tasks/cucumber.rake +53 -0
- data/{vendor/refinerycms/core → core}/lib/tasks/doc.rake +0 -0
- data/core/lib/tasks/refinery.rake +231 -0
- data/{vendor/refinerycms/core → core}/lib/tasks/yard.rake +0 -0
- data/core/license.md +21 -0
- data/{vendor/refinerycms/core → core}/public/404.html +0 -0
- data/{vendor/refinerycms/core → core}/public/422.html +0 -0
- data/{vendor/refinerycms/core → core}/public/500.html +0 -0
- data/{vendor/refinerycms/core → core}/public/favicon.ico +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/admin_bg.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/ajax-loader.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/branch-end.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/branch-start.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/branch.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/carousel-left.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/carousel-right.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/cross.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/dialogLoadingAnimation.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/header_background.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/hover-gradient.jpg +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/accept.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/ajax-loader.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/application_edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/application_go.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/arrow_left.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/arrow_switch.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/arrow_up.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/bin.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/bin_closed.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/cancel.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/cog_add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/cog_edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/cross.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/delete.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/doc.png +0 -0
- data/core/public/images/refinery/icons/down.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/email.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/email_edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/email_go.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/email_open.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/eye.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/folder_page_white.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/image_add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/image_edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/img.png +0 -0
- data/core/public/images/refinery/icons/information.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/layout_add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/layout_edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/music.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/page_add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/page_edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/page_white_edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/page_white_gear.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/page_white_put.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/pdf.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/ppt.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/star.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/tick.png +0 -0
- data/core/public/images/refinery/icons/up.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/user_add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/user_comment.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/user_edit.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/xls.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/zip.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/icons/zoom.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/logo-large.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/logo-medium.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/logo-site-bar.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/logo-small-medium.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/logo-small.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/logo-tiny.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/logo.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/nav-3-background.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/nav_inactive_background.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/orange_button.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/page_bg.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/resolve_digital_footer_logo.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/text_field_background.png +0 -0
- data/core/public/images/refinery/tooltip-nib.gif +0 -0
- data/{vendor/refinerycms/core → core}/public/images/refinery/tooltip-nib.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/eye.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/right.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/style.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_align_center.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_align_left.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_indent.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/{vendor/refinerycms/core → core}/public/images/wymeditor/skins/wymeditor_icon.png +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/admin.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/application.js +0 -0
- data/core/public/javascripts/dd_belatedpng.js +13 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/i18n-messages.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/jquery-min.js +0 -0
- data/core/public/javascripts/jquery-ui-custom-min.js +249 -0
- data/core/public/javascripts/jquery.js +6240 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/jquery/GPL-LICENSE.txt +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/jquery/MIT-LICENSE.txt +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/jquery/jquery.corner.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/jquery/jquery.html5-placeholder-shim.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/jquery/jquery.jcarousel.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/jquery/jquery.textTruncate.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/jquery/jquery.timers.js +0 -0
- data/core/public/javascripts/modernizr-min.js +30 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/rails.js +0 -0
- data/core/public/javascripts/refinery/admin.js +1114 -0
- data/core/public/javascripts/refinery/boot_wym.js +285 -0
- data/core/public/javascripts/refinery/core.js +18 -0
- data/core/public/javascripts/refinery/i18n.js +340 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/refinery/nestedsortables.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/refinery/serializelist.js +0 -0
- data/core/public/javascripts/refinery/site_bar.js +16 -0
- data/core/public/javascripts/refinery/submenu.js +49 -0
- data/core/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +5142 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/ca.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/cs.js +0 -0
- data/core/public/javascripts/wymeditor/lang/da.js +48 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/de.js +0 -0
- data/core/public/javascripts/wymeditor/lang/en.js +47 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/es.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/fa.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/fr.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/he.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/hu.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/it.js +0 -0
- data/core/public/javascripts/wymeditor/lang/lv.js +47 -0
- data/core/public/javascripts/wymeditor/lang/nb.js +48 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/nl.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/nn.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/pl.js +0 -0
- data/core/public/javascripts/wymeditor/lang/pt-BR.js +47 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/pt.js +0 -0
- data/core/public/javascripts/wymeditor/lang/rs.js +47 -0
- data/core/public/javascripts/wymeditor/lang/ru.js +45 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/sl.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/sv.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/tr.js +0 -0
- data/{vendor/refinerycms/core → core}/public/javascripts/wymeditor/lang/zh_cn.js +0 -0
- data/core/public/javascripts/wymeditor/skins/refinery/skin.js +48 -0
- data/{vendor/refinerycms/core → core}/public/robots.txt +0 -0
- data/core/public/stylesheets/application.css +4 -0
- data/core/public/stylesheets/formatting.css +4 -0
- data/core/public/stylesheets/home.css +4 -0
- data/core/public/stylesheets/refinery/application.css +72 -0
- data/core/public/stylesheets/refinery/formatting.css +57 -0
- data/{vendor/refinerycms/core → core}/public/stylesheets/refinery/home.css +0 -0
- data/core/public/stylesheets/refinery/refinery.css +1572 -0
- data/core/public/stylesheets/refinery/site_bar.css +87 -0
- data/core/public/stylesheets/refinery/submenu.css +22 -0
- data/{vendor/refinerycms/core → core}/public/stylesheets/refinery/theme.css +0 -0
- data/{vendor/refinerycms/core → core}/public/stylesheets/refinery/tooltips.css +0 -0
- data/core/public/stylesheets/refinery/ui.css +107 -0
- data/core/public/stylesheets/theme.css +4 -0
- data/core/public/stylesheets/wymeditor/skins/refinery/skin.css +528 -0
- data/{vendor/refinerycms/core → core}/public/stylesheets/wymeditor/skins/refinery/wymiframe.css +0 -0
- data/{vendor/refinerycms/core → core}/public/wymeditor/GPL-license.txt +0 -0
- data/{vendor/refinerycms/core → core}/public/wymeditor/MIT-license.txt +0 -0
- data/{vendor/refinerycms/core → core}/public/wymeditor/README +0 -0
- data/core/refinerycms-core.gemspec +20 -0
- data/core/spec/lib/refinery/plugins_spec.rb +90 -0
- data/dashboard/app/controllers/admin/dashboard_controller.rb +38 -0
- data/dashboard/app/helpers/admin/dashboard_helper.rb +24 -0
- data/dashboard/app/views/admin/dashboard/_additional_dashboard_menu_items.html.erb +1 -0
- data/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +14 -0
- data/{vendor/refinerycms/dashboard → dashboard}/app/views/admin/dashboard/_recent_inquiries.html.erb +0 -0
- data/dashboard/app/views/admin/dashboard/index.html.erb +70 -0
- data/{vendor/refinerycms/dashboard → dashboard}/app/views/admin/dashboard/index.rss.builder +0 -0
- data/dashboard/config/locales/cs.yml +25 -0
- data/dashboard/config/locales/da.yml +25 -0
- data/dashboard/config/locales/de.yml +25 -0
- data/dashboard/config/locales/el.yml +25 -0
- data/dashboard/config/locales/en.yml +25 -0
- data/dashboard/config/locales/es.yml +28 -0
- data/dashboard/config/locales/fr.yml +25 -0
- data/dashboard/config/locales/it.yml +27 -0
- data/dashboard/config/locales/lolcat.yml +24 -0
- data/dashboard/config/locales/lt.yml +25 -0
- data/dashboard/config/locales/lv.yml +27 -0
- data/dashboard/config/locales/nb.yml +25 -0
- data/dashboard/config/locales/nl.yml +25 -0
- data/dashboard/config/locales/pl.yml +29 -0
- data/dashboard/config/locales/pt-BR.yml +29 -0
- data/dashboard/config/locales/rs.yml +26 -0
- data/dashboard/config/locales/ru.yml +29 -0
- data/dashboard/config/locales/sl.yml +24 -0
- data/dashboard/config/locales/sv.yml +25 -0
- data/dashboard/config/locales/zh-CN.yml +25 -0
- data/dashboard/config/locales/zh-TW.yml +25 -0
- data/dashboard/config/routes.rb +11 -0
- data/dashboard/features/dashboard.feature +35 -0
- data/{vendor/refinerycms/dashboard → dashboard}/features/support/paths.rb +0 -0
- data/dashboard/lib/dashboard.rb +19 -0
- data/dashboard/license.md +21 -0
- data/dashboard/readme.md +22 -0
- data/dashboard/refinerycms-dashboard.gemspec +20 -0
- data/images/app/controllers/admin/images_controller.rb +108 -0
- data/images/app/helpers/admin/images_helper.rb +27 -0
- data/images/app/models/image.rb +72 -0
- data/images/app/views/admin/images/_existing_image.html.erb +73 -0
- data/images/app/views/admin/images/_form.html.erb +54 -0
- data/images/app/views/admin/images/_grid_view.html.erb +19 -0
- data/images/app/views/admin/images/_images.html.erb +2 -0
- data/images/app/views/admin/images/_list_view.html.erb +10 -0
- data/images/app/views/admin/images/_list_view_image.html.erb +17 -0
- data/{vendor/refinerycms/images → images}/app/views/admin/images/edit.html.erb +0 -0
- data/images/app/views/admin/images/index.html.erb +38 -0
- data/images/app/views/admin/images/insert.html.erb +47 -0
- data/{vendor/refinerycms/images → images}/app/views/admin/images/new.html.erb +0 -0
- data/images/config/locales/cs.yml +41 -0
- data/images/config/locales/da.yml +41 -0
- data/images/config/locales/de.yml +41 -0
- data/images/config/locales/el.yml +41 -0
- data/images/config/locales/en.yml +41 -0
- data/images/config/locales/es.yml +40 -0
- data/images/config/locales/fr.yml +41 -0
- data/images/config/locales/it.yml +47 -0
- data/images/config/locales/lolcat.yml +41 -0
- data/images/config/locales/lt.yml +41 -0
- data/images/config/locales/lv.yml +41 -0
- data/images/config/locales/nb.yml +42 -0
- data/images/config/locales/nl.yml +40 -0
- data/images/config/locales/pl.yml +42 -0
- data/images/config/locales/pt-BR.yml +42 -0
- data/images/config/locales/rs.yml +42 -0
- data/images/config/locales/ru.yml +41 -0
- data/images/config/locales/sl.yml +40 -0
- data/images/config/locales/sv.yml +41 -0
- data/images/config/locales/zh-CN.yml +41 -0
- data/images/config/locales/zh-TW.yml +41 -0
- data/images/config/routes.rb +11 -0
- data/images/db/migrate/20100913234707_create_refinerycms_images_schema.rb +23 -0
- data/images/features/manage_images.feature +49 -0
- data/images/features/step_definitions/image_steps.rb +40 -0
- data/{vendor/refinerycms/images → images}/features/support/factories.rb +0 -0
- data/{vendor/refinerycms/images → images}/features/support/paths.rb +0 -0
- data/{vendor/refinerycms/images → images}/features/uploads/beach.jpeg +0 -0
- data/{vendor/refinerycms/images → images}/features/uploads/id-rather-be-here.jpg +0 -0
- data/{vendor/refinerycms/images → images}/features/uploads/refinery_is_awesome.txt +0 -0
- data/images/lib/generators/refinerycms_images_generator.rb +8 -0
- data/images/lib/images.rb +59 -0
- data/images/license.md +21 -0
- data/images/readme.md +34 -0
- data/images/refinerycms-images.gemspec +20 -0
- data/images/spec/models/image_spec.rb +87 -0
- data/{vendor/refinerycms/images → images}/spec/uploads/beach.jpeg +0 -0
- data/lib/refinery.rb +1 -0
- data/lib/refinerycms.rb +10 -0
- data/license.md +2 -2
- data/pages/app/controllers/admin/page_parts_controller.rb +24 -0
- data/pages/app/controllers/admin/pages_controller.rb +37 -0
- data/pages/app/controllers/admin/pages_dialogs_controller.rb +87 -0
- data/pages/app/controllers/pages_controller.rb +32 -0
- data/{vendor/refinerycms/pages → pages}/app/helpers/pages_helper.rb +0 -0
- data/pages/app/models/page.rb +290 -0
- data/pages/app/models/page_part.rb +23 -0
- data/{vendor/refinerycms/pages → pages}/app/presenters/page_presenter.rb +0 -0
- data/pages/app/views/admin/pages/_form.html.erb +61 -0
- data/pages/app/views/admin/pages/_form_advanced_options.html.erb +79 -0
- data/{vendor/refinerycms/pages → pages}/app/views/admin/pages/_form_advanced_options_seo.html.erb +0 -0
- data/{vendor/refinerycms/pages → pages}/app/views/admin/pages/_form_fields_after_title.html.erb +0 -0
- data/{vendor/refinerycms/pages → pages}/app/views/admin/pages/_form_new_page_parts.html.erb +0 -0
- data/pages/app/views/admin/pages/_form_page_parts.html.erb +47 -0
- data/pages/app/views/admin/pages/_locale_picker.html.erb +11 -0
- data/pages/app/views/admin/pages/_page.html.erb +33 -0
- data/{vendor/refinerycms/pages → pages}/app/views/admin/pages/_page_part_field.html.erb +0 -0
- data/pages/app/views/admin/pages/_sortable_list.html.erb +5 -0
- data/{vendor/refinerycms/pages → pages}/app/views/admin/pages/edit.html.erb +0 -0
- data/pages/app/views/admin/pages/index.html.erb +40 -0
- data/{vendor/refinerycms/pages → pages}/app/views/admin/pages/new.html.erb +0 -0
- data/pages/app/views/admin/pages_dialogs/_page_link.html.erb +13 -0
- data/pages/app/views/admin/pages_dialogs/link_to.html.erb +141 -0
- data/{vendor/refinerycms/pages → pages}/app/views/pages/home.html.erb +0 -0
- data/{vendor/refinerycms/pages → pages}/app/views/pages/show.html.erb +0 -0
- data/pages/config/locales/cs.yml +84 -0
- data/pages/config/locales/da.yml +84 -0
- data/pages/config/locales/de.yml +84 -0
- data/pages/config/locales/el.yml +84 -0
- data/pages/config/locales/en.yml +84 -0
- data/pages/config/locales/es.yml +83 -0
- data/pages/config/locales/fr.yml +84 -0
- data/pages/config/locales/it.yml +98 -0
- data/pages/config/locales/lolcat.yml +83 -0
- data/pages/config/locales/lt.yml +85 -0
- data/pages/config/locales/lv.yml +86 -0
- data/pages/config/locales/nb.yml +85 -0
- data/pages/config/locales/nl.yml +81 -0
- data/pages/config/locales/pl.yml +85 -0
- data/pages/config/locales/pt-BR.yml +85 -0
- data/pages/config/locales/rs.yml +84 -0
- data/pages/config/locales/ru.yml +108 -0
- data/pages/config/locales/sl.yml +83 -0
- data/pages/config/locales/sv.yml +84 -0
- data/pages/config/locales/zh-CN.yml +84 -0
- data/pages/config/locales/zh-TW.yml +84 -0
- data/pages/config/routes.rb +21 -0
- data/pages/db/migrate/20100913234708_create_refinerycms_pages_schema.rb +53 -0
- data/pages/db/migrate/20101214040815_translate_page_plugin.rb +29 -0
- data/pages/db/migrate/20101216194133_remove_cached_slug_from_pages.rb +9 -0
- data/{db → pages/db}/seeds/pages.rb +0 -0
- data/pages/features/manage_pages.feature +47 -0
- data/pages/features/step_definitions/page_steps.rb +53 -0
- data/pages/features/support/paths.rb +26 -0
- data/pages/features/visit_pages.feature +47 -0
- data/pages/lib/generators/refinerycms_pages_generator.rb +8 -0
- data/pages/lib/pages.rb +36 -0
- data/pages/lib/pages/marketable_routes.rb +3 -0
- data/pages/lib/pages/tabs.rb +30 -0
- data/pages/license.md +21 -0
- data/pages/readme.md +156 -0
- data/pages/refinerycms-pages.gemspec +21 -0
- data/pages/spec/models/page_spec.rb +155 -0
- data/readme.md +37 -25
- data/refinerycms.gemspec +913 -0
- data/resources/app/controllers/admin/resources_controller.rb +89 -0
- data/resources/app/models/resource.rb +53 -0
- data/{vendor/refinerycms/resources → resources}/app/views/admin/resources/_existing_resource.html.erb +0 -0
- data/resources/app/views/admin/resources/_form.html.erb +55 -0
- data/resources/app/views/admin/resources/_resource.html.erb +17 -0
- data/resources/app/views/admin/resources/_resources.html.erb +10 -0
- data/{vendor/refinerycms/resources → resources}/app/views/admin/resources/edit.html.erb +0 -0
- data/resources/app/views/admin/resources/index.html.erb +31 -0
- data/resources/app/views/admin/resources/insert.html.erb +54 -0
- data/{vendor/refinerycms/resources → resources}/app/views/admin/resources/new.html.erb +0 -0
- data/resources/config/locales/cs.yml +34 -0
- data/resources/config/locales/da.yml +34 -0
- data/resources/config/locales/de.yml +34 -0
- data/resources/config/locales/el.yml +34 -0
- data/resources/config/locales/en.yml +34 -0
- data/resources/config/locales/es.yml +33 -0
- data/resources/config/locales/fr.yml +34 -0
- data/resources/config/locales/it.yml +43 -0
- data/resources/config/locales/lolcat.yml +34 -0
- data/resources/config/locales/lt.yml +34 -0
- data/resources/config/locales/lv.yml +34 -0
- data/resources/config/locales/nb.yml +34 -0
- data/resources/config/locales/nl.yml +33 -0
- data/resources/config/locales/pl.yml +35 -0
- data/resources/config/locales/pt-BR.yml +34 -0
- data/resources/config/locales/rs.yml +35 -0
- data/resources/config/locales/ru.yml +34 -0
- data/resources/config/locales/sl.yml +33 -0
- data/resources/config/locales/sv.yml +34 -0
- data/resources/config/locales/zh-CN.yml +34 -0
- data/resources/config/locales/zh-TW.yml +34 -0
- data/resources/config/routes.rb +11 -0
- data/resources/db/migrate/20100913234709_create_refinerycms_resources_schema.rb +21 -0
- data/resources/features/manage_files.feature +43 -0
- data/resources/features/step_definitions/file_steps.rb +21 -0
- data/{vendor/refinerycms/resources → resources}/features/support/paths.rb +0 -0
- data/{vendor/refinerycms/resources → resources}/features/uploads/beach.jpeg +0 -0
- data/{vendor/refinerycms/resources → resources}/features/uploads/refinery_is_awesome.txt +0 -0
- data/resources/lib/generators/refinerycms_resources_generator.rb +8 -0
- data/resources/lib/resources.rb +58 -0
- data/resources/license.md +21 -0
- data/resources/readme.md +9 -0
- data/resources/refinerycms-resources.gemspec +20 -0
- data/resources/spec/models/resource_spec.rb +91 -0
- data/{vendor/refinerycms/resources → resources}/spec/uploads/refinery_is_awesome.txt +0 -0
- data/settings/app/controllers/admin/refinery_settings_controller.rb +77 -0
- data/settings/app/helpers/refinery_settings_helper.rb +25 -0
- data/settings/app/models/refinery_setting.rb +212 -0
- data/settings/app/views/admin/refinery_settings/_form.html.erb +62 -0
- data/settings/app/views/admin/refinery_settings/_refinery_setting.html.erb +23 -0
- data/settings/app/views/admin/refinery_settings/_refinery_settings.html.erb +5 -0
- data/{vendor/refinerycms/settings → settings}/app/views/admin/refinery_settings/edit.html.erb +0 -0
- data/settings/app/views/admin/refinery_settings/index.html.erb +49 -0
- data/{vendor/refinerycms/settings → settings}/app/views/admin/refinery_settings/new.html.erb +0 -0
- data/settings/config/locales/cs.yml +45 -0
- data/settings/config/locales/da.yml +46 -0
- data/settings/config/locales/de.yml +46 -0
- data/settings/config/locales/el.yml +46 -0
- data/settings/config/locales/en.yml +46 -0
- data/settings/config/locales/es.yml +43 -0
- data/settings/config/locales/fr.yml +44 -0
- data/settings/config/locales/it.yml +36 -0
- data/settings/config/locales/lolcat.yml +43 -0
- data/settings/config/locales/lt.yml +46 -0
- data/settings/config/locales/lv.yml +46 -0
- data/settings/config/locales/nb.yml +47 -0
- data/settings/config/locales/nl.yml +46 -0
- data/settings/config/locales/pl.yml +46 -0
- data/settings/config/locales/pt-BR.yml +44 -0
- data/settings/config/locales/rs.yml +46 -0
- data/settings/config/locales/ru.yml +43 -0
- data/settings/config/locales/sl.yml +25 -0
- data/settings/config/locales/sv.yml +45 -0
- data/settings/config/locales/zh-CN.yml +46 -0
- data/settings/config/locales/zh-TW.yml +46 -0
- data/settings/config/routes.rb +8 -0
- data/settings/db/migrate/20100913234710_create_refinerycms_settings_schema.rb +24 -0
- data/{db → settings/db}/migrate/20100926142529_add_value_type_to_refinery_settings.rb +0 -0
- data/{vendor/refinerycms/settings → settings}/features/manage_refinery_settings.feature +0 -0
- data/settings/features/step_definitions/setting_steps.rb +9 -0
- data/{vendor/refinerycms/settings → settings}/features/support/paths.rb +0 -0
- data/settings/lib/generators/refinerycms_settings_generator.rb +8 -0
- data/settings/lib/settings.rb +16 -0
- data/settings/license.md +21 -0
- data/settings/readme.md +55 -0
- data/settings/refinerycms-settings.gemspec +20 -0
- data/{vendor/refinerycms/settings → settings}/spec/models/refinery_setting_spec.rb +0 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec_helper.rb +76 -0
- metadata +872 -826
- data/app/controllers/admin/base_controller.rb +0 -8
- data/app/controllers/application_controller.rb +0 -9
- data/app/helpers/application_helper.rb +0 -7
- data/config/initializers/acts_as_indexed_config.rb +0 -5
- data/config/initializers/field_with_error_fix.rb +0 -3
- data/config/initializers/fix_rack.rb +0 -17
- data/config/routes.rb +0 -74
- data/db/migrate/20100913234704_create_refinery_schema.rb +0 -152
- data/db/schema.rb +0 -159
- data/db/seeds.rb +0 -4
- data/db/seeds/pages_for_inquiries.rb +0 -40
- data/db/seeds/refinery_settings.rb +0 -16
- data/todo.md +0 -33
- data/vendor/refinerycms/authentication/app/controllers/admin/users_controller.rb +0 -58
- data/vendor/refinerycms/authentication/app/controllers/sessions_controller.rb +0 -40
- data/vendor/refinerycms/authentication/app/controllers/users_controller.rb +0 -116
- data/vendor/refinerycms/authentication/app/mailers/user_mailer.rb +0 -28
- data/vendor/refinerycms/authentication/app/models/user.rb +0 -71
- data/vendor/refinerycms/authentication/app/models/user_session.rb +0 -9
- data/vendor/refinerycms/authentication/app/views/admin/users/_form.html.erb +0 -70
- data/vendor/refinerycms/authentication/app/views/admin/users/_user.html.erb +0 -18
- data/vendor/refinerycms/authentication/app/views/admin/users/index.html.erb +0 -14
- data/vendor/refinerycms/authentication/app/views/layouts/login.html.erb +0 -20
- data/vendor/refinerycms/authentication/app/views/sessions/new.html.erb +0 -28
- data/vendor/refinerycms/authentication/app/views/user_mailer/reset_notification.html.erb +0 -6
- data/vendor/refinerycms/authentication/app/views/users/forgot.html.erb +0 -18
- data/vendor/refinerycms/authentication/app/views/users/new.html.erb +0 -41
- data/vendor/refinerycms/authentication/app/views/users/reset.html.erb +0 -29
- data/vendor/refinerycms/authentication/config/locales/da.yml +0 -83
- data/vendor/refinerycms/authentication/config/locales/de.yml +0 -74
- data/vendor/refinerycms/authentication/config/locales/en.yml +0 -66
- data/vendor/refinerycms/authentication/config/locales/es.yml +0 -66
- data/vendor/refinerycms/authentication/config/locales/fr.yml +0 -81
- data/vendor/refinerycms/authentication/config/locales/it.yml +0 -80
- data/vendor/refinerycms/authentication/config/locales/lv.yml +0 -66
- data/vendor/refinerycms/authentication/config/locales/nb.yml +0 -80
- data/vendor/refinerycms/authentication/config/locales/nl.yml +0 -66
- data/vendor/refinerycms/authentication/config/locales/pt-BR.yml +0 -71
- data/vendor/refinerycms/authentication/config/locales/ru.yml +0 -80
- data/vendor/refinerycms/authentication/config/locales/sl.yml +0 -90
- data/vendor/refinerycms/authentication/config/locales/zh-CN.yml +0 -80
- data/vendor/refinerycms/authentication/config/routes.rb +0 -26
- data/vendor/refinerycms/authentication/features/lost_password.feature +0 -41
- data/vendor/refinerycms/authentication/features/manage_users.feature +0 -57
- data/vendor/refinerycms/authentication/features/step_definitions/lost_password.rb +0 -8
- data/vendor/refinerycms/authentication/features/step_definitions/user_steps.rb +0 -32
- data/vendor/refinerycms/authentication/features/support/factories.rb +0 -18
- data/vendor/refinerycms/authentication/features/support/paths.rb +0 -24
- data/vendor/refinerycms/authentication/lib/authenticated_system.rb +0 -129
- data/vendor/refinerycms/authentication/lib/authenticated_test_helper.rb +0 -10
- data/vendor/refinerycms/authentication/lib/authentication.rb +0 -31
- data/vendor/refinerycms/authentication/readme.md +0 -17
- data/vendor/refinerycms/authentication/spec/models/user_spec.rb +0 -52
- data/vendor/refinerycms/authentication/test/unit/user_mailer_test.rb +0 -31
- data/vendor/refinerycms/authentication/test/unit/user_test.rb +0 -164
- data/vendor/refinerycms/core/app/controllers/admin/dialogs_controller.rb +0 -24
- data/vendor/refinerycms/core/app/controllers/admin/refinery_core_controller.rb +0 -16
- data/vendor/refinerycms/core/app/controllers/refinery/fast_controller.rb +0 -7
- data/vendor/refinerycms/core/app/views/admin/_head.html.erb +0 -53
- data/vendor/refinerycms/core/app/views/admin/_menu.html.erb +0 -17
- data/vendor/refinerycms/core/app/views/admin/_menu_tab.html.erb +0 -4
- data/vendor/refinerycms/core/app/views/admin/dialogs/show.html.erb +0 -19
- data/vendor/refinerycms/core/app/views/layouts/admin.html.erb +0 -22
- data/vendor/refinerycms/core/app/views/layouts/admin_dialog.html.erb +0 -13
- data/vendor/refinerycms/core/app/views/layouts/application.html.erb +0 -22
- data/vendor/refinerycms/core/app/views/shared/_content_page.html.erb +0 -41
- data/vendor/refinerycms/core/app/views/shared/_draft_page_message.html.erb +0 -3
- data/vendor/refinerycms/core/app/views/shared/_footer.html.erb +0 -5
- data/vendor/refinerycms/core/app/views/shared/_google_analytics.html.erb +0 -14
- data/vendor/refinerycms/core/app/views/shared/_head.html.erb +0 -17
- data/vendor/refinerycms/core/app/views/shared/_header.html.erb +0 -8
- data/vendor/refinerycms/core/app/views/shared/_html5_for_ie.js.erb +0 -7
- data/vendor/refinerycms/core/app/views/shared/_ie6check.html.erb +0 -63
- data/vendor/refinerycms/core/app/views/shared/_menu.html.erb +0 -38
- data/vendor/refinerycms/core/app/views/shared/_message.html.erb +0 -10
- data/vendor/refinerycms/core/app/views/shared/_no_script.html.erb +0 -9
- data/vendor/refinerycms/core/app/views/shared/_site_bar.html.erb +0 -33
- data/vendor/refinerycms/core/app/views/shared/admin/_continue_editing.html.erb +0 -3
- data/vendor/refinerycms/core/app/views/shared/admin/_form_actions.html.erb +0 -74
- data/vendor/refinerycms/core/app/views/shared/admin/_image_picker.html.erb +0 -59
- data/vendor/refinerycms/core/app/views/shared/admin/_make_sortable.html.erb +0 -13
- data/vendor/refinerycms/core/app/views/shared/admin/_resource_picker.html.erb +0 -66
- data/vendor/refinerycms/core/app/views/shared/admin/_search.html.erb +0 -5
- data/vendor/refinerycms/core/app/views/welcome.html.erb +0 -17
- data/vendor/refinerycms/core/app/views/wymiframe.html.erb +0 -17
- data/vendor/refinerycms/core/config/locales/da.yml +0 -71
- data/vendor/refinerycms/core/config/locales/de.yml +0 -70
- data/vendor/refinerycms/core/config/locales/en.yml +0 -70
- data/vendor/refinerycms/core/config/locales/es.yml +0 -60
- data/vendor/refinerycms/core/config/locales/fr.yml +0 -66
- data/vendor/refinerycms/core/config/locales/it.yml +0 -65
- data/vendor/refinerycms/core/config/locales/lv.yml +0 -63
- data/vendor/refinerycms/core/config/locales/nb.yml +0 -61
- data/vendor/refinerycms/core/config/locales/nl.yml +0 -62
- data/vendor/refinerycms/core/config/locales/pt-BR.yml +0 -67
- data/vendor/refinerycms/core/config/locales/ru.yml +0 -61
- data/vendor/refinerycms/core/config/locales/sl.yml +0 -68
- data/vendor/refinerycms/core/config/locales/zh-CN.yml +0 -65
- data/vendor/refinerycms/core/config/routes.rb +0 -15
- data/vendor/refinerycms/core/crud.md +0 -197
- data/vendor/refinerycms/core/engines.md +0 -218
- data/vendor/refinerycms/core/features/engine_generator.feature +0 -27
- data/vendor/refinerycms/core/features/search.feature +0 -59
- data/vendor/refinerycms/core/features/site_bar.feature +0 -24
- data/vendor/refinerycms/core/features/step_definitions/core_steps.rb +0 -61
- data/vendor/refinerycms/core/features/step_definitions/engine_generator_steps.rb +0 -19
- data/vendor/refinerycms/core/features/step_definitions/generator_steps.rb +0 -11
- data/vendor/refinerycms/core/lib/core.rb +0 -152
- data/vendor/refinerycms/core/lib/generators/refinery_engine/USAGE +0 -23
- data/vendor/refinerycms/core/lib/generators/refinery_engine/refinery_engine_generator.rb +0 -49
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/controllers/admin/plural_name_controller.rb +0 -7
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/controllers/plural_name_controller.rb +0 -30
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/models/singular_name.rb +0 -17
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/_form.html.erb +0 -36
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/_singular_name.html.erb +0 -20
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/_sortable_list.html.erb +0 -4
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/edit.html.erb +0 -1
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/index.html.erb +0 -67
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/new.html.erb +0 -1
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/index.html.erb +0 -11
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/show.html.erb +0 -31
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/config/locales/en.yml +0 -23
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/config/locales/nb.yml +0 -19
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/config/locales/nl.yml +0 -19
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/config/routes.rb +0 -11
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/db/migrate/create_plural_name.rb +0 -33
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/db/seeds/plural_name.rb +0 -15
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/lib/generators/refinerycms_plural_name_generator.rb +0 -6
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/lib/plural_name.rb +0 -20
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/lib/tasks/plural_name.rake +0 -13
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/readme.md +0 -10
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/refinerycms-plural_name.gemspec +0 -12
- data/vendor/refinerycms/core/lib/refinery/admin_base_controller.rb +0 -95
- data/vendor/refinerycms/core/lib/refinery/application_controller.rb +0 -113
- data/vendor/refinerycms/core/lib/refinery/application_helper.rb +0 -15
- data/vendor/refinerycms/core/lib/refinery/attachment_fu_patch.rb +0 -16
- data/vendor/refinerycms/core/lib/refinery/base_presenter.rb +0 -27
- data/vendor/refinerycms/core/lib/refinery/catch_all_routes.rb +0 -5
- data/vendor/refinerycms/core/lib/refinery/crud.rb +0 -295
- data/vendor/refinerycms/core/lib/refinery/helpers/form_helper.rb +0 -63
- data/vendor/refinerycms/core/lib/refinery/helpers/html_truncation_helper.rb +0 -26
- data/vendor/refinerycms/core/lib/refinery/helpers/image_helper.rb +0 -38
- data/vendor/refinerycms/core/lib/refinery/helpers/menu_helper.rb +0 -68
- data/vendor/refinerycms/core/lib/refinery/helpers/meta_helper.rb +0 -67
- data/vendor/refinerycms/core/lib/refinery/helpers/script_helper.rb +0 -36
- data/vendor/refinerycms/core/lib/refinery/helpers/site_bar_helper.rb +0 -26
- data/vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb +0 -19
- data/vendor/refinerycms/core/lib/refinery/plugin.rb +0 -134
- data/vendor/refinerycms/core/lib/refinery/plugins.rb +0 -66
- data/vendor/refinerycms/core/lib/tasks/refinery.rake +0 -134
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ad.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ae.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/af.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ag.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ai.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/al.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/am.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/an.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ao.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ar.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/as.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/at.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/au.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/aw.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ax.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/az.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ba.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bb.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bd.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/be.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bf.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bh.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bi.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bj.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bo.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bs.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bt.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bv.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bw.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/by.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/bz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ca.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/catalonia.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cc.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cd.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cf.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ch.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ci.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ck.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cl.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/co.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cs.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cu.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cv.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cx.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cy.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/cz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/da.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/de.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/dj.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/dm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/do.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/dz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ec.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ee.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/eg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/eh.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/en.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/england.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/er.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/es.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/et.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/europeanunion.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/fam.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/fi.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/fj.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/fk.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/fm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/fo.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/fr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ga.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gb.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gd.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ge.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gf.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gh.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gi.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gl.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gp.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gq.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gs.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gt.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gu.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gw.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/gy.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/hk.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/hm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/hn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/hr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ht.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/hu.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/id.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ie.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/il.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/in.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/io.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/iq.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ir.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/is.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/it.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/jm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/jo.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/jp.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ke.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/kg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/kh.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ki.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/km.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/kn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/kp.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/kr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/kw.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ky.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/kz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/la.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/lb.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/lc.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/li.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/lk.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/lr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ls.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/lt.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/lu.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/lv.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ly.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ma.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mc.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/md.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/me.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mh.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mk.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ml.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mo.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mp.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mq.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ms.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mt.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mu.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mv.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mw.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mx.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/my.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/mz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/na.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/nb.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/nc.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ne.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/nf.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ng.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ni.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/nl.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/nn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/np.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/nr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/nu.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/nz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/om.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pa.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pe.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pf.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ph.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pk.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pl.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ps.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pt-BR.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pt.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/pw.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/py.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/qa.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/re.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ro.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/rs.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ru.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/rw.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sa.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sb.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sc.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/scotland.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sd.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/se.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sh.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/si.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sj.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sk.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sl.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/so.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/st.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sv.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sy.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/sz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tc.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/td.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tf.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/th.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tj.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tk.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tl.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/to.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tr.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tt.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tv.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tw.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/tz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ua.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ug.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/um.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/us.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/uy.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/uz.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/va.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/vc.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ve.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/vg.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/vi.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/vn.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/vu.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/wales.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/wf.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ws.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/ye.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/yt.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/za.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/zh-CN.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/zm.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/zw.png +0 -0
- data/vendor/refinerycms/core/public/javascripts/jquery-ui-custom-min.js +0 -244
- data/vendor/refinerycms/core/public/javascripts/jquery.js +0 -6240
- data/vendor/refinerycms/core/public/javascripts/refinery/admin.js +0 -978
- data/vendor/refinerycms/core/public/javascripts/refinery/boot_wym.js +0 -210
- data/vendor/refinerycms/core/public/javascripts/refinery/core.js +0 -15
- data/vendor/refinerycms/core/public/javascripts/refinery/i18n.js +0 -340
- data/vendor/refinerycms/core/public/javascripts/refinery/site_bar.js +0 -15
- data/vendor/refinerycms/core/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +0 -5110
- data/vendor/refinerycms/core/public/javascripts/wymeditor/lang/da.js +0 -47
- data/vendor/refinerycms/core/public/javascripts/wymeditor/lang/en.js +0 -47
- data/vendor/refinerycms/core/public/javascripts/wymeditor/lang/nb.js +0 -45
- data/vendor/refinerycms/core/public/javascripts/wymeditor/lang/pt-br.js +0 -47
- data/vendor/refinerycms/core/public/javascripts/wymeditor/lang/ru.js +0 -45
- data/vendor/refinerycms/core/public/javascripts/wymeditor/skins/refinery/skin.js +0 -40
- data/vendor/refinerycms/core/public/stylesheets/application.css +0 -5
- data/vendor/refinerycms/core/public/stylesheets/formatting.css +0 -5
- data/vendor/refinerycms/core/public/stylesheets/home.css +0 -5
- data/vendor/refinerycms/core/public/stylesheets/ie6.css +0 -0
- data/vendor/refinerycms/core/public/stylesheets/ie7.css +0 -1
- data/vendor/refinerycms/core/public/stylesheets/refinery/application.css +0 -50
- data/vendor/refinerycms/core/public/stylesheets/refinery/formatting.css +0 -57
- data/vendor/refinerycms/core/public/stylesheets/refinery/ie-less-than-8.css +0 -21
- data/vendor/refinerycms/core/public/stylesheets/refinery/ie-less-than-9.css +0 -26
- data/vendor/refinerycms/core/public/stylesheets/refinery/refinery.css +0 -1500
- data/vendor/refinerycms/core/public/stylesheets/refinery/site_bar.css +0 -81
- data/vendor/refinerycms/core/public/stylesheets/refinery/ui.css +0 -101
- data/vendor/refinerycms/core/public/stylesheets/theme.css +0 -1
- data/vendor/refinerycms/core/public/stylesheets/wymeditor/skins/refinery/skin.css +0 -219
- data/vendor/refinerycms/dashboard/app/controllers/admin/dashboard_controller.rb +0 -38
- data/vendor/refinerycms/dashboard/app/helpers/admin/dashboard_helper.rb +0 -20
- data/vendor/refinerycms/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +0 -12
- data/vendor/refinerycms/dashboard/app/views/admin/dashboard/index.html.erb +0 -72
- data/vendor/refinerycms/dashboard/config/locales/da.yml +0 -24
- data/vendor/refinerycms/dashboard/config/locales/de.yml +0 -24
- data/vendor/refinerycms/dashboard/config/locales/en.yml +0 -24
- data/vendor/refinerycms/dashboard/config/locales/es.yml +0 -27
- data/vendor/refinerycms/dashboard/config/locales/fr.yml +0 -24
- data/vendor/refinerycms/dashboard/config/locales/it.yml +0 -24
- data/vendor/refinerycms/dashboard/config/locales/lv.yml +0 -25
- data/vendor/refinerycms/dashboard/config/locales/nb.yml +0 -27
- data/vendor/refinerycms/dashboard/config/locales/nl.yml +0 -23
- data/vendor/refinerycms/dashboard/config/locales/pt-BR.yml +0 -28
- data/vendor/refinerycms/dashboard/config/locales/ru.yml +0 -27
- data/vendor/refinerycms/dashboard/config/locales/sl.yml +0 -23
- data/vendor/refinerycms/dashboard/config/locales/zh-CN.yml +0 -23
- data/vendor/refinerycms/dashboard/config/routes.rb +0 -11
- data/vendor/refinerycms/dashboard/features/dashboard.feature +0 -56
- data/vendor/refinerycms/dashboard/lib/dashboard.rb +0 -19
- data/vendor/refinerycms/dashboard/readme.md +0 -22
- data/vendor/refinerycms/images/app/controllers/admin/images_controller.rb +0 -116
- data/vendor/refinerycms/images/app/helpers/admin/images_helper.rb +0 -27
- data/vendor/refinerycms/images/app/models/image.rb +0 -72
- data/vendor/refinerycms/images/app/views/admin/images/_existing_image.html.erb +0 -73
- data/vendor/refinerycms/images/app/views/admin/images/_form.html.erb +0 -51
- data/vendor/refinerycms/images/app/views/admin/images/_grid_view.html.erb +0 -19
- data/vendor/refinerycms/images/app/views/admin/images/_list_view.html.erb +0 -14
- data/vendor/refinerycms/images/app/views/admin/images/_list_view_image.html.erb +0 -17
- data/vendor/refinerycms/images/app/views/admin/images/index.html.erb +0 -43
- data/vendor/refinerycms/images/app/views/admin/images/insert.html.erb +0 -47
- data/vendor/refinerycms/images/config/locales/da.yml +0 -42
- data/vendor/refinerycms/images/config/locales/de.yml +0 -38
- data/vendor/refinerycms/images/config/locales/en.yml +0 -38
- data/vendor/refinerycms/images/config/locales/es.yml +0 -37
- data/vendor/refinerycms/images/config/locales/fr.yml +0 -42
- data/vendor/refinerycms/images/config/locales/it.yml +0 -40
- data/vendor/refinerycms/images/config/locales/lv.yml +0 -38
- data/vendor/refinerycms/images/config/locales/nb.yml +0 -46
- data/vendor/refinerycms/images/config/locales/nl.yml +0 -37
- data/vendor/refinerycms/images/config/locales/pt-BR.yml +0 -38
- data/vendor/refinerycms/images/config/locales/ru.yml +0 -46
- data/vendor/refinerycms/images/config/locales/sl.yml +0 -37
- data/vendor/refinerycms/images/config/locales/zh-CN.yml +0 -35
- data/vendor/refinerycms/images/config/routes.rb +0 -12
- data/vendor/refinerycms/images/features/manage_images.feature +0 -48
- data/vendor/refinerycms/images/features/step_definitions/image_steps.rb +0 -37
- data/vendor/refinerycms/images/lib/images.rb +0 -60
- data/vendor/refinerycms/images/readme.md +0 -34
- data/vendor/refinerycms/images/spec/models/image_spec.rb +0 -50
- data/vendor/refinerycms/pages/app/controllers/admin/page_parts_controller.rb +0 -22
- data/vendor/refinerycms/pages/app/controllers/admin/pages_controller.rb +0 -33
- data/vendor/refinerycms/pages/app/controllers/admin/pages_dialogs_controller.rb +0 -80
- data/vendor/refinerycms/pages/app/controllers/pages_controller.rb +0 -45
- data/vendor/refinerycms/pages/app/models/page.rb +0 -258
- data/vendor/refinerycms/pages/app/models/page_part.rb +0 -21
- data/vendor/refinerycms/pages/app/sweepers/page_sweeper.rb +0 -18
- data/vendor/refinerycms/pages/app/views/admin/pages/_form.html.erb +0 -56
- data/vendor/refinerycms/pages/app/views/admin/pages/_form_advanced_options.html.erb +0 -62
- data/vendor/refinerycms/pages/app/views/admin/pages/_form_page_parts.html.erb +0 -37
- data/vendor/refinerycms/pages/app/views/admin/pages/_page.html.erb +0 -35
- data/vendor/refinerycms/pages/app/views/admin/pages/_sortable_list.html.erb +0 -4
- data/vendor/refinerycms/pages/app/views/admin/pages/index.html.erb +0 -35
- data/vendor/refinerycms/pages/app/views/admin/pages_dialogs/_page_link.html.erb +0 -5
- data/vendor/refinerycms/pages/app/views/admin/pages_dialogs/link_to.html.erb +0 -134
- data/vendor/refinerycms/pages/config/locales/da.yml +0 -53
- data/vendor/refinerycms/pages/config/locales/de.yml +0 -83
- data/vendor/refinerycms/pages/config/locales/en.yml +0 -83
- data/vendor/refinerycms/pages/config/locales/es.yml +0 -82
- data/vendor/refinerycms/pages/config/locales/fr.yml +0 -53
- data/vendor/refinerycms/pages/config/locales/it.yml +0 -53
- data/vendor/refinerycms/pages/config/locales/lv.yml +0 -85
- data/vendor/refinerycms/pages/config/locales/nb.yml +0 -95
- data/vendor/refinerycms/pages/config/locales/nl.yml +0 -77
- data/vendor/refinerycms/pages/config/locales/pt-BR.yml +0 -83
- data/vendor/refinerycms/pages/config/locales/ru.yml +0 -97
- data/vendor/refinerycms/pages/config/locales/sl.yml +0 -82
- data/vendor/refinerycms/pages/config/locales/zh-CN.yml +0 -75
- data/vendor/refinerycms/pages/config/routes.rb +0 -21
- data/vendor/refinerycms/pages/features/manage_pages.feature +0 -47
- data/vendor/refinerycms/pages/features/step_definitions/page_steps.rb +0 -53
- data/vendor/refinerycms/pages/features/support/paths.rb +0 -26
- data/vendor/refinerycms/pages/features/visit_pages.feature +0 -45
- data/vendor/refinerycms/pages/lib/pages.rb +0 -34
- data/vendor/refinerycms/pages/lib/pages/marketable_routes.rb +0 -3
- data/vendor/refinerycms/pages/readme.md +0 -156
- data/vendor/refinerycms/pages/spec/models/page_spec.rb +0 -143
- data/vendor/refinerycms/refinery.rb +0 -45
- data/vendor/refinerycms/refinerycms.rb +0 -12
- data/vendor/refinerycms/resources/app/controllers/admin/resources_controller.rb +0 -87
- data/vendor/refinerycms/resources/app/models/resource.rb +0 -40
- data/vendor/refinerycms/resources/app/views/admin/resources/_form.html.erb +0 -52
- data/vendor/refinerycms/resources/app/views/admin/resources/_resource.html.erb +0 -17
- data/vendor/refinerycms/resources/app/views/admin/resources/index.html.erb +0 -45
- data/vendor/refinerycms/resources/app/views/admin/resources/insert.html.erb +0 -54
- data/vendor/refinerycms/resources/config/locales/da.yml +0 -32
- data/vendor/refinerycms/resources/config/locales/de.yml +0 -31
- data/vendor/refinerycms/resources/config/locales/en.yml +0 -31
- data/vendor/refinerycms/resources/config/locales/es.yml +0 -30
- data/vendor/refinerycms/resources/config/locales/fr.yml +0 -32
- data/vendor/refinerycms/resources/config/locales/it.yml +0 -32
- data/vendor/refinerycms/resources/config/locales/lv.yml +0 -30
- data/vendor/refinerycms/resources/config/locales/nb.yml +0 -33
- data/vendor/refinerycms/resources/config/locales/nl.yml +0 -30
- data/vendor/refinerycms/resources/config/locales/pt-BR.yml +0 -31
- data/vendor/refinerycms/resources/config/locales/ru.yml +0 -33
- data/vendor/refinerycms/resources/config/locales/sl.yml +0 -30
- data/vendor/refinerycms/resources/config/locales/zh-CN.yml +0 -29
- data/vendor/refinerycms/resources/config/routes.rb +0 -11
- data/vendor/refinerycms/resources/features/manage_files.feature +0 -43
- data/vendor/refinerycms/resources/features/step_definitions/file_steps.rb +0 -21
- data/vendor/refinerycms/resources/lib/resources.rb +0 -58
- data/vendor/refinerycms/resources/readme.md +0 -9
- data/vendor/refinerycms/resources/spec/models/resource_spec.rb +0 -45
- data/vendor/refinerycms/settings/app/controllers/admin/refinery_settings_controller.rb +0 -60
- data/vendor/refinerycms/settings/app/models/refinery_setting.rb +0 -212
- data/vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb +0 -51
- data/vendor/refinerycms/settings/app/views/admin/refinery_settings/_refinery_setting.html.erb +0 -17
- data/vendor/refinerycms/settings/app/views/admin/refinery_settings/index.html.erb +0 -55
- data/vendor/refinerycms/settings/config/locales/da.yml +0 -49
- data/vendor/refinerycms/settings/config/locales/de.yml +0 -43
- data/vendor/refinerycms/settings/config/locales/en.yml +0 -44
- data/vendor/refinerycms/settings/config/locales/es.yml +0 -42
- data/vendor/refinerycms/settings/config/locales/fr.yml +0 -23
- data/vendor/refinerycms/settings/config/locales/it.yml +0 -23
- data/vendor/refinerycms/settings/config/locales/lv.yml +0 -43
- data/vendor/refinerycms/settings/config/locales/nb.yml +0 -45
- data/vendor/refinerycms/settings/config/locales/nl.yml +0 -42
- data/vendor/refinerycms/settings/config/locales/pt-BR.yml +0 -43
- data/vendor/refinerycms/settings/config/locales/ru.yml +0 -45
- data/vendor/refinerycms/settings/config/locales/sl.yml +0 -24
- data/vendor/refinerycms/settings/config/locales/zh-CN.yml +0 -40
- data/vendor/refinerycms/settings/config/routes.rb +0 -5
- data/vendor/refinerycms/settings/features/step_definitions/setting_steps.rb +0 -9
- data/vendor/refinerycms/settings/lib/settings.rb +0 -16
- data/vendor/refinerycms/settings/readme.md +0 -55
@@ -1,978 +0,0 @@
|
|
1
|
-
var shiftHeld = false;
|
2
|
-
$(document).ready(function(){
|
3
|
-
init_interface();
|
4
|
-
init_sortable_menu();
|
5
|
-
init_submit_continue();
|
6
|
-
init_modal_dialogs();
|
7
|
-
init_tooltips();
|
8
|
-
});
|
9
|
-
|
10
|
-
init_interface = function() {
|
11
|
-
if (parent && parent.document.location.href != document.location.href) {
|
12
|
-
$('body#dialog_container.dialog').addClass('iframed');
|
13
|
-
}
|
14
|
-
$('input:submit:not(.button)').addClass('button');
|
15
|
-
|
16
|
-
$('.button, #editor_switch a').corner('6px');
|
17
|
-
$('#editor_switch a').appendTo($('<span></span>').prependTo('#editor_switch').corner('6px'));
|
18
|
-
$('#page_container, .wym_box').corner('5px bottom');
|
19
|
-
$('.wym_box').corner('5px tr');
|
20
|
-
$('.field > .wym_box').corner('5px tl');
|
21
|
-
$('.wym_iframe iframe').corner('2px');
|
22
|
-
$('.form-actions:not(".form-actions-dialog")').corner('5px');
|
23
|
-
$('#recent_activity li a, #recent_inquiries li a').each(function(i, a) {
|
24
|
-
$(this).textTruncate({
|
25
|
-
width: $(this).width()
|
26
|
-
, tooltip: false
|
27
|
-
});
|
28
|
-
});
|
29
|
-
|
30
|
-
// make sure that users can tab to wymeditor fields and add an overlay while loading.
|
31
|
-
$('textarea.wymeditor').each(function() {
|
32
|
-
textarea = $(this);
|
33
|
-
if ((instance = WYMeditor.INSTANCES[$((textarea.next('.wym_box').find('iframe').attr('id')||'').split('_')).last().get(0)]) != null) {
|
34
|
-
if ((next = textarea.parent().next()) != null && next.length > 0) {
|
35
|
-
next.find('input, textarea').keydown($.proxy(function(e) {
|
36
|
-
shiftHeld = e.shiftKey;
|
37
|
-
if (shiftHeld && e.keyCode == $.ui.keyCode.TAB) {
|
38
|
-
this._iframe.contentWindow.focus();
|
39
|
-
e.preventDefault();
|
40
|
-
}
|
41
|
-
}, instance)).keyup(function(e) {
|
42
|
-
shiftHeld = false;
|
43
|
-
});
|
44
|
-
}
|
45
|
-
if ((prev = textarea.parent().prev()) != null && prev.length > 0) {
|
46
|
-
prev.find('input, textarea').keydown($.proxy(function(e) {
|
47
|
-
if (e.keyCode == $.ui.keyCode.TAB) {
|
48
|
-
this._iframe.contentWindow.focus();
|
49
|
-
e.preventDefault();
|
50
|
-
}
|
51
|
-
}, instance));
|
52
|
-
}
|
53
|
-
}
|
54
|
-
});
|
55
|
-
|
56
|
-
// ensure that the menu isn't wider than the page_container or else it looks silly to round that corner.
|
57
|
-
if (($menu = $('#menu')).length > 0) {
|
58
|
-
$menu.jcarousel({
|
59
|
-
vertical: false
|
60
|
-
, scroll: 1
|
61
|
-
, buttonNextHTML: "<img src='/images/refinery/carousel-right.png' alt='down' height='15' width='10' />"
|
62
|
-
, buttonPrevHTML: "<img src='/images/refinery/carousel-left.png' alt='up' height='15' width='10' />"
|
63
|
-
, listTag: $menu.get(0).tagName.toLowerCase()
|
64
|
-
, itemTag: $menu.children(':first').get(0).tagName.toLowerCase()
|
65
|
-
});
|
66
|
-
|
67
|
-
if ($menu.outerWidth() < $('#page_container').outerWidth()) {
|
68
|
-
$("#page_container:not('.login #page_container')").corner('5px tr');
|
69
|
-
} else {
|
70
|
-
$("#page_container:not('.login #page_container')").uncorner();
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
$('#current_locale li a').click(function(e) {
|
75
|
-
$('#current_locale li a span').each(function(span){
|
76
|
-
$(this).css('display', $(this).css('display') == 'none' ? '' : 'none');
|
77
|
-
});
|
78
|
-
$('#other_locales').animate({opacity: 'toggle', height: 'toggle'}, 250);
|
79
|
-
e.preventDefault();
|
80
|
-
});
|
81
|
-
}
|
82
|
-
|
83
|
-
init_modal_dialogs = function(){
|
84
|
-
$('a[href*="dialog=true"]').not('#dialog_container a').each(function(i, anchor) {
|
85
|
-
$(anchor).data({
|
86
|
-
'dialog-width': parseInt($($(anchor).attr('href').match("width=([0-9]*)")).last().get(0))||928
|
87
|
-
, 'dialog-height': parseInt($($(anchor).attr('href').match("height=([0-9]*)")).last().get(0))||473
|
88
|
-
, 'dialog-title': ($(anchor).attr('title') || $(anchor).attr('name') || $(anchor).html() || null)
|
89
|
-
}).attr('href', $(anchor).attr('href').replace(/(\&(amp\;)?)?dialog\=true/, '')
|
90
|
-
.replace(/(\&(amp\;)?)?width\=\d+/, '')
|
91
|
-
.replace(/(\&(amp\;)?)?height\=\d+/, '')
|
92
|
-
.replace(/(\?&(amp\;)?)/, '?')
|
93
|
-
.replace(/\?$/, ''))
|
94
|
-
.click(function(e){
|
95
|
-
$anchor = $(this);
|
96
|
-
iframe_src = (iframe_src = $anchor.attr('href'))
|
97
|
-
+ (iframe_src.indexOf('?') > -1 ? '&' : '?')
|
98
|
-
+ 'app_dialog=true&dialog=true';
|
99
|
-
|
100
|
-
iframe = $("<iframe id='dialog_iframe' src='" + iframe_src + "'></iframe>").corner('8px');
|
101
|
-
iframe.dialog({
|
102
|
-
title: $anchor.data('dialog-title')
|
103
|
-
, modal: true
|
104
|
-
, resizable: false
|
105
|
-
, autoOpen: true
|
106
|
-
, width: $anchor.data('dialog-width')
|
107
|
-
, height: $anchor.data('dialog-height')
|
108
|
-
, open: onOpenDialog
|
109
|
-
, close: onCloseDialog
|
110
|
-
});
|
111
|
-
if ($.browser.msie) {
|
112
|
-
iframe.css({'margin':'-2px 2px 2px -2px'});
|
113
|
-
}
|
114
|
-
if(parseInt($anchor.data('dialog-height')) < $(window).height()) {
|
115
|
-
$(document.body).addClass('hide-overflow');
|
116
|
-
}
|
117
|
-
e.preventDefault();
|
118
|
-
});
|
119
|
-
});
|
120
|
-
}
|
121
|
-
|
122
|
-
init_sortable_menu = function(){
|
123
|
-
var $menu = $('#menu');
|
124
|
-
|
125
|
-
if($menu.length == 0){return}
|
126
|
-
|
127
|
-
$menu.sortable({
|
128
|
-
axis: 'x',
|
129
|
-
cursor: 'crosshair',
|
130
|
-
connectWith: '.nested',
|
131
|
-
update: function(){
|
132
|
-
$.post('/refinery/update_menu_positions', $menu.sortable('serialize', {
|
133
|
-
key: 'menu[]'
|
134
|
-
, expression: /plugin_([\w]*)$/
|
135
|
-
}));
|
136
|
-
}
|
137
|
-
}).tabs();
|
138
|
-
//Initial status disabled
|
139
|
-
$menu.sortable('disable');
|
140
|
-
|
141
|
-
$menu.find('#menu_reorder').click(function(e){
|
142
|
-
trigger_reordering(e, true);
|
143
|
-
});
|
144
|
-
|
145
|
-
$menu.find('#menu_reorder_done').click(function(e){
|
146
|
-
trigger_reordering(e, false);
|
147
|
-
});
|
148
|
-
|
149
|
-
$menu.find('> a').corner('top 5px');
|
150
|
-
}
|
151
|
-
|
152
|
-
trigger_reordering = function(e, enable) {
|
153
|
-
e.preventDefault();
|
154
|
-
$('#menu_reorder, #menu_reorder_done').toggle();
|
155
|
-
$('#site_bar, #content').fadeTo(500, enable ? 0.35 : 1);
|
156
|
-
|
157
|
-
if(enable) {
|
158
|
-
$menu.find('.tab a').click(function(ev){
|
159
|
-
ev.preventDefault();
|
160
|
-
});
|
161
|
-
} else {
|
162
|
-
$menu.find('.tab a').unbind('click');
|
163
|
-
}
|
164
|
-
|
165
|
-
$menu.sortable(enable ? 'enable' : 'disable');
|
166
|
-
}
|
167
|
-
|
168
|
-
init_submit_continue = function(){
|
169
|
-
$('#submit_continue_button').click(submit_and_continue);
|
170
|
-
|
171
|
-
$('form').change(function(e) {
|
172
|
-
$(this).attr('data-changes-made', true);
|
173
|
-
});
|
174
|
-
|
175
|
-
if ((continue_editing_button = $('#continue_editing')).length > 0 && continue_editing_button.attr('rel') != 'no-prompt') {
|
176
|
-
$('#editor_switch a').click(function(e) {
|
177
|
-
if ($('form[data-changes-made]').length > 0) {
|
178
|
-
if (!confirm("Any changes you've made will be lost. Are you sure you want to continue without saving?")) {
|
179
|
-
e.preventDefault();
|
180
|
-
}
|
181
|
-
}
|
182
|
-
});
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
submit_and_continue = function(e, redirect_to) {
|
187
|
-
// ensure wymeditors are up to date.
|
188
|
-
if ($(this).hasClass('wymupdate')) {
|
189
|
-
$.each(WYMeditor.INSTANCES, function(index, wym)
|
190
|
-
{
|
191
|
-
wym.update();
|
192
|
-
});
|
193
|
-
}
|
194
|
-
|
195
|
-
$('#continue_editing').val(true);
|
196
|
-
$('#flash').fadeOut(250)
|
197
|
-
|
198
|
-
$('.fieldWithErrors').removeClass('fieldWithErrors').addClass('field');
|
199
|
-
$('#flash_container .errorExplanation').remove();
|
200
|
-
|
201
|
-
$.post($('#continue_editing').get(0).form.action, $($('#continue_editing').get(0).form).serialize(), function(data) {
|
202
|
-
if (($flash_container = $('#flash_container')).length > 0) {
|
203
|
-
$flash_container.html(data);
|
204
|
-
|
205
|
-
$('#flash').css('width', 'auto').fadeIn(550);
|
206
|
-
|
207
|
-
$('.errorExplanation').not($('#flash_container .errorExplanation')).remove();
|
208
|
-
|
209
|
-
if ((error_fields = $('#fieldsWithErrors').val()) != null) {
|
210
|
-
$.each(error_fields.split(','), function() {
|
211
|
-
$("#" + this).wrap("<div class='fieldWithErrors' />");
|
212
|
-
});
|
213
|
-
} else if (redirect_to) {
|
214
|
-
window.location = redirect_to;
|
215
|
-
}
|
216
|
-
|
217
|
-
$('.fieldWithErrors:first :input:first').focus();
|
218
|
-
|
219
|
-
$('#continue_editing').val(false);
|
220
|
-
|
221
|
-
init_flash_messages();
|
222
|
-
}
|
223
|
-
});
|
224
|
-
|
225
|
-
e.preventDefault();
|
226
|
-
}
|
227
|
-
|
228
|
-
init_tooltips = function(args){
|
229
|
-
$($(args != null ? args : 'a[title], span[title], #image_grid img[title], *[tooltip]')).not('.no-tooltip').each(function(index, element)
|
230
|
-
{
|
231
|
-
// create tooltip on hover and destroy it on hoveroff.
|
232
|
-
$(element).hover(function(e) {
|
233
|
-
$(this).oneTime(350, 'tooltip', $.proxy(function() {
|
234
|
-
$('.tooltip').remove();
|
235
|
-
tooltip = $("<div class='tooltip'><div><span></span></div></div>").corner('6px').appendTo('#tooltip_container');
|
236
|
-
tooltip.find("span").html($(this).attr('tooltip')).corner('6px');
|
237
|
-
|
238
|
-
nib = $("<img src='/images/refinery/tooltip-nib.png' class='tooltip-nib'/>").appendTo('#tooltip_container');
|
239
|
-
|
240
|
-
tooltip.css({
|
241
|
-
'opacity': 0
|
242
|
-
, 'maxWidth': '300px'
|
243
|
-
});
|
244
|
-
required_left_offset = $(this).offset().left - (tooltip.outerWidth() / 2) + ($(this).outerWidth() / 2);
|
245
|
-
tooltip.css('left', (required_left_offset > 0 ? required_left_offset : 0));
|
246
|
-
|
247
|
-
var tooltip_offset = tooltip.offset();
|
248
|
-
var tooltip_outer_width = tooltip.outerWidth();
|
249
|
-
if (tooltip_offset && (tooltip_offset.left + tooltip_outer_width) > (window_width = $(window).width())) {
|
250
|
-
tooltip.css('left', window_width - tooltip_outer_width);
|
251
|
-
}
|
252
|
-
|
253
|
-
tooltip.css({
|
254
|
-
'top': $(this).offset().top - tooltip.outerHeight() - 2
|
255
|
-
})
|
256
|
-
|
257
|
-
nib.css({
|
258
|
-
'opacity': 0
|
259
|
-
});
|
260
|
-
|
261
|
-
if (tooltip_offset = tooltip.offset()) {
|
262
|
-
nib.css({
|
263
|
-
'left': $(this).offset().left + ($(this).outerWidth() / 2) - 5
|
264
|
-
, 'top': tooltip_offset.top + tooltip.height()
|
265
|
-
});
|
266
|
-
}
|
267
|
-
|
268
|
-
try {
|
269
|
-
tooltip.animate({
|
270
|
-
top: tooltip_offset.top - 10
|
271
|
-
, opacity: 1
|
272
|
-
}, 200, 'swing');
|
273
|
-
nib.animate({
|
274
|
-
top: nib.offset().top - 10
|
275
|
-
, opacity: 1
|
276
|
-
}, 200);
|
277
|
-
} catch(e) {
|
278
|
-
tooltip.show();
|
279
|
-
nib.show();
|
280
|
-
}
|
281
|
-
}, $(this)));
|
282
|
-
|
283
|
-
}, function(e) {
|
284
|
-
$(this).stopTime('tooltip');
|
285
|
-
if ((tt_offset = (tooltip = $('.tooltip')).css('z-index', '-1').offset()) == null) {
|
286
|
-
tt_offset = {'top':0,'left':0};
|
287
|
-
}
|
288
|
-
tooltip.animate({
|
289
|
-
top: tt_offset.top - 20
|
290
|
-
, opacity: 0
|
291
|
-
}, 125, 'swing', function(){
|
292
|
-
$(this).remove();
|
293
|
-
});
|
294
|
-
if ((nib_offset = (nib = $('.tooltip-nib')).offset()) == null) {
|
295
|
-
nib_offset = {'top':0,'left':0};
|
296
|
-
}
|
297
|
-
nib.animate({
|
298
|
-
top: nib_offset.top - 20
|
299
|
-
, opacity: 0
|
300
|
-
}, 125, 'swing', function(){
|
301
|
-
$(this).remove();
|
302
|
-
});
|
303
|
-
}).click(function(e) {
|
304
|
-
$(this).stopTime('tooltip');
|
305
|
-
});
|
306
|
-
if ($(element).attr('tooltip') == null) {
|
307
|
-
$(element).attr('tooltip', $(element).attr('title'));
|
308
|
-
}
|
309
|
-
// wipe clean the title on any children too.
|
310
|
-
$(element).add($(element).children('img')).removeAttr('title');
|
311
|
-
});
|
312
|
-
}
|
313
|
-
|
314
|
-
var link_dialog = {
|
315
|
-
init: function(test_url, test_email){
|
316
|
-
this.test_url = test_url;
|
317
|
-
this.test_email = test_email;
|
318
|
-
this.init_tabs();
|
319
|
-
this.init_resources_submit();
|
320
|
-
this.init_close();
|
321
|
-
this.page_tab();
|
322
|
-
this.web_tab();
|
323
|
-
this.email_tab();
|
324
|
-
},
|
325
|
-
|
326
|
-
init_tabs: function(){
|
327
|
-
var radios = $('#dialog_menu_left input:radio');
|
328
|
-
var selected = radios.parent().filter(".selected_radio").find('input:radio').first() || radios.first();
|
329
|
-
|
330
|
-
radios.click(function(){
|
331
|
-
link_dialog.switch_area($(this));
|
332
|
-
});
|
333
|
-
|
334
|
-
selected.attr('checked', 'true');
|
335
|
-
link_dialog.switch_area(selected);
|
336
|
-
},
|
337
|
-
|
338
|
-
init_resources_submit: function(){
|
339
|
-
$('#existing_resource_area .form-actions-dialog #submit_button').click(function(e){
|
340
|
-
e.preventDefault();
|
341
|
-
if((resource_selected = $('#existing_resource_area_content ul li.linked a')).length > 0) {
|
342
|
-
resourceUrl = parseURL(resource_selected.attr('href'));
|
343
|
-
relevant_href = resourceUrl.pathname;
|
344
|
-
|
345
|
-
// Add any alternate resource stores that need a absolute URL in the regex below
|
346
|
-
if(resourceUrl.hostname.match(/s3.amazonaws.com/)) {
|
347
|
-
relevant_href = resourceUrl.protocol + '//' + resourceUrl.host + relevant_href;
|
348
|
-
}
|
349
|
-
|
350
|
-
if (typeof(resource_picker.callback) == "function") {
|
351
|
-
resource_picker.callback({
|
352
|
-
id: resource_selected.attr('id').replace("resource_", "")
|
353
|
-
, href: relevant_href
|
354
|
-
, html: resource_selected.html()
|
355
|
-
});
|
356
|
-
}
|
357
|
-
}
|
358
|
-
});
|
359
|
-
|
360
|
-
$('.form-actions-dialog #cancel_button').trigger('click');
|
361
|
-
},
|
362
|
-
|
363
|
-
init_close: function(){
|
364
|
-
$('.form-actions-dialog #cancel_button').click(close_dialog);
|
365
|
-
|
366
|
-
if (parent
|
367
|
-
&& parent.document.location.href != document.location.href
|
368
|
-
&& parent.document.getElementById('wym_dialog_submit') != null) {
|
369
|
-
$('#dialog_container .form-actions input#submit_button').click(function(e) {
|
370
|
-
e.preventDefault();
|
371
|
-
$(parent.document.getElementById('wym_dialog_submit')).click();
|
372
|
-
});
|
373
|
-
$('#dialog_container .form-actions a.close_dialog').click(close_dialog);
|
374
|
-
}
|
375
|
-
},
|
376
|
-
|
377
|
-
switch_area: function(area){
|
378
|
-
$('#dialog_menu_left .selected_radio').removeClass('selected_radio');
|
379
|
-
$(area).parent().addClass('selected_radio');
|
380
|
-
$('#dialog_main .dialog_area').hide();
|
381
|
-
$('#' + $(area).val() + '_area').show();
|
382
|
-
},
|
383
|
-
|
384
|
-
//Same for resources tab
|
385
|
-
page_tab: function(){
|
386
|
-
$('.link_list li').click(function(e){
|
387
|
-
e.preventDefault();
|
388
|
-
|
389
|
-
$('.link_list li.linked').removeClass('linked');
|
390
|
-
$(this).addClass('linked');
|
391
|
-
|
392
|
-
var link = $(this).children('a.page_link').get(0);
|
393
|
-
var port = (window.location.port.length > 0 ? (":" + window.location.port) : "");
|
394
|
-
var url = link.href.replace(window.location.protocol + "//" + window.location.hostname + port, "");
|
395
|
-
|
396
|
-
link_dialog.update_parent(url, link.rel.replace(/\ ?<em>.+?<\/em>/, ''));
|
397
|
-
});
|
398
|
-
},
|
399
|
-
|
400
|
-
web_tab: function(){
|
401
|
-
$('#web_address_text').bind('paste change',function(){
|
402
|
-
var prefix = '#web_address_',
|
403
|
-
icon = '';
|
404
|
-
|
405
|
-
$(prefix + 'test_loader').show();
|
406
|
-
$(prefix + 'test_result').hide();
|
407
|
-
$(prefix + 'test_result').removeClass('success_icon').removeClass('failure_icon');
|
408
|
-
|
409
|
-
$.getJSON(link_dialog.test_url, {url: this.value}, function(data){
|
410
|
-
if(data.result == 'success'){
|
411
|
-
icon = 'success_icon';
|
412
|
-
}else{
|
413
|
-
icon = 'failure_icon';
|
414
|
-
}
|
415
|
-
|
416
|
-
$(prefix + 'test_result').addClass(icon).show();
|
417
|
-
$(prefix + 'test_loader').hide();
|
418
|
-
});
|
419
|
-
|
420
|
-
link_dialog.update_parent( $(prefix + 'text').val(),
|
421
|
-
$(prefix + 'text').val(),
|
422
|
-
($(prefix + 'target_blank').checked ? "_blank" : "")
|
423
|
-
);
|
424
|
-
});
|
425
|
-
|
426
|
-
$('#web_address_target_blank').click(function(){
|
427
|
-
parent.document.getElementById('wym_target').value = this.checked ? "_blank" : "";
|
428
|
-
});
|
429
|
-
|
430
|
-
},
|
431
|
-
|
432
|
-
email_tab: function() {
|
433
|
-
$('#email_address_text, #email_default_subject_text, #email_default_body_text').change(function(e){
|
434
|
-
var default_subject = $('#email_default_subject_text').val(),
|
435
|
-
default_body = $('#email_default_body_text').val(),
|
436
|
-
mailto = "mailto:" + $('#email_address_text').val(),
|
437
|
-
modifier = "?",
|
438
|
-
icon = '';
|
439
|
-
|
440
|
-
$('#email_address_test_loader').show();
|
441
|
-
$('#email_address_test_result').hide();
|
442
|
-
$('#email_address_test_result').removeClass('success_icon').removeClass('failure_icon');
|
443
|
-
|
444
|
-
$.getJSON(link_dialog.test_email, {email: mailto}, function(data){
|
445
|
-
if(data.result == 'success'){
|
446
|
-
icon = 'success_icon';
|
447
|
-
}else{
|
448
|
-
icon = 'failure_icon';
|
449
|
-
}
|
450
|
-
|
451
|
-
$('#email_address_test_result').addClass(icon).show();
|
452
|
-
$('#email_address_test_loader').hide();
|
453
|
-
});
|
454
|
-
|
455
|
-
if(default_subject.length > 0){
|
456
|
-
mailto += modifier + "subject=" + default_subject;
|
457
|
-
modifier = "&";
|
458
|
-
}
|
459
|
-
|
460
|
-
if(default_body.length > 0){
|
461
|
-
mailto += modifier + "body=" + default_body;
|
462
|
-
modifier = "&";
|
463
|
-
}
|
464
|
-
|
465
|
-
link_dialog.update_parent(mailto, mailto.replace('mailto:', ''));
|
466
|
-
});
|
467
|
-
},
|
468
|
-
|
469
|
-
update_parent: function(url, title, target) {
|
470
|
-
if (parent != null) {
|
471
|
-
if ((wym_href = parent.document.getElementById('wym_href')) != null) {
|
472
|
-
wym_href.value = url;
|
473
|
-
}
|
474
|
-
if ((wym_title = parent.document.getElementById('wym_title')) != null) {
|
475
|
-
wym_title.value = title;
|
476
|
-
}
|
477
|
-
if ((wym_target = parent.document.getElementById('wym_target')) != null) {
|
478
|
-
wym_target.value = target || "";
|
479
|
-
}
|
480
|
-
}
|
481
|
-
}
|
482
|
-
}
|
483
|
-
|
484
|
-
var page_options = {
|
485
|
-
init: function(enable_parts, new_part_url, del_part_url){
|
486
|
-
// set the page tabs up, but ensure that all tabs are shown so that when wymeditor loads it has a proper height.
|
487
|
-
// also disable page overflow so that scrollbars don't appear while the page is loading.
|
488
|
-
$(document.body).addClass('hide-overflow');
|
489
|
-
page_options.tabs = $('#page-tabs');
|
490
|
-
page_options.tabs.tabs({tabTemplate: '<li><a href="#{href}">#{label}</a></li>'})
|
491
|
-
page_options.tabs.find(' > ul li a').corner('top 5px');
|
492
|
-
|
493
|
-
part_shown = $('#page-tabs .page_part.field').not('.ui-tabs-hide');
|
494
|
-
$('#page-tabs .page_part.field').removeClass('ui-tabs-hide');
|
495
|
-
|
496
|
-
this.enable_parts = enable_parts;
|
497
|
-
this.new_part_url = new_part_url;
|
498
|
-
this.del_part_url = del_part_url;
|
499
|
-
this.show_options();
|
500
|
-
this.title_type();
|
501
|
-
|
502
|
-
// Hook into the loaded function. This will be called when WYMeditor has done its thing.
|
503
|
-
WYMeditor.loaded = function(){
|
504
|
-
// hide the tabs that are supposed to be hidden and re-enable overflow.
|
505
|
-
$(document.body).removeClass('hide-overflow');
|
506
|
-
$('#page-tabs .page_part.field').not(part_shown).addClass('ui-tabs-hide');
|
507
|
-
$('#page-tabs > ul li a').corner('top 5px');
|
508
|
-
}
|
509
|
-
|
510
|
-
if(this.enable_parts){
|
511
|
-
this.page_part_dialog();
|
512
|
-
}
|
513
|
-
},
|
514
|
-
|
515
|
-
show_options: function(){
|
516
|
-
$('#toggle_advanced_options').click(function(e){
|
517
|
-
e.preventDefault();
|
518
|
-
$('#more_options').animate({opacity: 'toggle', height: 'toggle'}, 250);
|
519
|
-
|
520
|
-
$('html,body').animate({
|
521
|
-
scrollTop: $('#toggle_advanced_options').parent().offset().top
|
522
|
-
}, 250);
|
523
|
-
});
|
524
|
-
},
|
525
|
-
|
526
|
-
title_type: function(){
|
527
|
-
$("input[name=page\[custom_title_type\]]").change(function(){
|
528
|
-
$('#custom_title_text, #custom_title_image').hide();
|
529
|
-
$('#custom_title_' + this.value).show();
|
530
|
-
});
|
531
|
-
},
|
532
|
-
|
533
|
-
page_part_dialog: function(){
|
534
|
-
$('#new_page_part_dialog').dialog({
|
535
|
-
title: 'Create Content Section',
|
536
|
-
modal: true,
|
537
|
-
resizable: false,
|
538
|
-
autoOpen: false,
|
539
|
-
width: 600,
|
540
|
-
height: 200
|
541
|
-
});
|
542
|
-
|
543
|
-
$('#add_page_part').click(function(e){
|
544
|
-
e.preventDefault();
|
545
|
-
$('#new_page_part_dialog').dialog('open');
|
546
|
-
});
|
547
|
-
|
548
|
-
$('#new_page_part_save').click(function(e){
|
549
|
-
e.preventDefault();
|
550
|
-
|
551
|
-
var part_title = $('#new_page_part_title').val();
|
552
|
-
|
553
|
-
if(part_title.length > 0){
|
554
|
-
var tab_title = part_title.toLowerCase().replace(" ", "_");
|
555
|
-
|
556
|
-
if ($('#part_' + tab_title).size() == 0) {
|
557
|
-
$.get(page_options.new_part_url,
|
558
|
-
{
|
559
|
-
title: part_title
|
560
|
-
, part_index: $('#new_page_part_index').val()
|
561
|
-
, body: ''
|
562
|
-
}
|
563
|
-
, function(data, status){
|
564
|
-
$('#submit_continue_button').remove();
|
565
|
-
// Add a new tab for the new content section.
|
566
|
-
$(data).appendTo('#page_part_editors');
|
567
|
-
page_options.tabs.tabs('add', '#page_part_new_' + $('#new_page_part_index').val(), part_title);
|
568
|
-
page_options.tabs.tabs('select', $('#new_page_part_index').val());
|
569
|
-
|
570
|
-
// turn the new textarea into a wymeditor.
|
571
|
-
$('#page_parts_attributes_' + $('#new_page_part_index').val() + "_body").wymeditor(wymeditor_boot_options);
|
572
|
-
|
573
|
-
// hook into wymedtior to instruct it to select this new tab again once it has loaded.
|
574
|
-
WYMeditor.loaded = function() {
|
575
|
-
page_options.tabs.tabs('select', $('#new_page_part_index').val());
|
576
|
-
WYMeditor.loaded = function(){}; // kill it again.
|
577
|
-
}
|
578
|
-
|
579
|
-
// Wipe the title and increment the index counter by one.
|
580
|
-
$('#new_page_part_index').val(parseInt($('#new_page_part_index').val()) + 1);
|
581
|
-
$('#new_page_part_title').val('');
|
582
|
-
|
583
|
-
page_options.tabs.find('> ul li a').corner('top 5px');
|
584
|
-
|
585
|
-
$('#new_page_part_dialog').dialog('close');
|
586
|
-
}
|
587
|
-
);
|
588
|
-
}else{
|
589
|
-
alert("A content section with that title already exists, please choose another.");
|
590
|
-
}
|
591
|
-
}else{
|
592
|
-
alert("You have not entered a title for the content section, please enter one.");
|
593
|
-
}
|
594
|
-
});
|
595
|
-
|
596
|
-
$('#new_page_part_cancel').click(function(e){
|
597
|
-
e.preventDefault();
|
598
|
-
$('#new_page_part_dialog').dialog('close');
|
599
|
-
$('#new_page_part_title').val('');
|
600
|
-
});
|
601
|
-
|
602
|
-
$('#delete_page_part').click(function(e){
|
603
|
-
e.preventDefault();
|
604
|
-
|
605
|
-
if(confirm("This will remove the content section '" + $('#page_parts .ui-tabs-selected a').html() + "' immediately even if you don't save this page, are you sure?")) {
|
606
|
-
var tabId = page_options.tabs.tabs('option', 'selected');
|
607
|
-
$.ajax({
|
608
|
-
url: page_options.del_part_url + '/' + $('#page_parts_attributes_' + tabId + '_id').val(),
|
609
|
-
type: 'DELETE'
|
610
|
-
});
|
611
|
-
page_options.tabs.tabs('remove', tabId);
|
612
|
-
$('#page_parts_attributes_' + tabId + '_id').remove();
|
613
|
-
$('#submit_continue_button').remove();
|
614
|
-
}
|
615
|
-
|
616
|
-
});
|
617
|
-
|
618
|
-
}
|
619
|
-
|
620
|
-
}
|
621
|
-
|
622
|
-
var image_dialog = {
|
623
|
-
initialised: false
|
624
|
-
, callback: null
|
625
|
-
|
626
|
-
, init: function(callback){
|
627
|
-
this.callback = callback;
|
628
|
-
this.init_tabs();
|
629
|
-
this.init_select();
|
630
|
-
this.init_actions();
|
631
|
-
this.initialised = true;
|
632
|
-
return this;
|
633
|
-
}
|
634
|
-
|
635
|
-
, init_tabs: function(){
|
636
|
-
var radios = $('#dialog_menu_left input:radio');
|
637
|
-
var selected = radios.parent().filter(".selected_radio").find('input:radio').first() || radios.first();
|
638
|
-
|
639
|
-
radios.click(function(){
|
640
|
-
link_dialog.switch_area($(this));
|
641
|
-
});
|
642
|
-
|
643
|
-
selected.attr('checked', 'true');
|
644
|
-
link_dialog.switch_area(selected);
|
645
|
-
}
|
646
|
-
|
647
|
-
, switch_area: function(radio){
|
648
|
-
$('#dialog_menu_left .selected_radio').removeClass('selected_radio');
|
649
|
-
$(radio).parent().addClass('selected_radio');
|
650
|
-
$('#dialog_main .dialog_area').hide();
|
651
|
-
$('#' + radio.value + '_area').show();
|
652
|
-
}
|
653
|
-
|
654
|
-
, init_select: function(){
|
655
|
-
$('#existing_image_area_content ul li img').click(function(){
|
656
|
-
image_dialog.set_image(this);
|
657
|
-
});
|
658
|
-
//Select any currently selected, just uploaded...
|
659
|
-
if ((selected_img = $('#existing_image_area_content ul li.selected img')).length > 0) {
|
660
|
-
image_dialog.set_image(selected_img.first());
|
661
|
-
}
|
662
|
-
}
|
663
|
-
|
664
|
-
, set_image: function(img){
|
665
|
-
if ($(img).length > 0) {
|
666
|
-
$('#existing_image_area_content ul li.selected').removeClass('selected');
|
667
|
-
|
668
|
-
$(img).parent().addClass('selected');
|
669
|
-
var imageId = $(img).attr('data-id');
|
670
|
-
var geometry = $('#existing_image_size_area li.selected a').attr('data-geometry');
|
671
|
-
var size = $('#existing_image_size_area li.selected a').attr('data-size');
|
672
|
-
var resize = $("#wants_to_resize_image").is(':checked');
|
673
|
-
|
674
|
-
image_url = resize ? $(img).attr('data-' + size) : $(img).attr('data-original');
|
675
|
-
|
676
|
-
if (parent) {
|
677
|
-
if ((wym_src = parent.document.getElementById('wym_src')) != null) {
|
678
|
-
wym_src.value = image_url;
|
679
|
-
}
|
680
|
-
if ((wym_title = parent.document.getElementById('wym_title')) != null) {
|
681
|
-
wym_title.value = $(img).attr('title');
|
682
|
-
}
|
683
|
-
if ((wym_alt = parent.document.getElementById('wym_alt')) != null) {
|
684
|
-
wym_alt.value = $(img).attr('alt');
|
685
|
-
}
|
686
|
-
if ((wym_size = parent.document.getElementById('wym_size')) != null
|
687
|
-
&& typeof(geometry) != 'undefined') {
|
688
|
-
wym_size.value = geometry.replace(/[<>=]/g, '');
|
689
|
-
}
|
690
|
-
}
|
691
|
-
}
|
692
|
-
}
|
693
|
-
|
694
|
-
, submit_image_choice: function(e) {
|
695
|
-
e.preventDefault();
|
696
|
-
if((img_selected = $('#existing_image_area_content ul li.selected img').get(0)) && $.isFunction(this.callback))
|
697
|
-
{
|
698
|
-
this.callback(img_selected);
|
699
|
-
}
|
700
|
-
|
701
|
-
close_dialog(e);
|
702
|
-
}
|
703
|
-
|
704
|
-
, init_actions: function(){
|
705
|
-
var _this = this;
|
706
|
-
$('#existing_image_area .form-actions-dialog #submit_button').click($.proxy(_this.submit_image_choice, _this));
|
707
|
-
$('.form-actions-dialog #cancel_button').not('body.wym_iframe_body .form-actions-dialog #cancel_button').click($.proxy(close_dialog, _this));
|
708
|
-
$('#existing_image_size_area ul li a').click(function(e) {
|
709
|
-
$('#existing_image_size_area ul li').removeClass('selected');
|
710
|
-
$(this).parent().addClass('selected');
|
711
|
-
$('#existing_image_size_area #wants_to_resize_image').attr('checked', 'checked');
|
712
|
-
image_dialog.set_image($('#existing_image_area_content ul li.selected img'));
|
713
|
-
e.preventDefault();
|
714
|
-
});
|
715
|
-
$('#existing_image_size_area #wants_to_resize_image').change(function(){
|
716
|
-
if($(this).is(":checked")) {
|
717
|
-
$('#existing_image_size_area ul li:first a').click();
|
718
|
-
} else {
|
719
|
-
$('#existing_image_size_area ul li').removeClass('selected');
|
720
|
-
image_dialog.set_image($('#existing_image_area_content ul li.selected img'));
|
721
|
-
}
|
722
|
-
});
|
723
|
-
|
724
|
-
if (parent && parent.document.location.href != document.location.href
|
725
|
-
&& parent.document.getElementById('wym_dialog_submit') != null) {
|
726
|
-
$('#existing_image_area .form-actions input#submit_button').click($.proxy(function(e) {
|
727
|
-
e.preventDefault();
|
728
|
-
$(this.document.getElementById('wym_dialog_submit')).click();
|
729
|
-
}, parent));
|
730
|
-
$('#existing_image_area .form-actions a.close_dialog').click(close_dialog);
|
731
|
-
}
|
732
|
-
}
|
733
|
-
};
|
734
|
-
|
735
|
-
var list_reorder = {
|
736
|
-
initialised: false
|
737
|
-
, init: function() {
|
738
|
-
$('#reorder_action').click(list_reorder.enable_reordering);
|
739
|
-
$('#reorder_action_done').click(list_reorder.disable_reordering);
|
740
|
-
if(list_reorder.tree === false) {
|
741
|
-
list_reorder.sortable_list.find('li').addClass('no-nest');
|
742
|
-
}
|
743
|
-
list_reorder.sortable_list.nestedSortable({
|
744
|
-
disableNesting: 'no-nest',
|
745
|
-
forcePlaceholderSize: true,
|
746
|
-
handle: list_reorder.tree ? 'div' : null,
|
747
|
-
items: 'li',
|
748
|
-
opacity: .6,
|
749
|
-
placeholder: 'placeholder',
|
750
|
-
tabSize: 25,
|
751
|
-
tolerance: 'pointer',
|
752
|
-
toleranceElement: list_reorder.tree ? '> div' : null,
|
753
|
-
disabled: true,
|
754
|
-
start: function () {
|
755
|
-
},
|
756
|
-
change: function () {
|
757
|
-
if (list_reorder.tree) {
|
758
|
-
list_reorder.reset_branch_classes(this);
|
759
|
-
}
|
760
|
-
},
|
761
|
-
stop: function () {
|
762
|
-
if (list_reorder.tree) {
|
763
|
-
list_reorder.reset_branch_classes(this);
|
764
|
-
} else {
|
765
|
-
list_reorder.reset_on_off_classes(this);
|
766
|
-
}
|
767
|
-
}
|
768
|
-
});
|
769
|
-
if (list_reorder.tree) {
|
770
|
-
list_reorder.reset_branch_classes(list_reorder.sortable_list);
|
771
|
-
} else {
|
772
|
-
list_reorder.reset_on_off_classes(list_reorder.sortable_list);
|
773
|
-
}
|
774
|
-
this.initialised = true;
|
775
|
-
}
|
776
|
-
, reset_on_off_classes: function(ul) {
|
777
|
-
$("> li", ul).each(function(i, li) {
|
778
|
-
$(li).removeClass('on off on-hover').addClass(i % 2 === 0 ? 'on' : 'off');
|
779
|
-
});
|
780
|
-
}
|
781
|
-
|
782
|
-
, reset_branch_classes: function (ul) {
|
783
|
-
$("li.ui-sortable-helper", this).removeClass("record").removeClass("branch_start").removeClass("branch_end");
|
784
|
-
$("li", ul).removeClass("branch_start").removeClass("branch_end");
|
785
|
-
|
786
|
-
$("> li:first", ul).addClass("branch_start");
|
787
|
-
$("> li:last", ul).addClass("branch_end");
|
788
|
-
|
789
|
-
var nested_ul = $("ul", ul);
|
790
|
-
$("> li:last", nested_ul).addClass("branch_end");
|
791
|
-
}
|
792
|
-
|
793
|
-
,enable_reordering: function(e) {
|
794
|
-
if(e) { e.preventDefault(); }
|
795
|
-
$('#sortable_list').addClass("reordering");
|
796
|
-
|
797
|
-
$('#sortable_list .actions, #site_bar, header > *:not(script)').fadeTo(500, 0.3);
|
798
|
-
$('#actions *:not("#reorder_action_done, #reorder_action")').not($('#reorder_action_done').parents('li, ul, div')).fadeTo(500, 0.55);
|
799
|
-
|
800
|
-
list_reorder.sortable_list.nestedSortable("enable");
|
801
|
-
$('#reorder_action').hide();
|
802
|
-
$('#reorder_action_done').show();
|
803
|
-
}
|
804
|
-
|
805
|
-
, disable_reordering: function(e) {
|
806
|
-
if($('#reorder_action_done').hasClass('loading')){
|
807
|
-
return false;
|
808
|
-
}
|
809
|
-
if(e) { e.preventDefault(); }
|
810
|
-
$('#reorder_action_done').addClass('loading');
|
811
|
-
list_reorder.sortable_list.nestedSortable("disable");
|
812
|
-
|
813
|
-
$('#sortable_list').removeClass("reordering");
|
814
|
-
|
815
|
-
if (list_reorder.update_url != null) {
|
816
|
-
|
817
|
-
var serialized = list_reorder.sortable_list.serializelist();
|
818
|
-
|
819
|
-
$.post(list_reorder.update_url, serialized, function(data) {
|
820
|
-
list_reorder.restore_controls(e);
|
821
|
-
});
|
822
|
-
} else {
|
823
|
-
list_reorder.restore_controls(e);
|
824
|
-
}
|
825
|
-
}
|
826
|
-
|
827
|
-
, restore_controls: function(e) {
|
828
|
-
if (list_reorder.tree && !$.browser.msie) {
|
829
|
-
list_reorder.sortable_list.add(list_reorder.sortable_list.find('ul, li, div')).draggable({ disabled: true });
|
830
|
-
} else {
|
831
|
-
$(list_reorder.sortable_list).sortable('destroy');
|
832
|
-
}
|
833
|
-
$(list_reorder.sortable_list).removeClass('reordering, ui-sortable');
|
834
|
-
|
835
|
-
$('#sortable_list .actions, #site_bar, header > *:not(script)').fadeTo(250, 1);
|
836
|
-
$('#actions *:not("#reorder_action_done, #reorder_action")').not($('#reorder_action_done').parents('li, ul, div')).fadeTo(250, 1, function() {
|
837
|
-
$('#reorder_action_done').hide().removeClass('loading');
|
838
|
-
$('#reorder_action').show();
|
839
|
-
});
|
840
|
-
}
|
841
|
-
};
|
842
|
-
|
843
|
-
var image_picker = {
|
844
|
-
options: {
|
845
|
-
selected: '',
|
846
|
-
thumbnail: 'dialog_thumb',
|
847
|
-
field: '#image',
|
848
|
-
image_display: '#current_picked_image',
|
849
|
-
no_image_message: '#no_picked_image_selected',
|
850
|
-
image_container: '#current_image_container',
|
851
|
-
remove_image_button: '#remove_picked_image',
|
852
|
-
image_toggler: null
|
853
|
-
}
|
854
|
-
|
855
|
-
, init: function(new_options){
|
856
|
-
this.options = $.extend(this.options, new_options);
|
857
|
-
$(this.options.remove_image_button).click($.proxy(this.remove_image, this));
|
858
|
-
$(this.options.image_toggler).click($.proxy(this.toggle_image, this));
|
859
|
-
}
|
860
|
-
|
861
|
-
, remove_image: function(e) {
|
862
|
-
e.preventDefault();
|
863
|
-
$(this.options.image_display).removeClass('brown_border')
|
864
|
-
.attr({'src': '', 'width': '', 'height': ''})
|
865
|
-
.css({'width': 'auto', 'height': 'auto'})
|
866
|
-
.hide();
|
867
|
-
$(this.options.field).val('');
|
868
|
-
$(this.options.no_image_message).show();
|
869
|
-
$(this.options.remove_image_button).hide();
|
870
|
-
$(this).hide();
|
871
|
-
}
|
872
|
-
|
873
|
-
, toggle_image: function(e) {
|
874
|
-
$(this.options.image_toggler).html(($(this.options.image_toggler).html() == 'Show' ? 'Hide' : 'Show'));
|
875
|
-
$(this.options.image_container).toggle();
|
876
|
-
e.preventDefault();
|
877
|
-
}
|
878
|
-
|
879
|
-
, changed: function(image) {
|
880
|
-
$(this.options.field).val(image.id.replace("image_", ""));
|
881
|
-
|
882
|
-
$.ajax({
|
883
|
-
async: false,
|
884
|
-
url: '/refinery/images/'+$(image).attr('data-id')+'/url?size='+this.options.thumbnail,
|
885
|
-
success: function (result, status, xhr) {
|
886
|
-
if (result.error) {
|
887
|
-
if (console && console.log) {
|
888
|
-
console.log("Something went wrong with the image insertion!");
|
889
|
-
console.log(result);
|
890
|
-
}
|
891
|
-
} else {
|
892
|
-
image.src = result.url;
|
893
|
-
}
|
894
|
-
},
|
895
|
-
error: function(xhr, txt, status) {
|
896
|
-
if (console && console.log) {
|
897
|
-
console.log("Something went wrong with the image insertion!");
|
898
|
-
console.log(xhr);
|
899
|
-
console.log(txt);
|
900
|
-
console.log(status);
|
901
|
-
}
|
902
|
-
}
|
903
|
-
});
|
904
|
-
|
905
|
-
current_image = $(this.options.image_display);
|
906
|
-
current_image.replaceWith($("<img src='"+image.src+"?"+Math.floor(Math.random() * 1000000000)+"' id='"+current_image.attr('id')+"' class='brown_border' />"));
|
907
|
-
|
908
|
-
$(this.options.remove_image_button).show();
|
909
|
-
$(this.options.no_image_message).hide();
|
910
|
-
}
|
911
|
-
}
|
912
|
-
|
913
|
-
var resource_picker = {
|
914
|
-
callback: null
|
915
|
-
|
916
|
-
, init: function(callback) {
|
917
|
-
this.callback = callback;
|
918
|
-
}
|
919
|
-
}
|
920
|
-
|
921
|
-
close_dialog = function(e) {
|
922
|
-
if (parent
|
923
|
-
&& parent.document.location.href != document.location.href
|
924
|
-
&& $.isFunction(parent.$))
|
925
|
-
{
|
926
|
-
$(parent.document.body).removeClass('hide-overflow');
|
927
|
-
parent.$('.ui-dialog').dialog('close').remove();
|
928
|
-
} else {
|
929
|
-
$(document.body).removeClass('hide-overflow');
|
930
|
-
$('.ui-dialog').dialog('close').remove();
|
931
|
-
}
|
932
|
-
|
933
|
-
e.preventDefault();
|
934
|
-
}
|
935
|
-
|
936
|
-
//parse a URL to form an object of properties
|
937
|
-
parseURL = function(url)
|
938
|
-
{
|
939
|
-
//save the unmodified url to href property
|
940
|
-
//so that the object we get back contains
|
941
|
-
//all the same properties as the built-in location object
|
942
|
-
var loc = { 'href' : url };
|
943
|
-
|
944
|
-
//split the URL by single-slashes to get the component parts
|
945
|
-
var parts = url.replace('//', '/').split('/');
|
946
|
-
|
947
|
-
//store the protocol and host
|
948
|
-
loc.protocol = parts[0];
|
949
|
-
loc.host = parts[1];
|
950
|
-
|
951
|
-
//extract any port number from the host
|
952
|
-
//from which we derive the port and hostname
|
953
|
-
parts[1] = parts[1].split(':');
|
954
|
-
loc.hostname = parts[1][0];
|
955
|
-
loc.port = parts[1].length > 1 ? parts[1][1] : '';
|
956
|
-
|
957
|
-
//splice and join the remainder to get the pathname
|
958
|
-
parts.splice(0, 2);
|
959
|
-
// ensure we don't destroy absolute urls like /system/images/whatever.jpg
|
960
|
-
loc.pathname = (loc.href[0] == '/' ? ("/" + loc.host) : '');
|
961
|
-
loc.pathname += '/' + parts.join('/');
|
962
|
-
|
963
|
-
//extract any hash and remove from the pathname
|
964
|
-
loc.pathname = loc.pathname.split('#');
|
965
|
-
loc.hash = loc.pathname.length > 1 ? '#' + loc.pathname[1] : '';
|
966
|
-
loc.pathname = loc.pathname[0];
|
967
|
-
|
968
|
-
//extract any search query and remove from the pathname
|
969
|
-
loc.pathname = loc.pathname.split('?');
|
970
|
-
loc.search = loc.pathname.length > 1 ? '?' + loc.pathname[1] : '';
|
971
|
-
loc.pathname = loc.pathname[0];
|
972
|
-
|
973
|
-
var options = url.split('?')[1];
|
974
|
-
loc.options = options;
|
975
|
-
|
976
|
-
//return the final object
|
977
|
-
return loc;
|
978
|
-
}
|