refinerycms 0.9.9 → 0.9.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/Gemfile +8 -24
- data/Gemfile.lock +94 -69
- data/Rakefile +1 -1
- data/bin/refinerycms +118 -109
- data/changelog.md +13 -2
- data/config/cucumber.yml +3 -7
- data/config/settings.rb +0 -1
- data/lib/refinery.rb +14 -1
- data/lib/refinerycms.rb +2 -9
- data/refinerycms.gemspec +15 -855
- data/spec/spec_helper.rb +3 -2
- metadata +27 -907
- data/authentication/app/controllers/admin/users_controller.rb +0 -90
- data/authentication/app/controllers/passwords_controller.rb +0 -43
- data/authentication/app/controllers/registrations_controller.rb +0 -67
- data/authentication/app/controllers/sessions_controller.rb +0 -23
- data/authentication/app/helpers/sessions_helper.rb +0 -2
- data/authentication/app/helpers/users_helper.rb +0 -2
- data/authentication/app/mailers/user_mailer.rb +0 -20
- data/authentication/app/models/role.rb +0 -16
- data/authentication/app/models/roles_users.rb +0 -6
- data/authentication/app/models/user.rb +0 -58
- data/authentication/app/models/user_plugin.rb +0 -5
- data/authentication/app/views/admin/users/_form.html.erb +0 -92
- data/authentication/app/views/admin/users/_user.html.erb +0 -19
- data/authentication/app/views/admin/users/_users.html.erb +0 -4
- data/authentication/app/views/admin/users/edit.html.erb +0 -1
- data/authentication/app/views/admin/users/index.html.erb +0 -12
- data/authentication/app/views/admin/users/new.html.erb +0 -1
- data/authentication/app/views/layouts/login.html.erb +0 -21
- data/authentication/app/views/passwords/edit.html.erb +0 -31
- data/authentication/app/views/passwords/new.html.erb +0 -18
- data/authentication/app/views/registrations/new.html.erb +0 -41
- data/authentication/app/views/sessions/new.html.erb +0 -29
- data/authentication/app/views/user_mailer/reset_notification.html.erb +0 -12
- data/authentication/app/views/user_mailer/reset_notification.text.plain.erb +0 -7
- data/authentication/config/locales/cs.yml +0 -75
- data/authentication/config/locales/da.yml +0 -72
- data/authentication/config/locales/de.yml +0 -72
- data/authentication/config/locales/el.yml +0 -72
- data/authentication/config/locales/en.yml +0 -72
- data/authentication/config/locales/es.yml +0 -100
- data/authentication/config/locales/fr.yml +0 -72
- data/authentication/config/locales/it.yml +0 -97
- data/authentication/config/locales/lolcat.yml +0 -55
- data/authentication/config/locales/lt.yml +0 -55
- data/authentication/config/locales/lv.yml +0 -72
- data/authentication/config/locales/nb.yml +0 -72
- data/authentication/config/locales/nl.yml +0 -70
- data/authentication/config/locales/pl.yml +0 -100
- data/authentication/config/locales/pt-BR.yml +0 -68
- data/authentication/config/locales/rs.yml +0 -72
- data/authentication/config/locales/ru.yml +0 -97
- data/authentication/config/locales/sl.yml +0 -61
- data/authentication/config/locales/sv.yml +0 -64
- data/authentication/config/locales/zh-CN.yml +0 -72
- data/authentication/config/locales/zh-TW.yml +0 -72
- data/authentication/config/routes.rb +0 -31
- data/authentication/db/migrate/20100913234705_create_refinerycms_authentication_schema.rb +0 -43
- data/authentication/db/migrate/20100929035252_add_missing_indexes_to_roles_users.rb +0 -11
- data/authentication/db/migrate/20101206013505_change_to_devise_users_table.rb +0 -27
- data/authentication/db/migrate/20110106184757_add_remember_created_at_to_users.rb +0 -9
- data/authentication/features/lost_password.feature +0 -49
- data/authentication/features/manage_users.feature +0 -61
- data/authentication/features/step_definitions/lost_password.rb +0 -8
- data/authentication/features/step_definitions/user_steps.rb +0 -36
- data/authentication/features/support/factories.rb +0 -18
- data/authentication/features/support/paths.rb +0 -24
- data/authentication/lib/authenticated_system.rb +0 -29
- data/authentication/lib/authentication.rb +0 -30
- data/authentication/lib/generators/refinerycms_authentication_generator.rb +0 -8
- data/authentication/license.md +0 -21
- data/authentication/readme.md +0 -17
- data/authentication/refinerycms-authentication.gemspec +0 -20
- data/authentication/spec/models/user_spec.rb +0 -159
- data/base/db/migrate/20100913234706_create_refinerycms_core_schema.rb +0 -23
- data/base/db/migrate/20101217113424_add_locale_to_slugs.rb +0 -13
- data/base/features/step_definitions/web_steps.rb +0 -219
- data/base/features/support/env.rb +0 -84
- data/base/features/support/factories.rb +0 -1
- data/base/features/support/negative_expectations_helper.rb +0 -57
- data/base/features/support/paths.rb +0 -91
- data/base/lib/base.rb +0 -32
- data/base/lib/generators/refinerycms_base_generator.rb +0 -8
- data/base/lib/refinery.rb +0 -32
- data/base/lib/refinery/version.rb +0 -16
- data/base/license.md +0 -21
- data/base/refinerycms-base.gemspec +0 -18
- data/core/app/controllers/admin/base_controller.rb +0 -10
- data/core/app/controllers/admin/dialogs_controller.rb +0 -26
- data/core/app/controllers/admin/refinery_core_controller.rb +0 -12
- data/core/app/controllers/application_controller.rb +0 -6
- data/core/app/controllers/refinery/fast_controller.rb +0 -9
- data/core/app/controllers/sitemap_controller.rb +0 -14
- data/core/app/helpers/application_helper.rb +0 -5
- data/core/app/views/admin/_head.html.erb +0 -43
- data/core/app/views/admin/_javascripts.html.erb +0 -32
- data/core/app/views/admin/_menu.html.erb +0 -17
- data/core/app/views/admin/dialogs/show.html.erb +0 -19
- data/core/app/views/layouts/admin.html.erb +0 -24
- data/core/app/views/layouts/admin_dialog.html.erb +0 -14
- data/core/app/views/layouts/application.html.erb +0 -21
- data/core/app/views/shared/_content_page.html.erb +0 -63
- data/core/app/views/shared/_draft_page_message.html.erb +0 -3
- data/core/app/views/shared/_footer.html.erb +0 -4
- data/core/app/views/shared/_google_analytics.html.erb +0 -8
- data/core/app/views/shared/_head.html.erb +0 -42
- data/core/app/views/shared/_header.html.erb +0 -8
- data/core/app/views/shared/_html_tag.html.erb +0 -6
- data/core/app/views/shared/_ie6check.html.erb +0 -63
- data/core/app/views/shared/_javascripts.html.erb +0 -10
- data/core/app/views/shared/_menu.html.erb +0 -30
- data/core/app/views/shared/_menu_branch.html.erb +0 -26
- data/core/app/views/shared/_message.html.erb +0 -10
- data/core/app/views/shared/_no_script.html.erb +0 -9
- data/core/app/views/shared/_site_bar.html.erb +0 -25
- data/core/app/views/shared/admin/_continue_editing.html.erb +0 -3
- data/core/app/views/shared/admin/_error_messages.html.erb +0 -16
- data/core/app/views/shared/admin/_form_actions.html.erb +0 -77
- data/core/app/views/shared/admin/_image_picker.html.erb +0 -60
- data/core/app/views/shared/admin/_make_sortable.html.erb +0 -13
- data/core/app/views/shared/admin/_resource_picker.html.erb +0 -66
- data/core/app/views/shared/admin/_search.html.erb +0 -6
- data/core/app/views/shared/admin/_sortable_list.html.erb +0 -7
- data/core/app/views/shared/admin/_tabbed_fields.html.erb +0 -42
- data/core/app/views/welcome.html.erb +0 -17
- data/core/app/views/wymiframe.html.erb +0 -15
- data/core/config/locales/cs.yml +0 -77
- data/core/config/locales/da.yml +0 -75
- data/core/config/locales/de.yml +0 -75
- data/core/config/locales/el.yml +0 -75
- data/core/config/locales/en.yml +0 -75
- data/core/config/locales/es.yml +0 -68
- data/core/config/locales/fr.yml +0 -72
- data/core/config/locales/it.yml +0 -96
- data/core/config/locales/lolcat.yml +0 -68
- data/core/config/locales/lt.yml +0 -75
- data/core/config/locales/lv.yml +0 -72
- data/core/config/locales/nb.yml +0 -75
- data/core/config/locales/nl.yml +0 -75
- data/core/config/locales/pl.yml +0 -75
- data/core/config/locales/pt-BR.yml +0 -72
- data/core/config/locales/rs.yml +0 -76
- data/core/config/locales/ru.yml +0 -71
- data/core/config/locales/sl.yml +0 -72
- data/core/config/locales/sv.yml +0 -75
- data/core/config/locales/zh-CN.yml +0 -75
- data/core/config/locales/zh-TW.yml +0 -75
- data/core/config/routes.rb +0 -19
- data/core/crud.md +0 -197
- data/core/doc/included-jquery-ui-packages.jpg +0 -0
- data/core/engines.md +0 -179
- data/core/features/search.feature +0 -55
- data/core/features/site_bar.feature +0 -24
- data/core/features/step_definitions/core_steps.rb +0 -61
- data/core/features/support/paths.rb +0 -14
- data/core/features/uploads/beach.jpeg +0 -0
- data/core/features/uploads/refinery_is_awesome.txt +0 -1
- data/core/lib/core.rb +0 -143
- data/core/lib/generators/refinerycms_generator.rb +0 -107
- data/core/lib/generators/templates/.gitignore +0 -83
- data/core/lib/generators/templates/.rspec +0 -2
- data/core/lib/generators/templates/app/views/sitemap/index.xml.builder +0 -22
- data/core/lib/generators/templates/autotest/autotest.rb +0 -17
- data/core/lib/generators/templates/autotest/discover.rb +0 -2
- data/core/lib/generators/templates/config/cucumber.yml +0 -15
- data/core/lib/generators/templates/config/database.yml.mysql +0 -20
- data/core/lib/generators/templates/config/database.yml.postgresql +0 -57
- data/core/lib/generators/templates/config/database.yml.sqlite3 +0 -26
- data/core/lib/generators/templates/config/i18n-js.yml +0 -6
- data/core/lib/generators/templates/config/initializers/devise.rb +0 -142
- data/core/lib/generators/templates/config/settings.rb +0 -3
- data/core/lib/generators/templates/db/seeds.rb +0 -5
- data/core/lib/generators/templates/spec/rcov.opts +0 -2
- data/core/lib/generators/templates/spec/spec_helper.rb +0 -76
- data/core/lib/refinery/activity.rb +0 -45
- data/core/lib/refinery/admin/base_controller.rb +0 -111
- data/core/lib/refinery/admin_base_controller.rb +0 -5
- data/core/lib/refinery/application.rb +0 -76
- data/core/lib/refinery/application_controller.rb +0 -116
- data/core/lib/refinery/application_helper.rb +0 -19
- data/core/lib/refinery/base_presenter.rb +0 -27
- data/core/lib/refinery/catch_all_routes.rb +0 -11
- data/core/lib/refinery/crud.rb +0 -295
- data/core/lib/refinery/helpers/form_helper.rb +0 -66
- data/core/lib/refinery/helpers/head_helper.rb +0 -17
- data/core/lib/refinery/helpers/html_truncation_helper.rb +0 -25
- data/core/lib/refinery/helpers/image_helper.rb +0 -49
- data/core/lib/refinery/helpers/menu_helper.rb +0 -68
- data/core/lib/refinery/helpers/meta_helper.rb +0 -67
- data/core/lib/refinery/helpers/pagination_helper.rb +0 -16
- data/core/lib/refinery/helpers/script_helper.rb +0 -36
- data/core/lib/refinery/helpers/site_bar_helper.rb +0 -24
- data/core/lib/refinery/helpers/tag_helper.rb +0 -21
- data/core/lib/refinery/helpers/translation_helper.rb +0 -17
- data/core/lib/refinery/link_renderer.rb +0 -55
- data/core/lib/refinery/plugin.rb +0 -134
- data/core/lib/refinery/plugins.rb +0 -75
- data/core/lib/tasks/cucumber.rake +0 -53
- data/core/lib/tasks/doc.rake +0 -29
- data/core/lib/tasks/refinery.rake +0 -231
- data/core/lib/tasks/yard.rake +0 -30
- data/core/license.md +0 -21
- data/core/public/404.html +0 -26
- data/core/public/422.html +0 -26
- data/core/public/500.html +0 -26
- data/core/public/favicon.ico +0 -0
- data/core/public/images/refinery/add.png +0 -0
- data/core/public/images/refinery/admin_bg.png +0 -0
- data/core/public/images/refinery/ajax-loader.gif +0 -0
- data/core/public/images/refinery/branch-end.gif +0 -0
- data/core/public/images/refinery/branch-start.gif +0 -0
- data/core/public/images/refinery/branch.gif +0 -0
- data/core/public/images/refinery/carousel-left.png +0 -0
- data/core/public/images/refinery/carousel-right.png +0 -0
- data/core/public/images/refinery/cross.png +0 -0
- data/core/public/images/refinery/dialogLoadingAnimation.gif +0 -0
- data/core/public/images/refinery/header_background.png +0 -0
- data/core/public/images/refinery/hover-gradient.jpg +0 -0
- data/core/public/images/refinery/icons/accept.png +0 -0
- data/core/public/images/refinery/icons/add.png +0 -0
- data/core/public/images/refinery/icons/ajax-loader.gif +0 -0
- data/core/public/images/refinery/icons/application_edit.png +0 -0
- data/core/public/images/refinery/icons/application_go.png +0 -0
- data/core/public/images/refinery/icons/arrow_left.png +0 -0
- data/core/public/images/refinery/icons/arrow_switch.png +0 -0
- data/core/public/images/refinery/icons/arrow_up.png +0 -0
- data/core/public/images/refinery/icons/bin.png +0 -0
- data/core/public/images/refinery/icons/bin_closed.png +0 -0
- data/core/public/images/refinery/icons/cancel.png +0 -0
- data/core/public/images/refinery/icons/cog_add.png +0 -0
- data/core/public/images/refinery/icons/cog_edit.png +0 -0
- data/core/public/images/refinery/icons/cross.png +0 -0
- data/core/public/images/refinery/icons/delete.png +0 -0
- data/core/public/images/refinery/icons/doc.png +0 -0
- data/core/public/images/refinery/icons/down.gif +0 -0
- data/core/public/images/refinery/icons/edit.png +0 -0
- data/core/public/images/refinery/icons/email.png +0 -0
- data/core/public/images/refinery/icons/email_edit.png +0 -0
- data/core/public/images/refinery/icons/email_go.png +0 -0
- data/core/public/images/refinery/icons/email_open.png +0 -0
- data/core/public/images/refinery/icons/eye.png +0 -0
- data/core/public/images/refinery/icons/folder_page_white.png +0 -0
- data/core/public/images/refinery/icons/image_add.png +0 -0
- data/core/public/images/refinery/icons/image_edit.png +0 -0
- data/core/public/images/refinery/icons/img.png +0 -0
- data/core/public/images/refinery/icons/information.png +0 -0
- data/core/public/images/refinery/icons/layout_add.png +0 -0
- data/core/public/images/refinery/icons/layout_edit.png +0 -0
- data/core/public/images/refinery/icons/music.png +0 -0
- data/core/public/images/refinery/icons/page_add.png +0 -0
- data/core/public/images/refinery/icons/page_edit.png +0 -0
- data/core/public/images/refinery/icons/page_white_edit.png +0 -0
- data/core/public/images/refinery/icons/page_white_gear.png +0 -0
- data/core/public/images/refinery/icons/page_white_put.png +0 -0
- data/core/public/images/refinery/icons/pdf.png +0 -0
- data/core/public/images/refinery/icons/ppt.png +0 -0
- data/core/public/images/refinery/icons/star.png +0 -0
- data/core/public/images/refinery/icons/tick.png +0 -0
- data/core/public/images/refinery/icons/up.gif +0 -0
- data/core/public/images/refinery/icons/user_add.png +0 -0
- data/core/public/images/refinery/icons/user_comment.png +0 -0
- data/core/public/images/refinery/icons/user_edit.png +0 -0
- data/core/public/images/refinery/icons/xls.png +0 -0
- data/core/public/images/refinery/icons/zip.png +0 -0
- data/core/public/images/refinery/icons/zoom.png +0 -0
- data/core/public/images/refinery/logo-large.png +0 -0
- data/core/public/images/refinery/logo-medium.png +0 -0
- data/core/public/images/refinery/logo-site-bar.png +0 -0
- data/core/public/images/refinery/logo-small-medium.png +0 -0
- data/core/public/images/refinery/logo-small.png +0 -0
- data/core/public/images/refinery/logo-tiny.png +0 -0
- data/core/public/images/refinery/logo.png +0 -0
- data/core/public/images/refinery/nav-3-background.gif +0 -0
- data/core/public/images/refinery/nav_inactive_background.png +0 -0
- data/core/public/images/refinery/orange_button.png +0 -0
- data/core/public/images/refinery/page_bg.png +0 -0
- data/core/public/images/refinery/resolve_digital_footer_logo.png +0 -0
- data/core/public/images/refinery/text_field_background.png +0 -0
- data/core/public/images/refinery/tooltip-nib.gif +0 -0
- data/core/public/images/refinery/tooltip-nib.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/eye.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/right.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/style.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_align_center.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_align_left.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_indent.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/core/public/images/wymeditor/skins/wymeditor_icon.png +0 -0
- data/core/public/javascripts/admin.js +0 -7
- data/core/public/javascripts/application.js +0 -1
- data/core/public/javascripts/dd_belatedpng.js +0 -13
- data/core/public/javascripts/i18n-messages.js +0 -2
- data/core/public/javascripts/jquery-min.js +0 -154
- data/core/public/javascripts/jquery-ui-custom-min.js +0 -249
- data/core/public/javascripts/jquery.js +0 -6240
- data/core/public/javascripts/jquery/GPL-LICENSE.txt +0 -278
- data/core/public/javascripts/jquery/MIT-LICENSE.txt +0 -20
- data/core/public/javascripts/jquery/jquery.corner.js +0 -345
- data/core/public/javascripts/jquery/jquery.html5-placeholder-shim.js +0 -88
- data/core/public/javascripts/jquery/jquery.jcarousel.js +0 -900
- data/core/public/javascripts/jquery/jquery.textTruncate.js +0 -174
- data/core/public/javascripts/jquery/jquery.timers.js +0 -138
- data/core/public/javascripts/modernizr-min.js +0 -30
- data/core/public/javascripts/rails.js +0 -152
- data/core/public/javascripts/refinery/admin.js +0 -1114
- data/core/public/javascripts/refinery/boot_wym.js +0 -285
- data/core/public/javascripts/refinery/core.js +0 -18
- data/core/public/javascripts/refinery/i18n.js +0 -340
- data/core/public/javascripts/refinery/nestedsortables.js +0 -164
- data/core/public/javascripts/refinery/serializelist.js +0 -66
- data/core/public/javascripts/refinery/site_bar.js +0 -16
- data/core/public/javascripts/refinery/submenu.js +0 -49
- data/core/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +0 -5142
- data/core/public/javascripts/wymeditor/lang/ca.js +0 -45
- data/core/public/javascripts/wymeditor/lang/cs.js +0 -45
- data/core/public/javascripts/wymeditor/lang/da.js +0 -48
- data/core/public/javascripts/wymeditor/lang/de.js +0 -45
- data/core/public/javascripts/wymeditor/lang/en.js +0 -47
- data/core/public/javascripts/wymeditor/lang/es.js +0 -45
- data/core/public/javascripts/wymeditor/lang/fa.js +0 -46
- data/core/public/javascripts/wymeditor/lang/fr.js +0 -45
- data/core/public/javascripts/wymeditor/lang/he.js +0 -45
- data/core/public/javascripts/wymeditor/lang/hu.js +0 -45
- data/core/public/javascripts/wymeditor/lang/it.js +0 -45
- data/core/public/javascripts/wymeditor/lang/lv.js +0 -47
- data/core/public/javascripts/wymeditor/lang/nb.js +0 -48
- data/core/public/javascripts/wymeditor/lang/nl.js +0 -47
- data/core/public/javascripts/wymeditor/lang/nn.js +0 -45
- data/core/public/javascripts/wymeditor/lang/pl.js +0 -45
- data/core/public/javascripts/wymeditor/lang/pt-BR.js +0 -47
- data/core/public/javascripts/wymeditor/lang/pt.js +0 -45
- data/core/public/javascripts/wymeditor/lang/rs.js +0 -47
- data/core/public/javascripts/wymeditor/lang/ru.js +0 -45
- data/core/public/javascripts/wymeditor/lang/sl.js +0 -47
- data/core/public/javascripts/wymeditor/lang/sv.js +0 -45
- data/core/public/javascripts/wymeditor/lang/tr.js +0 -45
- data/core/public/javascripts/wymeditor/lang/zh_cn.js +0 -47
- data/core/public/javascripts/wymeditor/skins/refinery/skin.js +0 -48
- data/core/public/robots.txt +0 -3
- data/core/public/stylesheets/application.css +0 -4
- data/core/public/stylesheets/formatting.css +0 -4
- data/core/public/stylesheets/home.css +0 -4
- data/core/public/stylesheets/refinery/application.css +0 -72
- data/core/public/stylesheets/refinery/formatting.css +0 -57
- data/core/public/stylesheets/refinery/home.css +0 -0
- data/core/public/stylesheets/refinery/refinery.css +0 -1572
- data/core/public/stylesheets/refinery/site_bar.css +0 -87
- data/core/public/stylesheets/refinery/submenu.css +0 -22
- data/core/public/stylesheets/refinery/theme.css +0 -36
- data/core/public/stylesheets/refinery/tooltips.css +0 -34
- data/core/public/stylesheets/refinery/ui.css +0 -107
- data/core/public/stylesheets/theme.css +0 -4
- data/core/public/stylesheets/wymeditor/skins/refinery/skin.css +0 -528
- data/core/public/stylesheets/wymeditor/skins/refinery/wymiframe.css +0 -96
- data/core/public/wymeditor/GPL-license.txt +0 -278
- data/core/public/wymeditor/MIT-license.txt +0 -20
- data/core/public/wymeditor/README +0 -35
- data/core/refinerycms-core.gemspec +0 -20
- data/core/spec/lib/refinery/plugins_spec.rb +0 -90
- data/dashboard/app/controllers/admin/dashboard_controller.rb +0 -38
- data/dashboard/app/helpers/admin/dashboard_helper.rb +0 -24
- data/dashboard/app/views/admin/dashboard/_additional_dashboard_menu_items.html.erb +0 -1
- data/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +0 -14
- data/dashboard/app/views/admin/dashboard/_recent_inquiries.html.erb +0 -11
- data/dashboard/app/views/admin/dashboard/index.html.erb +0 -70
- data/dashboard/app/views/admin/dashboard/index.rss.builder +0 -26
- data/dashboard/config/locales/cs.yml +0 -25
- data/dashboard/config/locales/da.yml +0 -25
- data/dashboard/config/locales/de.yml +0 -25
- data/dashboard/config/locales/el.yml +0 -25
- data/dashboard/config/locales/en.yml +0 -25
- data/dashboard/config/locales/es.yml +0 -28
- data/dashboard/config/locales/fr.yml +0 -25
- data/dashboard/config/locales/it.yml +0 -27
- data/dashboard/config/locales/lolcat.yml +0 -24
- data/dashboard/config/locales/lt.yml +0 -25
- data/dashboard/config/locales/lv.yml +0 -27
- data/dashboard/config/locales/nb.yml +0 -25
- data/dashboard/config/locales/nl.yml +0 -25
- data/dashboard/config/locales/pl.yml +0 -29
- data/dashboard/config/locales/pt-BR.yml +0 -29
- data/dashboard/config/locales/rs.yml +0 -26
- data/dashboard/config/locales/ru.yml +0 -29
- data/dashboard/config/locales/sl.yml +0 -24
- data/dashboard/config/locales/sv.yml +0 -25
- data/dashboard/config/locales/zh-CN.yml +0 -25
- data/dashboard/config/locales/zh-TW.yml +0 -25
- data/dashboard/config/routes.rb +0 -11
- data/dashboard/features/dashboard.feature +0 -35
- data/dashboard/features/support/paths.rb +0 -14
- data/dashboard/lib/dashboard.rb +0 -19
- data/dashboard/license.md +0 -21
- data/dashboard/readme.md +0 -22
- data/dashboard/refinerycms-dashboard.gemspec +0 -20
- data/images/app/controllers/admin/images_controller.rb +0 -108
- data/images/app/helpers/admin/images_helper.rb +0 -27
- data/images/app/models/image.rb +0 -72
- data/images/app/views/admin/images/_existing_image.html.erb +0 -73
- data/images/app/views/admin/images/_form.html.erb +0 -54
- data/images/app/views/admin/images/_grid_view.html.erb +0 -19
- data/images/app/views/admin/images/_images.html.erb +0 -2
- data/images/app/views/admin/images/_list_view.html.erb +0 -10
- data/images/app/views/admin/images/_list_view_image.html.erb +0 -17
- data/images/app/views/admin/images/edit.html.erb +0 -1
- data/images/app/views/admin/images/index.html.erb +0 -38
- data/images/app/views/admin/images/insert.html.erb +0 -47
- data/images/app/views/admin/images/new.html.erb +0 -1
- data/images/config/locales/cs.yml +0 -41
- data/images/config/locales/da.yml +0 -41
- data/images/config/locales/de.yml +0 -41
- data/images/config/locales/el.yml +0 -41
- data/images/config/locales/en.yml +0 -41
- data/images/config/locales/es.yml +0 -40
- data/images/config/locales/fr.yml +0 -41
- data/images/config/locales/it.yml +0 -47
- data/images/config/locales/lolcat.yml +0 -41
- data/images/config/locales/lt.yml +0 -41
- data/images/config/locales/lv.yml +0 -41
- data/images/config/locales/nb.yml +0 -42
- data/images/config/locales/nl.yml +0 -40
- data/images/config/locales/pl.yml +0 -42
- data/images/config/locales/pt-BR.yml +0 -42
- data/images/config/locales/rs.yml +0 -42
- data/images/config/locales/ru.yml +0 -41
- data/images/config/locales/sl.yml +0 -40
- data/images/config/locales/sv.yml +0 -41
- data/images/config/locales/zh-CN.yml +0 -41
- data/images/config/locales/zh-TW.yml +0 -41
- data/images/config/routes.rb +0 -11
- data/images/db/migrate/20100913234707_create_refinerycms_images_schema.rb +0 -23
- data/images/features/manage_images.feature +0 -49
- data/images/features/step_definitions/image_steps.rb +0 -40
- data/images/features/support/factories.rb +0 -5
- data/images/features/support/paths.rb +0 -17
- data/images/features/uploads/beach.jpeg +0 -0
- data/images/features/uploads/id-rather-be-here.jpg +0 -0
- data/images/features/uploads/refinery_is_awesome.txt +0 -1
- data/images/lib/generators/refinerycms_images_generator.rb +0 -8
- data/images/lib/images.rb +0 -59
- data/images/license.md +0 -21
- data/images/readme.md +0 -34
- data/images/refinerycms-images.gemspec +0 -20
- data/images/spec/models/image_spec.rb +0 -87
- data/images/spec/uploads/beach.jpeg +0 -0
- data/pages/app/controllers/admin/page_parts_controller.rb +0 -24
- data/pages/app/controllers/admin/pages_controller.rb +0 -37
- data/pages/app/controllers/admin/pages_dialogs_controller.rb +0 -87
- data/pages/app/controllers/pages_controller.rb +0 -32
- data/pages/app/helpers/pages_helper.rb +0 -2
- data/pages/app/models/page.rb +0 -290
- data/pages/app/models/page_part.rb +0 -23
- data/pages/app/presenters/page_presenter.rb +0 -7
- data/pages/app/views/admin/pages/_form.html.erb +0 -61
- data/pages/app/views/admin/pages/_form_advanced_options.html.erb +0 -79
- data/pages/app/views/admin/pages/_form_advanced_options_seo.html.erb +0 -24
- data/pages/app/views/admin/pages/_form_fields_after_title.html.erb +0 -1
- data/pages/app/views/admin/pages/_form_new_page_parts.html.erb +0 -14
- data/pages/app/views/admin/pages/_form_page_parts.html.erb +0 -47
- data/pages/app/views/admin/pages/_locale_picker.html.erb +0 -11
- data/pages/app/views/admin/pages/_page.html.erb +0 -33
- data/pages/app/views/admin/pages/_page_part_field.html.erb +0 -5
- data/pages/app/views/admin/pages/_sortable_list.html.erb +0 -5
- data/pages/app/views/admin/pages/edit.html.erb +0 -1
- data/pages/app/views/admin/pages/index.html.erb +0 -40
- data/pages/app/views/admin/pages/new.html.erb +0 -1
- data/pages/app/views/admin/pages_dialogs/_page_link.html.erb +0 -13
- data/pages/app/views/admin/pages_dialogs/link_to.html.erb +0 -141
- data/pages/app/views/pages/home.html.erb +0 -1
- data/pages/app/views/pages/show.html.erb +0 -1
- data/pages/config/locales/cs.yml +0 -84
- data/pages/config/locales/da.yml +0 -84
- data/pages/config/locales/de.yml +0 -84
- data/pages/config/locales/el.yml +0 -84
- data/pages/config/locales/en.yml +0 -84
- data/pages/config/locales/es.yml +0 -83
- data/pages/config/locales/fr.yml +0 -84
- data/pages/config/locales/it.yml +0 -98
- data/pages/config/locales/lolcat.yml +0 -83
- data/pages/config/locales/lt.yml +0 -85
- data/pages/config/locales/lv.yml +0 -86
- data/pages/config/locales/nb.yml +0 -85
- data/pages/config/locales/nl.yml +0 -81
- data/pages/config/locales/pl.yml +0 -85
- data/pages/config/locales/pt-BR.yml +0 -85
- data/pages/config/locales/rs.yml +0 -84
- data/pages/config/locales/ru.yml +0 -108
- data/pages/config/locales/sl.yml +0 -83
- data/pages/config/locales/sv.yml +0 -84
- data/pages/config/locales/zh-CN.yml +0 -84
- data/pages/config/locales/zh-TW.yml +0 -84
- data/pages/config/routes.rb +0 -21
- data/pages/db/migrate/20100913234708_create_refinerycms_pages_schema.rb +0 -53
- data/pages/db/migrate/20101214040815_translate_page_plugin.rb +0 -29
- data/pages/db/migrate/20101216194133_remove_cached_slug_from_pages.rb +0 -9
- data/pages/db/seeds/pages.rb +0 -43
- data/pages/features/manage_pages.feature +0 -47
- data/pages/features/step_definitions/page_steps.rb +0 -53
- data/pages/features/support/paths.rb +0 -26
- data/pages/features/visit_pages.feature +0 -47
- data/pages/lib/generators/refinerycms_pages_generator.rb +0 -8
- data/pages/lib/pages.rb +0 -36
- data/pages/lib/pages/marketable_routes.rb +0 -3
- data/pages/lib/pages/tabs.rb +0 -30
- data/pages/license.md +0 -21
- data/pages/readme.md +0 -156
- data/pages/refinerycms-pages.gemspec +0 -21
- data/pages/spec/models/page_spec.rb +0 -155
- data/resources/app/controllers/admin/resources_controller.rb +0 -89
- data/resources/app/models/resource.rb +0 -53
- data/resources/app/views/admin/resources/_existing_resource.html.erb +0 -32
- data/resources/app/views/admin/resources/_form.html.erb +0 -55
- data/resources/app/views/admin/resources/_resource.html.erb +0 -17
- data/resources/app/views/admin/resources/_resources.html.erb +0 -10
- data/resources/app/views/admin/resources/edit.html.erb +0 -1
- data/resources/app/views/admin/resources/index.html.erb +0 -31
- data/resources/app/views/admin/resources/insert.html.erb +0 -54
- data/resources/app/views/admin/resources/new.html.erb +0 -1
- data/resources/config/locales/cs.yml +0 -34
- data/resources/config/locales/da.yml +0 -34
- data/resources/config/locales/de.yml +0 -34
- data/resources/config/locales/el.yml +0 -34
- data/resources/config/locales/en.yml +0 -34
- data/resources/config/locales/es.yml +0 -33
- data/resources/config/locales/fr.yml +0 -34
- data/resources/config/locales/it.yml +0 -43
- data/resources/config/locales/lolcat.yml +0 -34
- data/resources/config/locales/lt.yml +0 -34
- data/resources/config/locales/lv.yml +0 -34
- data/resources/config/locales/nb.yml +0 -34
- data/resources/config/locales/nl.yml +0 -33
- data/resources/config/locales/pl.yml +0 -35
- data/resources/config/locales/pt-BR.yml +0 -34
- data/resources/config/locales/rs.yml +0 -35
- data/resources/config/locales/ru.yml +0 -34
- data/resources/config/locales/sl.yml +0 -33
- data/resources/config/locales/sv.yml +0 -34
- data/resources/config/locales/zh-CN.yml +0 -34
- data/resources/config/locales/zh-TW.yml +0 -34
- data/resources/config/routes.rb +0 -11
- data/resources/db/migrate/20100913234709_create_refinerycms_resources_schema.rb +0 -21
- data/resources/features/manage_files.feature +0 -43
- data/resources/features/step_definitions/file_steps.rb +0 -21
- data/resources/features/support/paths.rb +0 -17
- data/resources/features/uploads/beach.jpeg +0 -0
- data/resources/features/uploads/refinery_is_awesome.txt +0 -1
- data/resources/lib/generators/refinerycms_resources_generator.rb +0 -8
- data/resources/lib/resources.rb +0 -58
- data/resources/license.md +0 -21
- data/resources/readme.md +0 -9
- data/resources/refinerycms-resources.gemspec +0 -20
- data/resources/spec/models/resource_spec.rb +0 -91
- data/resources/spec/uploads/refinery_is_awesome.txt +0 -1
- data/settings/app/controllers/admin/refinery_settings_controller.rb +0 -77
- data/settings/app/helpers/refinery_settings_helper.rb +0 -25
- data/settings/app/models/refinery_setting.rb +0 -212
- data/settings/app/views/admin/refinery_settings/_form.html.erb +0 -62
- data/settings/app/views/admin/refinery_settings/_refinery_setting.html.erb +0 -23
- data/settings/app/views/admin/refinery_settings/_refinery_settings.html.erb +0 -5
- data/settings/app/views/admin/refinery_settings/edit.html.erb +0 -1
- data/settings/app/views/admin/refinery_settings/index.html.erb +0 -49
- data/settings/app/views/admin/refinery_settings/new.html.erb +0 -1
- data/settings/config/locales/cs.yml +0 -45
- data/settings/config/locales/da.yml +0 -46
- data/settings/config/locales/de.yml +0 -46
- data/settings/config/locales/el.yml +0 -46
- data/settings/config/locales/en.yml +0 -46
- data/settings/config/locales/es.yml +0 -43
- data/settings/config/locales/fr.yml +0 -44
- data/settings/config/locales/it.yml +0 -36
- data/settings/config/locales/lolcat.yml +0 -43
- data/settings/config/locales/lt.yml +0 -46
- data/settings/config/locales/lv.yml +0 -46
- data/settings/config/locales/nb.yml +0 -47
- data/settings/config/locales/nl.yml +0 -46
- data/settings/config/locales/pl.yml +0 -46
- data/settings/config/locales/pt-BR.yml +0 -44
- data/settings/config/locales/rs.yml +0 -46
- data/settings/config/locales/ru.yml +0 -43
- data/settings/config/locales/sl.yml +0 -25
- data/settings/config/locales/sv.yml +0 -45
- data/settings/config/locales/zh-CN.yml +0 -46
- data/settings/config/locales/zh-TW.yml +0 -46
- data/settings/config/routes.rb +0 -8
- data/settings/db/migrate/20100913234710_create_refinerycms_settings_schema.rb +0 -24
- data/settings/db/migrate/20100926142529_add_value_type_to_refinery_settings.rb +0 -9
- data/settings/features/manage_refinery_settings.feature +0 -5
- data/settings/features/step_definitions/setting_steps.rb +0 -9
- data/settings/features/support/paths.rb +0 -14
- data/settings/lib/generators/refinerycms_settings_generator.rb +0 -8
- data/settings/lib/settings.rb +0 -16
- data/settings/license.md +0 -21
- data/settings/readme.md +0 -55
- data/settings/refinerycms-settings.gemspec +0 -20
- data/settings/spec/models/refinery_setting_spec.rb +0 -101
@@ -1,285 +0,0 @@
|
|
1
|
-
onOpenDialog = function(dialog) {
|
2
|
-
(dialog = $('.ui-dialog')).find('.ui-dialog-titlebar').corner('1px top');
|
3
|
-
if(!$.browser.msie){
|
4
|
-
dialog.corner('6px');
|
5
|
-
}
|
6
|
-
if (dialog.height() < $(window).height()) {
|
7
|
-
if(iframed()) {
|
8
|
-
$(parent.document.body).addClass('hide-overflow');
|
9
|
-
} else {
|
10
|
-
$(document.body).addClass('hide-overflow');
|
11
|
-
}
|
12
|
-
}
|
13
|
-
};
|
14
|
-
|
15
|
-
onCloseDialog = function(dialog) {
|
16
|
-
if(iframed()) {
|
17
|
-
$(parent.document.body).removeClass('hide-overflow');
|
18
|
-
} else {
|
19
|
-
$(document.body).removeClass('hide-overflow');
|
20
|
-
}
|
21
|
-
};
|
22
|
-
|
23
|
-
WYMeditor.onload_functions = [];
|
24
|
-
var wymeditor_inputs = [];
|
25
|
-
var wymeditors_loaded = 0;
|
26
|
-
// supply custom_wymeditor_boot_options if you want to override anything here.
|
27
|
-
if (typeof(custom_wymeditor_boot_options) == "undefined") { custom_wymeditor_boot_options = {}; }
|
28
|
-
var form_actions =
|
29
|
-
"<div id='dialog-form-actions' class='form-actions'>"
|
30
|
-
+ "<div class='form-actions-left'>"
|
31
|
-
+ "<input id='submit_button' class='wym_submit button' type='submit' value='{Insert}' class='button' />"
|
32
|
-
+ "<a href='' class='wym_cancel close_dialog button'>{Cancel}</a>"
|
33
|
-
+ "</div>"
|
34
|
-
+ "</div>";
|
35
|
-
var wymeditor_boot_options = $.extend({
|
36
|
-
skin: 'refinery'
|
37
|
-
, basePath: "/"
|
38
|
-
, wymPath: "/javascripts/wymeditor/jquery.refinery.wymeditor.js"
|
39
|
-
, cssSkinPath: "/stylesheets/wymeditor/skins/"
|
40
|
-
, jsSkinPath: "/javascripts/wymeditor/skins/"
|
41
|
-
, langPath: "/javascripts/wymeditor/lang/"
|
42
|
-
, iframeBasePath: '/'
|
43
|
-
, classesItems: [
|
44
|
-
{name: 'text-align', rules:['left', 'center', 'right', 'justify'], join: '-'}
|
45
|
-
, {name: 'image-align', rules:['left', 'right'], join: '-'}
|
46
|
-
, {name: 'font-size', rules:['small', 'normal', 'large'], join: '-'}
|
47
|
-
]
|
48
|
-
|
49
|
-
, containersItems: [
|
50
|
-
{'name': 'h1', 'title':'Heading_1', 'css':'wym_containers_h1'}
|
51
|
-
, {'name': 'h2', 'title':'Heading_2', 'css':'wym_containers_h2'}
|
52
|
-
, {'name': 'h3', 'title':'Heading_3', 'css':'wym_containers_h3'}
|
53
|
-
, {'name': 'p', 'title':'Paragraph', 'css':'wym_containers_p'}
|
54
|
-
]
|
55
|
-
, toolsItems: [
|
56
|
-
{'name': 'Bold', 'title': 'Bold', 'css': 'wym_tools_strong'}
|
57
|
-
,{'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'}
|
58
|
-
,{'name': 'InsertUnorderedList', 'title': 'Unordered_List', 'css': 'wym_tools_unordered_list'}
|
59
|
-
,{'name': 'InsertOrderedList', 'title': 'Ordered_List', 'css': 'wym_tools_ordered_list'}
|
60
|
-
/*,{'name': 'Indent', 'title': 'Indent', 'css': 'wym_tools_indent'}
|
61
|
-
,{'name': 'Outdent', 'title': 'Outdent', 'css': 'wym_tools_outdent'}
|
62
|
-
,{'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'}
|
63
|
-
,{'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'}*/
|
64
|
-
,{'name': 'CreateLink', 'title': 'Link', 'css': 'wym_tools_link'}
|
65
|
-
,{'name': 'Unlink', 'title': 'Unlink', 'css': 'wym_tools_unlink'}
|
66
|
-
,{'name': 'InsertImage', 'title': 'Image', 'css': 'wym_tools_image'}
|
67
|
-
,{'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'}
|
68
|
-
//,{'name': 'Paste', 'title': 'Paste_From_Word', 'css': 'wym_tools_paste'}
|
69
|
-
,{'name': 'ToggleHtml', 'title': 'HTML', 'css': 'wym_tools_html'}
|
70
|
-
]
|
71
|
-
|
72
|
-
,toolsHtml: "<ul class='wym_tools wym_section wym_buttons'>" + WYMeditor.TOOLS_ITEMS + WYMeditor.CLASSES + "</ul>"
|
73
|
-
|
74
|
-
,toolsItemHtml:
|
75
|
-
"<li class='" + WYMeditor.TOOL_CLASS + "'>"
|
76
|
-
+ "<a href='#' name='" + WYMeditor.TOOL_NAME + "' title='" + WYMeditor.TOOL_TITLE + "' class='no-tooltip'>"
|
77
|
-
+ WYMeditor.TOOL_TITLE
|
78
|
-
+ "</a>"
|
79
|
-
+ "</li>"
|
80
|
-
|
81
|
-
, classesHtml: "<li class='wym_tools_class'>"
|
82
|
-
+ "<a href='#' name='" + WYMeditor.APPLY_CLASS + "' title='"+ WYMeditor.APPLY_CLASS +"' class='no-tooltip'>"
|
83
|
-
+ WYMeditor.APPLY_CLASS
|
84
|
-
+ "</a>"
|
85
|
-
+ "<ul class='wym_classes wym_classes_hidden'>" + WYMeditor.CLASSES_ITEMS + "</ul>"
|
86
|
-
+ "</li>"
|
87
|
-
|
88
|
-
, classesItemHtml: "<li><a href='#' name='"+ WYMeditor.CLASS_NAME + "'>"+ WYMeditor.CLASS_TITLE+ "</a></li>"
|
89
|
-
, classesItemHtmlMultiple: "<li class='wym_tools_class_multiple_rules'>"
|
90
|
-
+ "<span>" + WYMeditor.CLASS_TITLE + "</span>"
|
91
|
-
+ "<ul>{classesItemHtml}</ul>"
|
92
|
-
+"</li>"
|
93
|
-
|
94
|
-
, containersHtml: "<ul class='wym_containers wym_section'>" + WYMeditor.CONTAINERS_ITEMS + "</ul>"
|
95
|
-
|
96
|
-
, containersItemHtml:
|
97
|
-
"<li class='" + WYMeditor.CONTAINER_CLASS + "'>"
|
98
|
-
+ "<a href='#' name='" + WYMeditor.CONTAINER_NAME + "' title='" + WYMeditor.CONTAINER_TITLE + "' class='no-tooltip'></a>"
|
99
|
-
+ "</li>"
|
100
|
-
|
101
|
-
, boxHtml:
|
102
|
-
"<div class='wym_box'>"
|
103
|
-
+ "<div class='wym_area_top clearfix'>"
|
104
|
-
+ WYMeditor.CONTAINERS
|
105
|
-
+ WYMeditor.TOOLS
|
106
|
-
+ "</div>"
|
107
|
-
+ "<div class='wym_area_main'>"
|
108
|
-
+ WYMeditor.HTML
|
109
|
-
+ WYMeditor.IFRAME
|
110
|
-
+ WYMeditor.STATUS
|
111
|
-
+ "</div>"
|
112
|
-
+ "</div>"
|
113
|
-
|
114
|
-
, iframeHtml:
|
115
|
-
"<div class='wym_iframe wym_section'>"
|
116
|
-
+ "<iframe id='WYMeditor_" + WYMeditor.INDEX + "'" + ($.browser.msie ? " src='" + WYMeditor.IFRAME_BASE_PATH + "wymiframe'" : "")
|
117
|
-
+ " frameborder='0' marginheight='0' marginwidth='0' border='0'"
|
118
|
-
+ " onload='this.contentWindow.parent.WYMeditor.INSTANCES[" + WYMeditor.INDEX + "].loadIframe(this);'></iframe>"
|
119
|
-
+"</div>"
|
120
|
-
|
121
|
-
, dialogImageHtml: ""
|
122
|
-
|
123
|
-
, dialogLinkHtml: ""
|
124
|
-
|
125
|
-
, dialogTableHtml:
|
126
|
-
"<div class='wym_dialog wym_dialog_table'>"
|
127
|
-
+ "<form>"
|
128
|
-
+ "<input type='hidden' id='wym_dialog_type' class='wym_dialog_type' value='"+ WYMeditor.DIALOG_TABLE + "' />"
|
129
|
-
+ "<div class='field'>"
|
130
|
-
+ "<label for='wym_caption'>{Caption}</label>"
|
131
|
-
+ "<input type='text' id='wym_caption' class='wym_caption' value='' size='40' />"
|
132
|
-
+ "</div>"
|
133
|
-
+ "<div class='field'>"
|
134
|
-
+ "<label for='wym_rows'>{Number_Of_Rows}</label>"
|
135
|
-
+ "<input type='text' id='wym_rows' class='wym_rows' value='3' size='3' />"
|
136
|
-
+ "</div>"
|
137
|
-
+ "<div class='field'>"
|
138
|
-
+ "<label for='wym_cols'>{Number_Of_Cols}</label>"
|
139
|
-
+ "<input type='text' id='wym_cols' class='wym_cols' value='2' size='3' />"
|
140
|
-
+ "</div>"
|
141
|
-
+ form_actions
|
142
|
-
+ "</form>"
|
143
|
-
+ "</div>"
|
144
|
-
|
145
|
-
, dialogPasteHtml:
|
146
|
-
"<div class='wym_dialog wym_dialog_paste'>"
|
147
|
-
+ "<form>"
|
148
|
-
+ "<input type='hidden' id='wym_dialog_type' class='wym_dialog_type' value='" + WYMeditor.DIALOG_PASTE + "' />"
|
149
|
-
+ "<div class='field'>"
|
150
|
-
+ "<textarea class='wym_text' rows='10' cols='50'></textarea>"
|
151
|
-
+ "</div>"
|
152
|
-
+ form_actions
|
153
|
-
+ "</form>"
|
154
|
-
+ "</div>"
|
155
|
-
|
156
|
-
, dialogPath: "/refinery/dialogs/"
|
157
|
-
, dialogFeatures: {
|
158
|
-
width: 866
|
159
|
-
, height: 455
|
160
|
-
, modal: true
|
161
|
-
, draggable: true
|
162
|
-
, resizable: false
|
163
|
-
, autoOpen: true
|
164
|
-
, open: onOpenDialog
|
165
|
-
, close: onCloseDialog
|
166
|
-
}
|
167
|
-
, dialogInlineFeatures: {
|
168
|
-
width: 600
|
169
|
-
, height: 485
|
170
|
-
, modal: true
|
171
|
-
, draggable: true
|
172
|
-
, resizable: false
|
173
|
-
, autoOpen: true
|
174
|
-
, open: onOpenDialog
|
175
|
-
, close: onCloseDialog
|
176
|
-
}
|
177
|
-
|
178
|
-
, dialogId: 'editor_dialog'
|
179
|
-
|
180
|
-
, dialogHtml:
|
181
|
-
"<!DOCTYPE html>"
|
182
|
-
+ "<html dir='" + WYMeditor.DIRECTION + "'>"
|
183
|
-
+ "<head>"
|
184
|
-
+ "<link rel='stylesheet' type='text/css' media='screen' href='" + WYMeditor.CSS_PATH + "' />"
|
185
|
-
+ "<title>" + WYMeditor.DIALOG_TITLE + "</title>"
|
186
|
-
+ "<script type='text/javascript' src='" + WYMeditor.JQUERY_PATH + "'></script>"
|
187
|
-
+ "<script type='text/javascript' src='" + WYMeditor.WYM_PATH + "'></script>"
|
188
|
-
+ "</head>"
|
189
|
-
+ "<body>"
|
190
|
-
+ "<div id='page'>" + WYMeditor.DIALOG_BODY + "</div>"
|
191
|
-
+ "</body>"
|
192
|
-
+ "</html>"
|
193
|
-
, postInit: function(wym)
|
194
|
-
{
|
195
|
-
// register loaded
|
196
|
-
wymeditors_loaded += 1;
|
197
|
-
|
198
|
-
// fire loaded if all editors loaded
|
199
|
-
if(WYMeditor.INSTANCES.length == wymeditors_loaded){
|
200
|
-
$('.wym_loading_overlay').remove();
|
201
|
-
|
202
|
-
// load any functions that have been registered to happen onload.
|
203
|
-
// these will have to be registered BEFORE postInit is fired (which is fairly quickly).
|
204
|
-
for(i=0; i < WYMeditor.onload_functions.length; i++) {
|
205
|
-
WYMeditor.onload_functions[i]();
|
206
|
-
}
|
207
|
-
}
|
208
|
-
|
209
|
-
$(wym._iframe).contents().find('body').addClass('wym_iframe_body');
|
210
|
-
|
211
|
-
$('.field.hide-overflow').removeClass('hide-overflow').css('height', 'auto');
|
212
|
-
}
|
213
|
-
, postInitDialog: function(wym) {
|
214
|
-
if($.browser.msie) {
|
215
|
-
($the_ui_dialog = $('.ui-dialog')).css('height',
|
216
|
-
$the_ui_dialog.find('iframe').height()
|
217
|
-
+ $the_ui_dialog.find('iframe').contents().find('.form-actions').height()
|
218
|
-
- 12
|
219
|
-
);
|
220
|
-
}
|
221
|
-
}
|
222
|
-
, lang: (typeof(I18n.locale) != "undefined" ? I18n.locale : 'en')
|
223
|
-
}, custom_wymeditor_boot_options);
|
224
|
-
|
225
|
-
WYMeditor.editor.prototype.loadIframe = function(iframe) {
|
226
|
-
var wym = this;
|
227
|
-
|
228
|
-
// Internet explorer doesn't like this (which versions??)
|
229
|
-
var doc = (iframe.contentDocument || iframe.contentWindow);
|
230
|
-
if(doc.document) {
|
231
|
-
doc = doc.document;
|
232
|
-
}
|
233
|
-
if (!$.browser.msie) {
|
234
|
-
doc.open('text/html', 'replace');
|
235
|
-
html = "<!DOCTYPE html>\
|
236
|
-
<html>\
|
237
|
-
<head>\
|
238
|
-
<title>WYMeditor</title>\
|
239
|
-
<meta charset='" + $('meta[charset]').attr('charset') + "' />\
|
240
|
-
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1' />\
|
241
|
-
</head>\
|
242
|
-
<body class='wym_iframe'>\
|
243
|
-
</body>\
|
244
|
-
</html>";
|
245
|
-
doc.write(html);
|
246
|
-
doc.close();
|
247
|
-
|
248
|
-
$.each(["wymeditor/skins/refinery/wymiframe", "formatting", "refinery/theme", "theme"], function(i, href) {
|
249
|
-
$("<link href='/stylesheets/" + href + ".css' media='all' rel='stylesheet' />").appendTo(doc.head);
|
250
|
-
});
|
251
|
-
$("<script src='/javascripts/modernizr-min.js'></script>").appendTo(doc.head);
|
252
|
-
}
|
253
|
-
if ((id_of_editor = wym._element.parent().attr('id')) != null) {
|
254
|
-
$(doc.body).addClass(id_of_editor);
|
255
|
-
}
|
256
|
-
|
257
|
-
wym.initIframe(iframe);
|
258
|
-
};
|
259
|
-
|
260
|
-
WYMeditor.init = function() {
|
261
|
-
wymeditor_inputs = $('.wymeditor');
|
262
|
-
wymeditor_inputs = wymeditor_inputs.filter(function(index) {
|
263
|
-
for (i=0; i < WYMeditor.INSTANCES.length; i++) {
|
264
|
-
if (WYMeditor.INSTANCES[i]._element.attr('id') == $(this).attr('id')) {
|
265
|
-
return false;
|
266
|
-
}
|
267
|
-
}
|
268
|
-
|
269
|
-
return true;
|
270
|
-
});
|
271
|
-
|
272
|
-
wymeditor_inputs.each(function(input) {
|
273
|
-
if ((containing_field = $(this).parents('.field')).length > 0 && containing_field.get(0).style.height === '') {
|
274
|
-
containing_field.addClass('hide-overflow')
|
275
|
-
.css('height', $(this).outerHeight() - containing_field.offset().top + $(this).offset().top + 45);
|
276
|
-
}
|
277
|
-
$(this).hide();
|
278
|
-
});
|
279
|
-
|
280
|
-
wymeditor_inputs.wymeditor(wymeditor_boot_options);
|
281
|
-
};
|
282
|
-
|
283
|
-
$(function(){
|
284
|
-
WYMeditor.init();
|
285
|
-
});
|
@@ -1,18 +0,0 @@
|
|
1
|
-
$(document).ready(function(){
|
2
|
-
// focus first field in an admin form.
|
3
|
-
$('form input[type=text]:first').focus();
|
4
|
-
|
5
|
-
init_flash_messages();
|
6
|
-
});
|
7
|
-
|
8
|
-
init_flash_messages = function(){
|
9
|
-
$('#flash').css({
|
10
|
-
'opacity': 0
|
11
|
-
, 'visibility':'visible'
|
12
|
-
}).animate({'opacity': '1'}, 550);
|
13
|
-
$('#flash_close').click(function(e) {
|
14
|
-
$('#flash').animate({'opacity': 0, 'visibility': 'toggle'}, 330);
|
15
|
-
e.preventDefault();
|
16
|
-
});
|
17
|
-
$('#flash.flash_message').prependTo('#records');
|
18
|
-
};
|
@@ -1,340 +0,0 @@
|
|
1
|
-
// Instantiate the object
|
2
|
-
var I18n = I18n || {};
|
3
|
-
|
4
|
-
// Set default locale to english
|
5
|
-
I18n.defaultLocale = "en";
|
6
|
-
|
7
|
-
// Set current locale to null
|
8
|
-
I18n.locale = I18n.locale || null;
|
9
|
-
|
10
|
-
I18n.lookup = function(scope, options) {
|
11
|
-
var translations = this.prepareOptions(I18n.translations);
|
12
|
-
var messages = translations[I18n.currentLocale()];
|
13
|
-
options = this.prepareOptions(options);
|
14
|
-
|
15
|
-
if (!messages) {
|
16
|
-
return;
|
17
|
-
}
|
18
|
-
|
19
|
-
if (typeof(scope) == "object") {
|
20
|
-
scope = scope.join(".");
|
21
|
-
}
|
22
|
-
|
23
|
-
if (options.scope) {
|
24
|
-
scope = options.scope.toString() + "." + scope;
|
25
|
-
}
|
26
|
-
|
27
|
-
scope = scope.split(".");
|
28
|
-
|
29
|
-
while (scope.length > 0) {
|
30
|
-
var currentScope = scope.shift();
|
31
|
-
messages = messages[currentScope];
|
32
|
-
|
33
|
-
if (!messages) {
|
34
|
-
break;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
if (!messages && options.defaultValue != null && options.defaultValue != undefined) {
|
39
|
-
messages = options.defaultValue;
|
40
|
-
}
|
41
|
-
|
42
|
-
return messages;
|
43
|
-
};
|
44
|
-
|
45
|
-
// Merge serveral hash options, checking if value is set before
|
46
|
-
// overwriting any value. The precedence is from left to right.
|
47
|
-
//
|
48
|
-
// I18n.prepareOptions({name: "John Doe"}, {name: "Mary Doe", role: "user"});
|
49
|
-
// #=> {name: "John Doe", role: "user"}
|
50
|
-
//
|
51
|
-
I18n.prepareOptions = function() {
|
52
|
-
var options = {};
|
53
|
-
var opts;
|
54
|
-
var count = arguments.length;
|
55
|
-
|
56
|
-
for (var i = 0; i < count; i++) {
|
57
|
-
opts = arguments[i];
|
58
|
-
|
59
|
-
if (!opts) {
|
60
|
-
continue;
|
61
|
-
}
|
62
|
-
|
63
|
-
for (var key in opts) {
|
64
|
-
if (options[key] == undefined || options[key] == null) {
|
65
|
-
options[key] = opts[key];
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
return options;
|
71
|
-
};
|
72
|
-
|
73
|
-
I18n.interpolate = function(message, options) {
|
74
|
-
options = options || {};
|
75
|
-
var regex = /\{\{(.*?)\}\}/gm;
|
76
|
-
|
77
|
-
var matches = message.match(regex);
|
78
|
-
|
79
|
-
if (!matches) {
|
80
|
-
return message;
|
81
|
-
}
|
82
|
-
|
83
|
-
var placeholder, value, name;
|
84
|
-
|
85
|
-
for (var i = 0; placeholder = matches[i]; i++) {
|
86
|
-
name = placeholder.replace(/\{\{(.*?)\}\}/gm, "$1");
|
87
|
-
|
88
|
-
value = options[name];
|
89
|
-
|
90
|
-
if (options[name] == null || options[name] == undefined) {
|
91
|
-
value = "[missing " + placeholder + " value]";
|
92
|
-
}
|
93
|
-
|
94
|
-
regex = new RegExp(placeholder.replace(/\{/gm, "\\{").replace(/\}/gm, "\\}"));
|
95
|
-
|
96
|
-
message = message.replace(regex, value);
|
97
|
-
}
|
98
|
-
|
99
|
-
return message;
|
100
|
-
};
|
101
|
-
|
102
|
-
I18n.translate = function(scope, options) {
|
103
|
-
options = this.prepareOptions(options);
|
104
|
-
var translation = this.lookup(scope, options);
|
105
|
-
|
106
|
-
try {
|
107
|
-
if (typeof(translation) == "object") {
|
108
|
-
if (typeof(options.count) == "number") {
|
109
|
-
return this.pluralize(options.count, scope, options);
|
110
|
-
} else {
|
111
|
-
return translation;
|
112
|
-
}
|
113
|
-
} else {
|
114
|
-
return this.interpolate(translation, options);
|
115
|
-
}
|
116
|
-
} catch(err) {
|
117
|
-
return this.missingTranslation(scope);
|
118
|
-
}
|
119
|
-
};
|
120
|
-
|
121
|
-
I18n.localize = function(scope, value) {
|
122
|
-
switch (scope) {
|
123
|
-
case "currency":
|
124
|
-
return this.toCurrency(value);
|
125
|
-
case "number":
|
126
|
-
scope = this.lookup("number.format");
|
127
|
-
return this.toNumber(value, scope);
|
128
|
-
default:
|
129
|
-
if (scope.match(/^(date|time)/)) {
|
130
|
-
return this.toTime(scope, value);
|
131
|
-
} else {
|
132
|
-
return value.toString();
|
133
|
-
}
|
134
|
-
}
|
135
|
-
};
|
136
|
-
|
137
|
-
I18n.parseDate = function(d) {
|
138
|
-
var matches, date;
|
139
|
-
var year, month, day, hour, min, sec = null;
|
140
|
-
|
141
|
-
if (matches = d.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ |T](\d{2}):(\d{2}):(\d{2}))?(Z)?/)) {
|
142
|
-
// date/time strings: yyyy-mm-dd hh:mm:ss or yyyy-mm-dd or yyyy-mm-ddThh:mm:ssZ
|
143
|
-
for (var i = 1; i <= 6; i++) {
|
144
|
-
matches[i] = matches[i] == undefined? 0 : parseInt(matches[i], 10);
|
145
|
-
}
|
146
|
-
|
147
|
-
// month starts on 0
|
148
|
-
matches[2] = matches[2] - 1;
|
149
|
-
|
150
|
-
if (matches[7]) {
|
151
|
-
date = new Date(Date.UTC(matches[1], matches[2], matches[3], matches[4], matches[5], matches[6]));
|
152
|
-
} else if (!isNaN(matches[4])) {
|
153
|
-
date = new Date(matches[1], matches[2], matches[3], matches[4], matches[5], matches[6]);
|
154
|
-
} else {
|
155
|
-
date = new Date(matches[1], matches[2], matches[3]);
|
156
|
-
}
|
157
|
-
} else if (typeof(d) == "number") {
|
158
|
-
// UNIX timestamp
|
159
|
-
date = new Date();
|
160
|
-
date.setTime(d);
|
161
|
-
} else {
|
162
|
-
// an arbitrary javascript string
|
163
|
-
date = new Date();
|
164
|
-
date.setTime(Date.parse(d));
|
165
|
-
}
|
166
|
-
|
167
|
-
return date;
|
168
|
-
};
|
169
|
-
|
170
|
-
I18n.toTime = function(scope, d) {
|
171
|
-
var date = this.parseDate(d);
|
172
|
-
var format = this.lookup(scope);
|
173
|
-
|
174
|
-
if (date.toString().match(/invalid/i)) {
|
175
|
-
return date.toString();
|
176
|
-
}
|
177
|
-
|
178
|
-
if (!format) {
|
179
|
-
return date.toString();
|
180
|
-
}
|
181
|
-
|
182
|
-
return this.strftime(date, format);
|
183
|
-
};
|
184
|
-
|
185
|
-
I18n.strftime = function(date, format) {
|
186
|
-
var options = this.lookup("date");
|
187
|
-
|
188
|
-
if (!options) {
|
189
|
-
return date.toString();
|
190
|
-
}
|
191
|
-
|
192
|
-
var weekDay = date.getDay();
|
193
|
-
var day = date.getDate();
|
194
|
-
var year = date.getFullYear();
|
195
|
-
var month = date.getMonth() + 1;
|
196
|
-
var hour = date.getHours();
|
197
|
-
var hour12 = hour;
|
198
|
-
var meridian = hour > 12? "PM" : "AM";
|
199
|
-
var secs = date.getSeconds();
|
200
|
-
var mins = date.getMinutes();
|
201
|
-
var offset = date.getTimezoneOffset();
|
202
|
-
var absOffsetHours = Math.floor(Math.abs(offset / 60));
|
203
|
-
var absOffsetMinutes = Math.abs(offset) - (absOffsetHours * 60);
|
204
|
-
var timezoneoffset = (offset > 0 ? "-" : "+") + (absOffsetHours.toString().length < 2 ? '0' + absOffsetHours : absOffsetHours) + (absOffsetMinutes.toString().length < 2 ? '0' + absOffsetMinutes : absOffsetMinutes);
|
205
|
-
|
206
|
-
if (hour12 > 12) {
|
207
|
-
hour12 = hour12 - 12;
|
208
|
-
}
|
209
|
-
|
210
|
-
var padding = function(n) {
|
211
|
-
var s = "0" + n.toString();
|
212
|
-
return s.substr(s.length - 2);
|
213
|
-
};
|
214
|
-
|
215
|
-
var f = format;
|
216
|
-
f = f.replace("%a", options["abbr_day_names"][weekDay]);
|
217
|
-
f = f.replace("%A", options["day_names"][weekDay]);
|
218
|
-
f = f.replace("%b", options["abbr_month_names"][month]);
|
219
|
-
f = f.replace("%B", options["month_names"][month]);
|
220
|
-
f = f.replace("%d", padding(day));
|
221
|
-
f = f.replace("%-d", day);
|
222
|
-
f = f.replace("%H", padding(hour));
|
223
|
-
f = f.replace("%-H", hour);
|
224
|
-
f = f.replace("%I", padding(hour12));
|
225
|
-
f = f.replace("%-I", hour12);
|
226
|
-
f = f.replace("%m", padding(month));
|
227
|
-
f = f.replace("%-m", month);
|
228
|
-
f = f.replace("%M", padding(mins));
|
229
|
-
f = f.replace("%-M", mins);
|
230
|
-
f = f.replace("%p", meridian);
|
231
|
-
f = f.replace("%S", padding(secs));
|
232
|
-
f = f.replace("%-S", secs);
|
233
|
-
f = f.replace("%w", weekDay);
|
234
|
-
f = f.replace("%y", padding(year));
|
235
|
-
f = f.replace("%-y", padding(year).replace(/^0+/, ""));
|
236
|
-
f = f.replace("%Y", year);
|
237
|
-
f = f.replace("%z", timezoneoffset);
|
238
|
-
|
239
|
-
return f;
|
240
|
-
};
|
241
|
-
|
242
|
-
I18n.toNumber = function(number, options) {
|
243
|
-
options = this.prepareOptions(
|
244
|
-
options,
|
245
|
-
this.lookup("number.format"),
|
246
|
-
{precision: 3, separator: '.', delimiter: ','}
|
247
|
-
);
|
248
|
-
|
249
|
-
var string = number.toFixed(options["precision"]).toString();
|
250
|
-
var parts = string.split(".");
|
251
|
-
|
252
|
-
number = parts[0];
|
253
|
-
var precision = parts[1];
|
254
|
-
|
255
|
-
var n = [];
|
256
|
-
|
257
|
-
while (number.length > 0) {
|
258
|
-
n.unshift(number.substr(Math.max(0, number.length - 3), 3));
|
259
|
-
number = number.substr(0, number.length -3);
|
260
|
-
}
|
261
|
-
|
262
|
-
var formattedNumber = n.join(options["delimiter"]);
|
263
|
-
|
264
|
-
if (options["precision"] > 0) {
|
265
|
-
formattedNumber += options["separator"] + parts[1];
|
266
|
-
}
|
267
|
-
|
268
|
-
return formattedNumber;
|
269
|
-
};
|
270
|
-
|
271
|
-
I18n.toCurrency = function(number, options) {
|
272
|
-
options = this.prepareOptions(
|
273
|
-
options,
|
274
|
-
this.lookup("number.currency.format"),
|
275
|
-
this.lookup("number.format"),
|
276
|
-
{ unit: "$", precision: 2, format: "%u%n", delimiter: ",", separator: "." }
|
277
|
-
);
|
278
|
-
|
279
|
-
number = this.toNumber(number, options);
|
280
|
-
number = options["format"]
|
281
|
-
.replace("%u", options["unit"])
|
282
|
-
.replace("%n", number);
|
283
|
-
|
284
|
-
return number;
|
285
|
-
};
|
286
|
-
|
287
|
-
I18n.toPercentage = function(number, options) {
|
288
|
-
options = this.prepareOptions(
|
289
|
-
options,
|
290
|
-
this.lookup("number.percentage.format"),
|
291
|
-
this.lookup("number.format"),
|
292
|
-
{ precision: 3, separator: ".", delimiter: "" }
|
293
|
-
);
|
294
|
-
|
295
|
-
number = this.toNumber(number, options);
|
296
|
-
return number + "%";
|
297
|
-
};
|
298
|
-
|
299
|
-
I18n.pluralize = function(count, scope, options) {
|
300
|
-
var translation = this.lookup(scope, options);
|
301
|
-
|
302
|
-
var message;
|
303
|
-
options = options || {};
|
304
|
-
options["count"] = count.toString();
|
305
|
-
|
306
|
-
switch(Math.abs(count)) {
|
307
|
-
case 0:
|
308
|
-
message = translation["zero"] || translation["none"] || translation["other"] || this.missingTranslation(scope, "zero");
|
309
|
-
break;
|
310
|
-
case 1:
|
311
|
-
message = translation["one"] || this.missingTranslation(scope, "one");
|
312
|
-
break;
|
313
|
-
default:
|
314
|
-
message = translation["other"] || this.missingTranslation(scope, "other");
|
315
|
-
}
|
316
|
-
|
317
|
-
return this.interpolate(message, options);
|
318
|
-
};
|
319
|
-
|
320
|
-
I18n.missingTranslation = function() {
|
321
|
-
var message = '[missing "' + this.currentLocale();
|
322
|
-
var count = arguments.length;
|
323
|
-
|
324
|
-
for (var i = 0; i < count; i++) {
|
325
|
-
message += "." + arguments[i];
|
326
|
-
}
|
327
|
-
|
328
|
-
message += '" translation]';
|
329
|
-
|
330
|
-
return message;
|
331
|
-
};
|
332
|
-
|
333
|
-
I18n.currentLocale = function() {
|
334
|
-
return (I18n.locale || I18n.defaultLocale);
|
335
|
-
};
|
336
|
-
|
337
|
-
// shortcuts
|
338
|
-
I18n.t = I18n.translate;
|
339
|
-
I18n.l = I18n.localize;
|
340
|
-
I18n.p = I18n.pluralize;
|