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
Binary file
|
data/core/engines.md
DELETED
@@ -1,179 +0,0 @@
|
|
1
|
-
# Extending Refinery with Engines
|
2
|
-
|
3
|
-
## Introduction
|
4
|
-
|
5
|
-
__Refinery is designed to be easily extended so you can quickly customise your Refinery site to manage new areas you want to add to your site. If you see something you want to customise, the chances are you can customise it.__
|
6
|
-
|
7
|
-
The main way of extending Refinery is through adding new engines to your app. By default you can edit pages in Refinery's backend, but how do you add a new section to manage like products?
|
8
|
-
|
9
|
-
See: [The Refinery Engine Generator](http://github.com/resolve/refinerycms-generators/blob/master/readme.md#readme)
|
10
|
-
|
11
|
-
## The Structure of an Engine
|
12
|
-
|
13
|
-
Think of a engine in Refinery as a small Rails app. Engines have a structure that is extremely similar to a Rails app. Here's an example of Refinery's pages engine (located in Refinery's ``pages/`` folder)
|
14
|
-
|
15
|
-
pages
|
16
|
-
|- app
|
17
|
-
| |- controllers
|
18
|
-
| | |- admin
|
19
|
-
| | | |- pages_dialogs_controller.rb
|
20
|
-
| | | |- page_parts_controller.rb
|
21
|
-
| | | |- pages_controller.rb
|
22
|
-
| | |- pages_controller.rb
|
23
|
-
| |- helpers
|
24
|
-
| | |- pages_helper.rb
|
25
|
-
| |- models
|
26
|
-
| | |- page.rb
|
27
|
-
| |- views
|
28
|
-
| |- pages
|
29
|
-
| | |- home.html.erb
|
30
|
-
| | |- show.html.erb
|
31
|
-
| |- admin
|
32
|
-
| |- pages
|
33
|
-
| |- _form.html.erb
|
34
|
-
| |- edit.html.erb
|
35
|
-
| |- index.html.erb
|
36
|
-
| |- new.html.erb
|
37
|
-
|- config
|
38
|
-
| |- routes.rb
|
39
|
-
|- rails
|
40
|
-
|- init.rb
|
41
|
-
|
42
|
-
|
43
|
-
### app/controllers
|
44
|
-
|
45
|
-
In this example you see one "public" controller ``app/controllers/pages_controller`` that is responsible for managing the front end when I view a page.
|
46
|
-
|
47
|
-
### app/controllers/admin
|
48
|
-
|
49
|
-
This bit is important. It's where all the controllers are held to manage pages in the Refinery back end in this example. You can ignore the ``pages_dialogs_controller.rb`` and ``page_parts_controller.rb`` for now and let's just focus on the ``admin/pages_controller.rb`` file. Here's what that looks like inside at a basic level:
|
50
|
-
|
51
|
-
module Admin
|
52
|
-
class PagesController < Admin::BaseController
|
53
|
-
|
54
|
-
crudify :page, :conditions => {:parent_id => nil},
|
55
|
-
:order => "position ASC", :paging => false
|
56
|
-
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
This single controller allows us to create, read, update and delete pages in the backend. With a little bit of Refinery magic we utilise the [crudify mixin](http://github.com/resolve/refinerycms/blob/master/core/crud.md) which gives us all of these regular features out of the box.
|
61
|
-
|
62
|
-
How crudify works is an entire topic of it's own. Checkout the [crudify documentation](http://github.com/resolve/refinerycms/blob/master/core/crud.md) to get an insight into how that works.
|
63
|
-
|
64
|
-
### app/views and app/helpers
|
65
|
-
|
66
|
-
Works exactly the same as ``app/views`` and ``app/helpers`` in a normal Rails app. You just put the views and helpers related to this engine in here instead of in your actual main app directory.
|
67
|
-
|
68
|
-
### config/routes.rb
|
69
|
-
|
70
|
-
Works exactly the same as ``config/routes.rb`` in your app except this routes file only loads the routes for this engine.
|
71
|
-
|
72
|
-
### rails/init.rb
|
73
|
-
|
74
|
-
This file runs when your site is started up. All is does is registers this engine with Refinery so it knows that it exists, how to handle it in the Refinery admin menu and how to render recent activity on the Dashboard (see "Getting your Engine to Report Activity in the Dashboard")
|
75
|
-
|
76
|
-
NOTE: The latest version of Refinery requires that you only specify a engine.name. plugin.title & plugin.description will be looked up by the I18n system.
|
77
|
-
|
78
|
-
# pages/lib/pages.rb
|
79
|
-
Refinery::Plugin.register do |plugin|
|
80
|
-
plugin.name = "pages"
|
81
|
-
plugin.version = 1.0
|
82
|
-
plugin.menu_match = /(refinery|admin)\/page(_dialog|part)?s$/
|
83
|
-
plugin.activity = {
|
84
|
-
:class => Page,
|
85
|
-
:url_prefix => "edit_",
|
86
|
-
:title => "title",
|
87
|
-
:created_image => "page_add.png",
|
88
|
-
:updated_image => "page_edit.png"
|
89
|
-
}
|
90
|
-
end
|
91
|
-
|
92
|
-
# pages/config/locales/en.yml
|
93
|
-
en:
|
94
|
-
plugins:
|
95
|
-
refinery_pages:
|
96
|
-
title: Pages
|
97
|
-
description: Manage content pages
|
98
|
-
|
99
|
-
## Getting your Engine to Report Activity in the Dashboard
|
100
|
-
|
101
|
-
Recent activity reporting is built right in, so all you need to do is follow the convention below and your engine will start showing up in the recent activity list of the Dashboard.
|
102
|
-
|
103
|
-
In our example above we showed the use of ``plugin.activity`` for the pages engine.
|
104
|
-
|
105
|
-
Refinery::Plugin.register do |plugin|
|
106
|
-
plugin.name = "pages"
|
107
|
-
plugin.version = 1.0
|
108
|
-
plugin.menu_match = /(refinery|admin)\/page(_dialog|part)?s$/
|
109
|
-
plugin.activity = {
|
110
|
-
:class => Page,
|
111
|
-
:url_prefix => "edit_",
|
112
|
-
:title => "title",
|
113
|
-
:created_image => "page_add.png",
|
114
|
-
:updated_image => "page_edit.png"
|
115
|
-
}
|
116
|
-
end
|
117
|
-
|
118
|
-
Here's what the different activity options mean:
|
119
|
-
|
120
|
-
### Required
|
121
|
-
|
122
|
-
:class
|
123
|
-
# the name of the class we're watching.
|
124
|
-
|
125
|
-
:url_prefix
|
126
|
-
# Just use "edit_" if you're not sure how this works.
|
127
|
-
#
|
128
|
-
# When it says "'About' page was updated about 4 hours ago", the page title "About"
|
129
|
-
# is linked to that page in a way we specify. So by setting "_edit" as a :url_prefix what
|
130
|
-
# we're doing is making it link to the page that allows us to edit this page.
|
131
|
-
# So the next result is edit_admin_page_url(page)
|
132
|
-
|
133
|
-
:title
|
134
|
-
# which attribute on the :class should be in the activty message. In our case it's "title"
|
135
|
-
# because we want it to run something like this "#{page.title} was updated about ...."
|
136
|
-
|
137
|
-
### Optional
|
138
|
-
|
139
|
-
:created_image and :updated_image
|
140
|
-
# the activity monitor knows if something is created or updated and shows a different icon
|
141
|
-
# depending on how you want that to look. You can specify the filename to any image you
|
142
|
-
# want in the public/images/refinery/icons/ directory.
|
143
|
-
|
144
|
-
## Search Engine Optimisation: Improving the default URLs
|
145
|
-
|
146
|
-
In our example above we extended Refinery to manage a products area. The problem is when I look at a product on the front end I get a URL like [http://localhost:3000/products/1](http://localhost:3000/products/1) but I would really like it to be something like [http://localhost:3000/products/my-product](http://localhost:3000/products/my-product)
|
147
|
-
|
148
|
-
To achieve this all you need to do is open up the product model (found in ``/vendor/plugins/products/app/models/product.rb``) and add the following line inside your class:
|
149
|
-
|
150
|
-
has_friendly_id :title, :use_slug => true
|
151
|
-
|
152
|
-
Note you want to change ``:title`` to the field which you want to show up in the URL.
|
153
|
-
|
154
|
-
This will work just fine for new products added from this point, but you'll want to migrate any existing products you have to use this new URL format. All you have to do is save each product you have in the database to make it create a nice URL for you.
|
155
|
-
|
156
|
-
ruby script/console
|
157
|
-
>> Product.all.each {|p| p.save };nil
|
158
|
-
|
159
|
-
Now all the products in your database will have nice URLs.
|
160
|
-
|
161
|
-
## How to get a WYSIWYG editor to show on your form fields
|
162
|
-
|
163
|
-
Refinery uses a standards compliant visual editor called [WYMeditor](http://www.wymeditor.org/)
|
164
|
-
|
165
|
-
_Note: When using the Refinery generator, if you apply a field type of "text" to any of your fields, they automatically load as a WYMEditor._
|
166
|
-
|
167
|
-
The WYSIWYG editor can only be applied to a ``textarea``. All you need to do is add a class of "wymeditor widest" to a ``textarea`` in your form and a WYSIWYG WYMEditor will load right in place.
|
168
|
-
|
169
|
-
### Example
|
170
|
-
|
171
|
-
Again going back to our product plugin example if you had this in your ``vendor/plugins/products/app/views/admin/products/_form.html.erb`` file:
|
172
|
-
|
173
|
-
<%= f.text_area :description %>
|
174
|
-
|
175
|
-
Just change that to:
|
176
|
-
|
177
|
-
<%= f.text_area :description, :class => "wymeditor widest" %>
|
178
|
-
|
179
|
-
Refresh and you're done.
|
@@ -1,55 +0,0 @@
|
|
1
|
-
@refinerycms @search
|
2
|
-
Feature: Search
|
3
|
-
In order find content more quickly
|
4
|
-
As an administrator
|
5
|
-
I want to use search
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given I am a logged in refinery user
|
9
|
-
|
10
|
-
@search-existing
|
11
|
-
Scenario Outline: Search Existing Item
|
12
|
-
Given I have a <item> titled "<title>"
|
13
|
-
When I go to the list of <location>
|
14
|
-
And I fill in "search" with "<title>"
|
15
|
-
And I press "Search"
|
16
|
-
Then I should see "<title>"
|
17
|
-
|
18
|
-
Examples:
|
19
|
-
| item | title | location |
|
20
|
-
|page |testitem|pages |
|
21
|
-
|setting |testitem|settings |
|
22
|
-
|
23
|
-
# This will only run when resources engine is installed.
|
24
|
-
@search-file
|
25
|
-
Scenario: Search File
|
26
|
-
When I upload the file at "refinery_is_awesome.txt"
|
27
|
-
And I go to the list of files
|
28
|
-
And I fill in "search" with "Refinery Is Awesome"
|
29
|
-
And I press "Search"
|
30
|
-
Then I should see "Refinery Is Awesome"
|
31
|
-
|
32
|
-
# This will only run when images engine is installed.
|
33
|
-
@search-image
|
34
|
-
Scenario: Search Image
|
35
|
-
When I upload the image at "beach.jpeg"
|
36
|
-
And I go to the list of images
|
37
|
-
And I fill in "search" with "Beach"
|
38
|
-
And I press "Search"
|
39
|
-
Then I should see "Beach"
|
40
|
-
|
41
|
-
@search-nonexisting
|
42
|
-
Scenario Outline: Search Nonexisting Item
|
43
|
-
Given I have no <item>
|
44
|
-
When I go to the list of <location>
|
45
|
-
And I fill in "search" with "nonexisting"
|
46
|
-
And I press "Search"
|
47
|
-
Then I should see "Sorry, no results found"
|
48
|
-
|
49
|
-
Examples:
|
50
|
-
| item | location |
|
51
|
-
|pages |pages |
|
52
|
-
|images |images |
|
53
|
-
|files |files |
|
54
|
-
|settings |settings |
|
55
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
@refinerycms @site_bar
|
2
|
-
Feature: Site Bar
|
3
|
-
In order to allow administrators to easily switch between editing and viewing their website
|
4
|
-
I want logged in refinery users to see a site bar
|
5
|
-
And I want logged in customers to not see a site bar
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given I have a page titled "Home" with a custom url "/"
|
9
|
-
And I am not logged in
|
10
|
-
|
11
|
-
Scenario: Not logged in
|
12
|
-
When I go to the home page
|
13
|
-
Then I should not see "Log out"
|
14
|
-
|
15
|
-
Scenario: Logged in as a Refinery user
|
16
|
-
Given I am a logged in refinery user
|
17
|
-
When I go to the home page
|
18
|
-
Then I should see "Log out"
|
19
|
-
|
20
|
-
Scenario: Logged in as a customer
|
21
|
-
Given A Refinery user exists
|
22
|
-
And I am a logged in customer
|
23
|
-
When I go to the home page
|
24
|
-
Then I should not see "Switch to your website editor"
|
@@ -1,61 +0,0 @@
|
|
1
|
-
# Login stuff
|
2
|
-
Given %r`not logged in$` do
|
3
|
-
visit destroy_user_session_path
|
4
|
-
end
|
5
|
-
|
6
|
-
Given /locale is (.+?)$/ do |locale|
|
7
|
-
if defined?(::Refinery::I18n)
|
8
|
-
::Refinery::I18n.current_locale = locale.to_sym
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
Given %r`(?:log|am logged) in as "([^\"]+)"$` do |login|
|
13
|
-
@my_username = login
|
14
|
-
visit refinery_login_path
|
15
|
-
And %Q`enter the username "#{login}"`
|
16
|
-
And %Q`enter the password "#{login}-123"`
|
17
|
-
And "press the login button"
|
18
|
-
end
|
19
|
-
|
20
|
-
Then 'I should( not)? see a login form' do |negative|
|
21
|
-
expect_opposite_if(negative) do
|
22
|
-
response.should have_tag('form#new_user_session') do
|
23
|
-
field_labeled('Username').should_not be_nil
|
24
|
-
field_labeled('Password', :password).should_not be_nil
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
When %r`enter the username "(.+)"$` do |login|
|
30
|
-
fill_in 'user_session[login]' , :with => login
|
31
|
-
end
|
32
|
-
|
33
|
-
When %r`enter the password "(.+)-123"$` do |login|
|
34
|
-
fill_in 'user_session[password]', :with => "#{login}-123"
|
35
|
-
end
|
36
|
-
|
37
|
-
When %r`press the login button$` do
|
38
|
-
click_button 'Sign In'
|
39
|
-
end
|
40
|
-
|
41
|
-
Then %r`not be allowed to log in$` do
|
42
|
-
When %Q`log in as "#{@my_username}"`
|
43
|
-
Then 'I should see a login form'
|
44
|
-
end
|
45
|
-
|
46
|
-
Then %r`be redirected to login$` do
|
47
|
-
request.fullpath.should == refinery_login_path
|
48
|
-
end
|
49
|
-
|
50
|
-
Then /^"([^\"]*)" can log in$/ do |name|
|
51
|
-
user = User.find_by_login!(name)
|
52
|
-
visit refinery_login_path
|
53
|
-
When %Q`I enter the username "#{name}"`
|
54
|
-
And %Q`I enter the password "#{name}-123"`
|
55
|
-
And 'I press the login button'
|
56
|
-
Then 'I should not see a login form'
|
57
|
-
end
|
58
|
-
|
59
|
-
Then /^I should be redirected back to "([^\"]*)"$/ do |page_name|
|
60
|
-
visit path_to(page_name)
|
61
|
-
end
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
http://www.refineryhq.com/
|
data/core/lib/core.rb
DELETED
@@ -1,143 +0,0 @@
|
|
1
|
-
require 'rails/all'
|
2
|
-
|
3
|
-
require 'acts_as_indexed'
|
4
|
-
require 'awesome_nested_set'
|
5
|
-
require 'dragonfly'
|
6
|
-
require 'devise'
|
7
|
-
require 'friendly_id'
|
8
|
-
require 'truncate_html'
|
9
|
-
require 'will_paginate'
|
10
|
-
require 'rails/generators'
|
11
|
-
require 'rails/generators/migration'
|
12
|
-
|
13
|
-
module Refinery
|
14
|
-
|
15
|
-
autoload :Activity, File.expand_path('../refinery/activity', __FILE__)
|
16
|
-
autoload :Application, File.expand_path('../refinery/application', __FILE__)
|
17
|
-
autoload :Plugin, File.expand_path('../refinery/plugin', __FILE__)
|
18
|
-
autoload :Plugins, File.expand_path('../refinery/plugins', __FILE__)
|
19
|
-
|
20
|
-
module Core
|
21
|
-
class << self
|
22
|
-
def attach_to_application!
|
23
|
-
::Rails::Application.subclasses.each do |subclass|
|
24
|
-
begin
|
25
|
-
subclass.send :include, ::Refinery::Application
|
26
|
-
rescue
|
27
|
-
$stdout.puts "Refinery CMS couldn't attach to #{subclass.name}."
|
28
|
-
$stdout.puts "Error was: #{$!.message}"
|
29
|
-
$stdout.puts $!.backtrace
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class Engine < Rails::Engine
|
36
|
-
|
37
|
-
config.autoload_paths += %W( #{config.root}/lib )
|
38
|
-
|
39
|
-
# Attach ourselves to the Rails application.
|
40
|
-
config.before_configuration do
|
41
|
-
::Refinery::Core.attach_to_application!
|
42
|
-
end
|
43
|
-
|
44
|
-
# Wrap errors in spans and cache vendored assets.
|
45
|
-
config.to_prepare do
|
46
|
-
# This wraps errors in span not div
|
47
|
-
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
|
48
|
-
"<span class=\"fieldWithErrors\">#{html_tag}</span>".html_safe
|
49
|
-
end
|
50
|
-
|
51
|
-
# TODO: Is there a better way to cache assets in engines?
|
52
|
-
::ActionView::Helpers::AssetTagHelper.module_eval do
|
53
|
-
def asset_file_path(path)
|
54
|
-
unless File.exist?(return_path = File.join(config.assets_dir, path.split('?').first))
|
55
|
-
::Refinery::Plugins.registered.collect{|p| p.pathname}.compact.each do |pathname|
|
56
|
-
if File.exist?(plugin_asset_path = File.join(pathname.to_s, 'public', path.split('?').first))
|
57
|
-
return_path = plugin_asset_path.to_s
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
return_path
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# Register the plugin
|
68
|
-
config.after_initialize do
|
69
|
-
Refinery::Plugin.register do |plugin|
|
70
|
-
plugin.name ="refinery_core"
|
71
|
-
plugin.class_name ="RefineryEngine"
|
72
|
-
plugin.version = Refinery.version.to_s
|
73
|
-
plugin.hide_from_menu = true
|
74
|
-
plugin.always_allow_access = true
|
75
|
-
plugin.menu_match = /(refinery|admin)\/(refinery_core)$/
|
76
|
-
end
|
77
|
-
|
78
|
-
# Register the dialogs plugin
|
79
|
-
Refinery::Plugin.register do |plugin|
|
80
|
-
plugin.name = "refinery_dialogs"
|
81
|
-
plugin.version = Refinery.version.to_s
|
82
|
-
plugin.hide_from_menu = true
|
83
|
-
plugin.always_allow_access = true
|
84
|
-
plugin.menu_match = /(refinery|admin)\/(refinery_)?dialogs/
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
# Run other initializer code that used to be in config/initializers/
|
89
|
-
initializer "serve static assets" do |app|
|
90
|
-
app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
|
91
|
-
end
|
92
|
-
|
93
|
-
initializer 'add catch all routes' do |app|
|
94
|
-
app.routes_reloader.paths << File.expand_path('../refinery/catch_all_routes.rb', __FILE__)
|
95
|
-
end
|
96
|
-
|
97
|
-
initializer 'add presenters' do |app|
|
98
|
-
app.config.autoload_paths += [
|
99
|
-
Rails.root.join("app", "presenters"),
|
100
|
-
Rails.root.join("vendor", "**", "**", "app", "presenters"),
|
101
|
-
Refinery.root.join("**", "app", "presenters")
|
102
|
-
].flatten
|
103
|
-
end
|
104
|
-
|
105
|
-
initializer "configure acts_as_indexed" do |app|
|
106
|
-
ActsAsIndexed.configure do |config|
|
107
|
-
config.index_file = Rails.root.join('tmp', 'index')
|
108
|
-
config.index_file_depth = 3
|
109
|
-
config.min_word_size = 3
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
initializer "fix rack <= 1.2.1" do |app|
|
114
|
-
::Rack::Utils.module_eval do
|
115
|
-
def escape(s)
|
116
|
-
regexp = case
|
117
|
-
when RUBY_VERSION >= "1.9" && s.encoding === Encoding.find('UTF-8')
|
118
|
-
/([^ a-zA-Z0-9_.-]+)/u
|
119
|
-
else
|
120
|
-
/([^ a-zA-Z0-9_.-]+)/n
|
121
|
-
end
|
122
|
-
s.to_s.gsub(regexp) {
|
123
|
-
'%'+$1.unpack('H2'*bytesize($1)).join('%').upcase
|
124
|
-
}.tr(' ', '+')
|
125
|
-
end
|
126
|
-
end if ::Rack.version <= "1.2.1"
|
127
|
-
end
|
128
|
-
|
129
|
-
initializer 'set will_paginate link labels' do |app|
|
130
|
-
WillPaginate::ViewHelpers.pagination_options[:previous_label] = "«".html_safe
|
131
|
-
WillPaginate::ViewHelpers.pagination_options[:next_label] = "»".html_safe
|
132
|
-
end
|
133
|
-
|
134
|
-
initializer 'ensure devise is initialised' do |app|
|
135
|
-
unless Rails.root.join('config', 'initializers', 'devise.rb').file?
|
136
|
-
load Refinery.root.join(*%w(core lib generators templates config initializers devise.rb))
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
end
|