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,23 +0,0 @@
|
|
1
|
-
class PagePart < ActiveRecord::Base
|
2
|
-
|
3
|
-
belongs_to :page
|
4
|
-
|
5
|
-
validates :title, :presence => true
|
6
|
-
alias_attribute :content, :body
|
7
|
-
|
8
|
-
translates :body if respond_to?(:translates)
|
9
|
-
|
10
|
-
def to_param
|
11
|
-
"page_part_#{title.downcase.gsub(/\W/, '_')}"
|
12
|
-
end
|
13
|
-
|
14
|
-
before_save :normalise_text_fields
|
15
|
-
|
16
|
-
protected
|
17
|
-
def normalise_text_fields
|
18
|
-
unless body.blank? or body =~ /^\</
|
19
|
-
self.body = "<p>#{body.gsub("\r\n\r\n", "</p><p>").gsub("\r\n", "<br/>")}</p>"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
@@ -1,61 +0,0 @@
|
|
1
|
-
<% url_opts = action_name == 'edit' ? {:url => admin_page_path(@page.id)} : {} %>
|
2
|
-
<%= form_for [:admin, @page], url_opts do |f| %>
|
3
|
-
|
4
|
-
<%= render :partial => "/shared/admin/error_messages",
|
5
|
-
:locals => {
|
6
|
-
:object => @page,
|
7
|
-
:include_object_name => true
|
8
|
-
} %>
|
9
|
-
|
10
|
-
<%= render :partial => "locale_picker",
|
11
|
-
:locals => {
|
12
|
-
:current_locale => Thread.current[:globalize_locale]
|
13
|
-
} if defined?(::Refinery::I18n) %>
|
14
|
-
|
15
|
-
<div class="field">
|
16
|
-
<%= f.label :title %>
|
17
|
-
<%= f.text_field :title, :class => "larger widest" %>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<%= render :partial => "form_fields_after_title",
|
21
|
-
:locals => {
|
22
|
-
:f => f
|
23
|
-
} %>
|
24
|
-
|
25
|
-
<div class='field'>
|
26
|
-
<%= render :partial => "form_page_parts",
|
27
|
-
:locals => {
|
28
|
-
:f => f
|
29
|
-
} %>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<%= render :partial => "form_advanced_options",
|
33
|
-
:locals => {
|
34
|
-
:f => f
|
35
|
-
} %>
|
36
|
-
|
37
|
-
<%= render :partial => "/shared/admin/form_actions",
|
38
|
-
:locals => {
|
39
|
-
:f => f,
|
40
|
-
:continue_editing => true,
|
41
|
-
:delete_title => t('delete', :scope => 'admin.pages'),
|
42
|
-
:delete_confirmation => t('message', :scope => 'shared.admin.delete', :title => @page.title)
|
43
|
-
} %>
|
44
|
-
|
45
|
-
<%= render :partial => "form_new_page_parts",
|
46
|
-
:locals => {
|
47
|
-
:f => f
|
48
|
-
} if RefinerySetting.find_or_set(:new_page_parts, false) %>
|
49
|
-
<% end %>
|
50
|
-
|
51
|
-
<% content_for :javascripts do %>
|
52
|
-
<script>
|
53
|
-
$(document).ready(function(){
|
54
|
-
page_options.init(
|
55
|
-
<%= RefinerySetting.find_or_set(:new_page_parts, false).to_s %>
|
56
|
-
, "<%= new_admin_page_part_path %>"
|
57
|
-
, "<%= admin_page_parts_path %>"
|
58
|
-
);
|
59
|
-
});
|
60
|
-
</script>
|
61
|
-
<% end %>
|
@@ -1,79 +0,0 @@
|
|
1
|
-
<div id='more_options_field'>
|
2
|
-
<p>
|
3
|
-
<%= link_to t('.advanced_options'), "#",
|
4
|
-
:id => 'toggle_advanced_options',
|
5
|
-
:title => t('.toggle_advanced_options') %>
|
6
|
-
</p>
|
7
|
-
<span id='draft_field'>
|
8
|
-
<%= f.check_box :draft %>
|
9
|
-
<%= f.label :draft, t('.save_as_draft'),
|
10
|
-
:class => "stripped" %>
|
11
|
-
</span>
|
12
|
-
</div>
|
13
|
-
<div id='more_options' style="display:none;">
|
14
|
-
<div class="hemisquare">
|
15
|
-
<h2><%= t('.page_options') %></h2>
|
16
|
-
<div class='field'>
|
17
|
-
<span class='label_with_help'>
|
18
|
-
<%= f.label :parent_id, t('.parent_page') %>
|
19
|
-
<%= refinery_help_tag t('.parent_page_help') %>
|
20
|
-
</span>
|
21
|
-
<%= f.select :parent_id, nested_set_options(Page, @page) {|i| "#{'-' * i.level} #{i.title}" },
|
22
|
-
:include_blank => true %>
|
23
|
-
</div>
|
24
|
-
<div class='field'>
|
25
|
-
<span class='label_with_help'>
|
26
|
-
<%= label_tag :custom_title, t('.custom_title') %>
|
27
|
-
<%= refinery_help_tag t('.custom_title_help') %>
|
28
|
-
</span>
|
29
|
-
<% %w(none text).each do |type| %>
|
30
|
-
<%= f.radio_button :custom_title_type, type %>
|
31
|
-
<%= label_tag "page_custom_title_type_#{type}", t(type.downcase.gsub(" ", "_"), :scope => 'admin.pages.form_advanced_options.title_types'),
|
32
|
-
:class => "stripped" %>
|
33
|
-
<% end %>
|
34
|
-
<div id='custom_title_none'></div>
|
35
|
-
<div id='custom_title_text' style='display: <%= @page.custom_title_type == 'text' ? 'block' : 'none' %>'>
|
36
|
-
<%= f.text_field :custom_title, :class => 'widest' %>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
<div class='field'>
|
40
|
-
<span class='label_with_help'>
|
41
|
-
<%= f.label :skip_to_first_child?, t('.skip_to_first_child') %>
|
42
|
-
<%= refinery_help_tag t('.skip_to_first_child_help') %>
|
43
|
-
</span>
|
44
|
-
<%= f.check_box :skip_to_first_child %>
|
45
|
-
<%= f.label :skip_to_first_child, t('.skip_to_first_child_label'),
|
46
|
-
:class => "stripped" %>
|
47
|
-
</div>
|
48
|
-
<div class='field'>
|
49
|
-
<span class='label_with_help'>
|
50
|
-
<%= f.label :link_url, t('.link_url') %>
|
51
|
-
<%= refinery_help_tag t('.link_url_help') %>
|
52
|
-
</span>
|
53
|
-
<%= f.text_field :link_url, :style=> 'width:400px;' %>
|
54
|
-
<% content_for :javascripts do %>
|
55
|
-
<script>
|
56
|
-
$(document).ready(function(){
|
57
|
-
link_tester.init('<%= test_url_admin_pages_dialogs_url %>',
|
58
|
-
'<%= test_email_admin_pages_dialogs_url %>');
|
59
|
-
|
60
|
-
link_tester.validate_url_textbox("#page_link_url")
|
61
|
-
});
|
62
|
-
</script>
|
63
|
-
<% end %>
|
64
|
-
</div>
|
65
|
-
<div class='field'>
|
66
|
-
<span class='label_with_help'>
|
67
|
-
<%= f.label :show_in_menu, t('.show_in_menu_title'),
|
68
|
-
:id => 'page_show_in_menu_heading' %>
|
69
|
-
<%= refinery_help_tag t('.show_in_menu_help') %>
|
70
|
-
</span>
|
71
|
-
<%= f.check_box :show_in_menu %>
|
72
|
-
<%= f.label :show_in_menu, t('.show_in_menu_description'),
|
73
|
-
:class => "stripped" %>
|
74
|
-
</div>
|
75
|
-
</div>
|
76
|
-
|
77
|
-
<%= render :partial => "form_advanced_options_seo",
|
78
|
-
:locals => {:f => f} %>
|
79
|
-
</div>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<div class="hemisquare right_side">
|
2
|
-
<h2><%= t('.seo') %></h2>
|
3
|
-
<div class='field'>
|
4
|
-
<span class='label_with_help'>
|
5
|
-
<%= f.label :browser_title, t('.seo_override_title') %>
|
6
|
-
<%= refinery_help_tag t('.seo_override_title_help')%>
|
7
|
-
</span>
|
8
|
-
<%= f.text_field :browser_title, :class => 'widest' %>
|
9
|
-
</div>
|
10
|
-
<div class='field'>
|
11
|
-
<span class='label_with_help'>
|
12
|
-
<%= f.label :meta_keywords, t('.meta_keywords_title') %>
|
13
|
-
<%= refinery_help_tag t('.meta_keywords_help') %>
|
14
|
-
</span>
|
15
|
-
<%= f.text_field :meta_keywords, :class => 'widest' %>
|
16
|
-
</div>
|
17
|
-
<div class='field'>
|
18
|
-
<span class='label_with_help'>
|
19
|
-
<%= f.label :meta_description, t('.meta_description_title') %>
|
20
|
-
<%= refinery_help_tag t('.meta_description_help') %>
|
21
|
-
</span>
|
22
|
-
<%= f.text_area :meta_description, :class => 'widest', :rows => 7 %>
|
23
|
-
</div>
|
24
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%# Intentionally empty, useful override point to add extra fields. %>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<div id='new_page_part_dialog' style='display: none'>
|
2
|
-
<div class='field'>
|
3
|
-
<label for='new_page_part_title'><%= t('.title') %></label>
|
4
|
-
<input id='new_page_part_title' value='' class='larger widest' />
|
5
|
-
<input id='new_page_part_index' type='hidden' value='<%= @page.parts.size %>' />
|
6
|
-
</div>
|
7
|
-
<%= render :partial => "/shared/admin/form_actions", :locals => {
|
8
|
-
:f => f,
|
9
|
-
:continue_editing => false,
|
10
|
-
:submit_button_id => "new_page_part_save",
|
11
|
-
:cancel_button_id => "new_page_part_cancel",
|
12
|
-
:hide_delete => true
|
13
|
-
} %>
|
14
|
-
</div>
|
@@ -1,47 +0,0 @@
|
|
1
|
-
<% if RefinerySetting.find_or_set(:new_page_parts, false) %>
|
2
|
-
<ul id="page_parts_controls">
|
3
|
-
<li>
|
4
|
-
<%= link_to refinery_icon_tag('add.png'), '#',
|
5
|
-
:id => 'add_page_part',
|
6
|
-
:title => t('.create_content_section') %>
|
7
|
-
</li>
|
8
|
-
<li>
|
9
|
-
<%= link_to refinery_icon_tag('delete.png'), '#',
|
10
|
-
:title => t('.delete_content_section'),
|
11
|
-
:class => 'delete_page_part',
|
12
|
-
:name => t('.delete_content_section'),
|
13
|
-
:id => 'delete_page_part' %>
|
14
|
-
</li>
|
15
|
-
</ul>
|
16
|
-
<% end %>
|
17
|
-
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
|
18
|
-
<ul id='page_parts'>
|
19
|
-
<% @page.parts.each_with_index do |part, part_index| %>
|
20
|
-
<li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
|
21
|
-
<%= link_to part.title, "##{@page.persisted? ? part.to_param : "page_part_new_#{part_index}"}" %>
|
22
|
-
</li>
|
23
|
-
<% end %>
|
24
|
-
<% Refinery::Pages.tabs.each_with_index do |tab, tab_index| %>
|
25
|
-
<li class='ui-state-default' id="custom_<%= tab.name %>_tab">
|
26
|
-
<%= link_to tab.name.titleize, "#custom_tab_#{tab_index}" %>
|
27
|
-
</li>
|
28
|
-
<% end %>
|
29
|
-
</ul>
|
30
|
-
|
31
|
-
<div id='page_part_editors'>
|
32
|
-
<% part_index = -1 %>
|
33
|
-
<%= f.fields_for :parts do |p| %>
|
34
|
-
<%= render :partial => 'page_part_field',
|
35
|
-
:locals => {
|
36
|
-
:part => p.object,
|
37
|
-
:part_index => (part_index += 1),
|
38
|
-
:new_part => !@page.persisted?
|
39
|
-
} -%>
|
40
|
-
<% end %>
|
41
|
-
<% Refinery::Pages.tabs.each_with_index do |tab, tab_index| %>
|
42
|
-
<div class='page_part' id='<%= "custom_tab_#{tab_index}" %>'>
|
43
|
-
<%= render :partial => tab.partial, :locals => {:f => f} %>
|
44
|
-
</div>
|
45
|
-
<% end %>
|
46
|
-
</div>
|
47
|
-
</div>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<input type='hidden' name='switch_locale' id='switch_locale' value='<%= local_assigns[:current_locale] %>' />
|
2
|
-
<% if (locales ||= ::Refinery::I18n.frontend_locales).present? and locales.many? %>
|
3
|
-
<ul id='switch_locale_picker' class='clearfix'>
|
4
|
-
<% locales.each do |locale| %>
|
5
|
-
<li<%= " class='selected'" if locale.to_s == local_assigns[:current_locale].to_s %>>
|
6
|
-
<%= link_to refinery_icon_tag("flags/#{locale}.png", :size => '48x33'),
|
7
|
-
url_for(:switch_locale => locale) %>
|
8
|
-
</li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
<% end %>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
<li class='clearfix record' id="<%= dom_id(page) -%>">
|
2
|
-
<div class='clearfix'>
|
3
|
-
<span class='title'>
|
4
|
-
<%= page.title_with_meta.html_safe %>
|
5
|
-
<% if defined?(::Refinery::I18n) and ::Refinery::I18n.frontend_locales.many? and
|
6
|
-
(locales = page.translations.collect{|t| t.locale}).present? %>
|
7
|
-
<span class='preview'>
|
8
|
-
<% locales.each do |locale| %>
|
9
|
-
<%= refinery_icon_tag "flags/#{locale}.png", :size => '16x11' %>
|
10
|
-
<% end %>
|
11
|
-
</span>
|
12
|
-
<% end %>
|
13
|
-
</span>
|
14
|
-
|
15
|
-
<span class='actions'>
|
16
|
-
<%= link_to refinery_icon_tag('application_go.png'), page.url,
|
17
|
-
:target => "_blank",
|
18
|
-
:title => t('.view_live_html') %>
|
19
|
-
<%= link_to refinery_icon_tag('application_edit.png'), edit_admin_page_url(page),
|
20
|
-
:title => t('edit', :scope => 'admin.pages') %>
|
21
|
-
<%= link_to refinery_icon_tag('delete.png'), admin_page_url(page),
|
22
|
-
:class => "cancel confirm-delete",
|
23
|
-
:title => t('delete', :scope => 'admin.pages'),
|
24
|
-
:confirm => t('message', :scope => 'shared.admin.delete', :title => page.title_with_meta.gsub(/\ ?<em>.*<\/em>/, "")),
|
25
|
-
:method => :delete if page.deletable? %>
|
26
|
-
</span>
|
27
|
-
</div>
|
28
|
-
<ul class='nested'>
|
29
|
-
<% if (children = page.children).any? -%>
|
30
|
-
<%= render :partial => 'page', :collection => children %>
|
31
|
-
<% end -%>
|
32
|
-
</ul>
|
33
|
-
</li>
|
@@ -1,5 +0,0 @@
|
|
1
|
-
<div class='page_part' id='<%= new_part ? "page_part_new_#{part_index}" : part.to_param %>'>
|
2
|
-
<%= hidden_field_tag "page[parts_attributes][#{part_index}][title]", part.title if new_part %>
|
3
|
-
<%= text_area_tag "page[parts_attributes][#{part_index}][body]", part.body, :rows => 20, :class => 'wymeditor widest' %>
|
4
|
-
<%= hidden_field_tag "page[parts_attributes][#{part_index}][position]", part_index if new_part %>
|
5
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render :partial => "form" %>
|
@@ -1,40 +0,0 @@
|
|
1
|
-
<div id='records' class='tree'>
|
2
|
-
<% if searching? %>
|
3
|
-
<h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
|
4
|
-
<% end %>
|
5
|
-
<% if @pages.any? %>
|
6
|
-
<%= render :partial => 'sortable_list' %>
|
7
|
-
<% else %>
|
8
|
-
<p>
|
9
|
-
<% unless searching? %>
|
10
|
-
<strong><%=t('.no_pages_yet')%></strong>
|
11
|
-
<% else %>
|
12
|
-
<%= t('no_results', :scope => 'shared.admin.search') %>
|
13
|
-
<% end %>
|
14
|
-
</p>
|
15
|
-
<% end %>
|
16
|
-
</div>
|
17
|
-
<div id='actions'>
|
18
|
-
<ul>
|
19
|
-
<li>
|
20
|
-
<%= render :partial => "/shared/admin/search", :locals => {:url => admin_pages_url} %>
|
21
|
-
</li>
|
22
|
-
<li>
|
23
|
-
<%= link_to t('.create_new_page'), new_admin_page_url, :class => "add_icon" %>
|
24
|
-
</li>
|
25
|
-
<% if @pages.many? and !searching? %>
|
26
|
-
<li>
|
27
|
-
<%= link_to t('.reorder_pages'), admin_pages_url,
|
28
|
-
:id => "reorder_action",
|
29
|
-
:class => "reorder_icon" %>
|
30
|
-
|
31
|
-
<%= link_to t('.reorder_pages_done'), admin_pages_url,
|
32
|
-
:id => "reorder_action_done",
|
33
|
-
:style => "display: none;",
|
34
|
-
:class => "reorder_icon" %>
|
35
|
-
</li>
|
36
|
-
<% end %>
|
37
|
-
</ul>
|
38
|
-
</div>
|
39
|
-
<%= render :partial => "/shared/admin/make_sortable",
|
40
|
-
:locals => {:tree => true} if @pages.many? -%>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render :partial => "form" %>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<% linked = (url_for(page_link.url) == params[:current_link]) if params[:current_link].present? -%>
|
2
|
-
<% link_args = defined?(link_to_arguments) ? link_to_arguments : {} %>
|
3
|
-
<li class='clearfix<%= " child#{child}" if child %><%= " linked" if linked%>' id="<%= dom_id(page_link) -%>">
|
4
|
-
<%= link_to page_link.title_with_meta.html_safe, page_link.url,
|
5
|
-
{ :title => t('.link_to_this_page'),
|
6
|
-
:rel => page_link.title,
|
7
|
-
:class => 'page_link' }.merge(link_args) %>
|
8
|
-
</li>
|
9
|
-
<%= render :partial => 'page_link', :collection => page_link.children,
|
10
|
-
:locals => {
|
11
|
-
:child => (child ||= 0) + 1,
|
12
|
-
:link_to_arguments => link_args
|
13
|
-
} if page_link.children.any? -%>
|
@@ -1,141 +0,0 @@
|
|
1
|
-
<div class='clearfix dialog_link_to'>
|
2
|
-
<div id='dialog_menu_left'>
|
3
|
-
<span id='your_page_radio' class='radio<%= " selected_radio" if @page_area_selected %>'>
|
4
|
-
<input type='radio' name='link_to' value='your_page' id='link_to_your_page' <%= "checked='true'" if @page_area_selected %> />
|
5
|
-
<label for='link_to_your_page' class='stripped'><%= t('.your_page.tab_name') %></label>
|
6
|
-
</span>
|
7
|
-
<span id='web_address_radio' class='radio<%= " selected_radio" if @web_address_area_selected %>'>
|
8
|
-
<input type='radio' name='link_to' value='web_address' id='link_to_web_address' <%= "checked='true'" if @web_address_area_selected %> />
|
9
|
-
<label for='link_to_web_address' class='stripped'><%= t('tab_name', :scope => 'admin.pages_dialogs.link_to.web_address') %></label>
|
10
|
-
</span>
|
11
|
-
|
12
|
-
<span id='email_address_radio' class='radio<%= " selected_radio" if @email_address_area_selected %>'>
|
13
|
-
<input type='radio' name='link_to' value='email_address' id='link_to_email_address' <%= "checked='true'" if @email_address_area_selected %> />
|
14
|
-
<label for='link_to_email_address' class='stripped'><%= t('tab_name', :scope => 'admin.pages_dialogs.link_to.email_address') %></label>
|
15
|
-
</span>
|
16
|
-
<% if ::Refinery::Plugins.registered.names.include?("refinery_files") %>
|
17
|
-
<span id="resource_file_radio" class="radio<%= " selected_radio" if @resource_area_selected %>">
|
18
|
-
<input type="radio" name="link_to" value="resource_file" id="link_to_resource_file" <%= "checked='true'" if @resource_area_selected %> />
|
19
|
-
<label for="link_to_resource_file" class="stripped"><%= t('tab_name', :scope => 'admin.pages_dialogs.link_to.your_resource') %></label>
|
20
|
-
</span>
|
21
|
-
<% end %>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div id='dialog_main'>
|
25
|
-
<div id='your_page_area' class='dialog_area' <%= "style='display: none'" unless @page_area_selected %>>
|
26
|
-
<input type='hidden' name='selected_image' id='selected_image' />
|
27
|
-
<div id='your_page_content' class='clearfix'>
|
28
|
-
<div id='pages_list'>
|
29
|
-
<ul class="link_list">
|
30
|
-
<%= render :partial => "page_link", :collection => @pages,
|
31
|
-
:locals => {
|
32
|
-
:child => 0,
|
33
|
-
:link_to_arguments => {}
|
34
|
-
} %>
|
35
|
-
</ul>
|
36
|
-
<%= will_paginate @pages,
|
37
|
-
:param_name => :page,
|
38
|
-
:renderer => Refinery::LinkRenderer,
|
39
|
-
:id => 'pages_paginate' %>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
<div id='web_address_area' <%= "style='display: none'" unless @web_address_area_selected %> class='dialog_area'>
|
44
|
-
<div id='web_address_content'>
|
45
|
-
<label for='web_address_text'><%= t('location', :scope => 'admin.pages_dialogs.link_to.web_address') %></label>
|
46
|
-
<%= text_field :web_address, :text, :value => @web_address_text, :style => "width: 70%" %>
|
47
|
-
|
48
|
-
<label><%= t('new_window', :scope => 'admin.pages_dialogs.link_to.web_address') %></label>
|
49
|
-
<input type='checkbox' name='web_address_target_blank' id='web_address_target_blank' <%= "checked='checked'" if @web_address_target_blank %> />
|
50
|
-
<label for='web_address_target_blank' class='stripped'><%= t('new_window_label', :scope => 'admin.pages_dialogs.link_to.web_address') %></label>
|
51
|
-
<p>
|
52
|
-
<strong><%= t('not_sure', :scope => 'admin.pages_dialogs.link_to.web_address') %></strong>
|
53
|
-
</p>
|
54
|
-
<ol>
|
55
|
-
<li><%= t('step1', :scope => 'admin.pages_dialogs.link_to.web_address') %></li>
|
56
|
-
<li><%= t('step2', :scope => 'admin.pages_dialogs.link_to.web_address') %></li>
|
57
|
-
</ol>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
<div id='email_address_area' <%= "style='display: none'" unless @email_address_area_selected %> class='dialog_area'>
|
61
|
-
<div id='email_address_content'>
|
62
|
-
<div class='field'>
|
63
|
-
<label for='email_address_text'><%= t('tab_name', :scope => 'admin.pages_dialogs.link_to.email_address') %></label>
|
64
|
-
<%= text_field :email_address, :text, :value => @email_address_text, :style => "width: 70%" %>
|
65
|
-
<img id='email_address_test_loader' src='/images/refinery/ajax-loader.gif' alt='Testing...' style='display: none;'/>
|
66
|
-
<span id='email_address_test_result'></span>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<div class='field'>
|
70
|
-
<label for='email_default_subject_text'><%= t('subject_line_optional', :scope => 'admin.pages_dialogs.link_to.email_address') %></label>
|
71
|
-
<%= text_field :email_default_subject, :text, :value => @email_default_subject_text, :style => "width: 70%" %>
|
72
|
-
</div>
|
73
|
-
|
74
|
-
<div class='field'>
|
75
|
-
<label for='email_default_body_text'><%= t('body_optional', :scope => 'admin.pages_dialogs.link_to.email_address') %></label>
|
76
|
-
<%= text_area :email_default_body, :text, :value => @email_default_body_text, :style => "width: 70%", :rows => '' %>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<p>
|
80
|
-
<strong><%= t('not_sure', :scope => 'admin.pages_dialogs.link_to.email_address') %></strong>
|
81
|
-
</p>
|
82
|
-
<ol style='margin-top: 3px'>
|
83
|
-
<li>
|
84
|
-
<%= t('step1_html', :scope => 'admin.pages_dialogs.link_to.email_address') %>
|
85
|
-
</li>
|
86
|
-
<li>
|
87
|
-
<%= t('step2_html', :scope => 'admin.pages_dialogs.link_to.email_address') %>
|
88
|
-
</li>
|
89
|
-
<li>
|
90
|
-
<%= t('step3_html', :scope => 'admin.pages_dialogs.link_to.email_address') %>
|
91
|
-
</li>
|
92
|
-
</ol>
|
93
|
-
</div>
|
94
|
-
</div>
|
95
|
-
<% if ::Refinery::Plugins.registered.names.include?("refinery_files") %>
|
96
|
-
<div id="resource_file_area"<%= " style='display:none'" unless @resource_area_selected %> class="dialog_area">
|
97
|
-
<div id='pages_list'>
|
98
|
-
<ul class="link_list">
|
99
|
-
<% @resources.each do |resource| -%>
|
100
|
-
<% resource_linked = (resource.url == params[:current_link]) unless params[:current_link].blank? %>
|
101
|
-
<li<%= " class='linked'" if resource_linked %>>
|
102
|
-
<%= link_to "#{resource.title}.#{resource.ext}", resource.url,
|
103
|
-
:title => t('link_to_this_resource', :scope => 'admin.pages_dialogs.link_to.your_resource'),
|
104
|
-
:rel => resource.title,
|
105
|
-
:class => "page_link #{resource.ext}" %>
|
106
|
-
</li>
|
107
|
-
<% end %>
|
108
|
-
</ul>
|
109
|
-
<%= will_paginate @resources,
|
110
|
-
:param_name => :resource_page,
|
111
|
-
:renderer => Refinery::LinkRenderer,
|
112
|
-
:url => {:paginating => "resource_file"},
|
113
|
-
:id => 'resouces_paginate' %>
|
114
|
-
</div>
|
115
|
-
</div>
|
116
|
-
<% end %>
|
117
|
-
</div>
|
118
|
-
<%= render :partial => "/shared/admin/form_actions",
|
119
|
-
:locals => {
|
120
|
-
:f => nil,
|
121
|
-
:cancel_url => '',
|
122
|
-
:submit_button_text => t('.insert'),
|
123
|
-
:hide_cancel => false,
|
124
|
-
:cancel_title => nil,
|
125
|
-
:hide_delete => true
|
126
|
-
} %>
|
127
|
-
</div>
|
128
|
-
|
129
|
-
<% content_for :javascripts do %>
|
130
|
-
<script>
|
131
|
-
$(document).ready(function(){
|
132
|
-
link_tester.init('<%= test_url_admin_pages_dialogs_url %>',
|
133
|
-
'<%= test_email_admin_pages_dialogs_url %>');
|
134
|
-
link_dialog.init();
|
135
|
-
|
136
|
-
$('.link_list a').click(function(e){
|
137
|
-
e.preventDefault();
|
138
|
-
});
|
139
|
-
});
|
140
|
-
</script>
|
141
|
-
<% end %>
|