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,8 +0,0 @@
|
|
1
|
-
<% unless refinery_user? or
|
2
|
-
(page_code = RefinerySetting.find_or_set(:analytics_page_code, 'UA-xxxxxx-x').to_s.strip) =~ /^(UA-xxxxxx-x)?$/ -%>
|
3
|
-
<!-- asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet -->
|
4
|
-
<script>var _gaq=[['_setAccount','<%= page_code %>'],['_trackPageview']];(function(d,t){
|
5
|
-
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
6
|
-
g.async=1;g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)
|
7
|
-
}(document,'script'))</script>
|
8
|
-
<% end -%>
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
if (yielded_head = yield(:head)).present?
|
3
|
-
logger.warn "\n-- DEPRECATION WARNING --"
|
4
|
-
logger.warn "The use of 'content_for :head' is DEPRECATED for the frontend layouts."
|
5
|
-
logger.warn "For stylesheets, use content_for :stylesheets"
|
6
|
-
logger.warn "For javascripts, use content_for :javascripts"
|
7
|
-
logger.warn "For meta tags, use content_for :meta"
|
8
|
-
logger.warn "This change is necessary so that we can deliver a performant experience for the user."
|
9
|
-
logger.warn "Called from: #{caller.detect{|c| c =~ %r{#{Rails.root.to_s}}}.inspect.to_s.split(':in').first}\n\n"
|
10
|
-
end
|
11
|
-
if (yielded_head_libraries = yield(:head)).present?
|
12
|
-
logger.warn "\n-- DEPRECATION WARNING --"
|
13
|
-
logger.warn "The use of 'content_for :head_libraries' is DEPRECATED for the frontend layouts."
|
14
|
-
logger.warn "Please use content_for :before_javascript_libraries or content_for :after_javascript_libraries instead."
|
15
|
-
logger.warn "This change is necessary so that we can deliver a performant experience for the user."
|
16
|
-
logger.warn "Called from: #{caller.detect{|c| c =~ %r{#{Rails.root.to_s}}}.inspect.to_s.split(':in').first}\n\n"
|
17
|
-
end
|
18
|
-
%>
|
19
|
-
<head>
|
20
|
-
<meta charset='<%= ::Refinery::Application.config.encoding %>' />
|
21
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
22
|
-
<title><%= browser_title(yield(:title)) %></title>
|
23
|
-
<%= raw "<meta name=\"description\" content=\"#{@meta.meta_description}\" />" if @meta.meta_description.present? -%>
|
24
|
-
<%= raw "<meta name=\"keywords\" content=\"#{@meta.meta_keywords}\">" if @meta.meta_keywords.present? -%>
|
25
|
-
<%= csrf_meta_tag if RefinerySetting.find_or_set(:authenticity_token_on_frontend, true)-%>
|
26
|
-
<%= yield :meta %>
|
27
|
-
|
28
|
-
<%= stylesheet_link_tag stylesheets_for_head(stylesheets||=%w(application formatting theme), theme ||= false),
|
29
|
-
:cache => ("cache/application" if Rails.root.writable? and
|
30
|
-
RefinerySetting.find_or_set(:use_resource_caching, true) and
|
31
|
-
request.env['HTTP_USER_AGENT'] !~ /MSIE/ and (theme ||= false).blank?) %>
|
32
|
-
<%= stylesheet_link_tag "home", :theme => theme if home_page? %>
|
33
|
-
|
34
|
-
<%= yield :stylesheets %>
|
35
|
-
<%= render :partial => '/shared/google_analytics' unless local_request? %>
|
36
|
-
|
37
|
-
<%= javascript_include_tag 'modernizr-min' %>
|
38
|
-
|
39
|
-
<% #TODO: REMOVE yielded_head and yielded_head_libraries and deprecation notice 0.9.9 <=> 1.0 %>
|
40
|
-
<%= yielded_head_libraries %>
|
41
|
-
<%= yielded_head %>
|
42
|
-
</head>
|
@@ -1,6 +0,0 @@
|
|
1
|
-
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
2
|
-
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
|
3
|
-
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
|
4
|
-
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
|
5
|
-
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
6
|
-
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="<%= ::I18n.locale %>" class="no-js"> <!--<![endif]-->
|
@@ -1,63 +0,0 @@
|
|
1
|
-
<% if RefinerySetting.find_or_set(:ie6_upgrade_message_enabled, true) -%>
|
2
|
-
<% unless admin? %>
|
3
|
-
<!--[if lte IE 6]>
|
4
|
-
<div id="ie6msg_wrapper">
|
5
|
-
<div id="ie6msg">
|
6
|
-
<h4>Did you know that your browser is out of date?</h4>
|
7
|
-
<div id='ie6message'>
|
8
|
-
<p>
|
9
|
-
To get the best possible experience using our website we recommend that you upgrade your browser to a newer version. The current version is
|
10
|
-
<a class="getie8" href="http://upgradeie.s3.amazonaws.com/eng/index.html">Internet Explorer 8</a>.
|
11
|
-
The upgrade is free. If you're using a PC at work you should contact your IT administrator.
|
12
|
-
</p>
|
13
|
-
<p>
|
14
|
-
If you want to you may also try some other popular and <strong>free</strong> Internet browsers like:<br/>
|
15
|
-
<a class="ie6expl" href="http://www.google.com/chrome" target='_blank'>Google Chrome</a>,
|
16
|
-
<a class="ie6expl" href="http://www.apple.com/safari/download/" target='_blank'>Safari</a>,
|
17
|
-
<a class="ie6expl" href="http://getfirefox.com" target='_blank'>Firefox</a> or
|
18
|
-
<a class="ie6expl" href="http://www.opera.com" target='_blank'>Opera</a>
|
19
|
-
</p>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
<![endif]-->
|
24
|
-
<% else %>
|
25
|
-
<!--[if lte IE 8]>
|
26
|
-
<div id='upgrade_wrapper'>
|
27
|
-
<h2>Want to have a better experience with Refinery?</h2>
|
28
|
-
<p>
|
29
|
-
To get the best possible experience using Refinery, we recommend that you switch your web browser.
|
30
|
-
</p>
|
31
|
-
<p>
|
32
|
-
There are a number of web browsers available that will give you a better experience and they are all available <strong>free of charge</strong>. Installing a new web browser will not remove Internet Explorer which you will still be able to use when you need to.
|
33
|
-
</p>
|
34
|
-
<p>
|
35
|
-
<ul>
|
36
|
-
<li>
|
37
|
-
<a class="ie6expl" href="http://www.google.com/chrome" target='_blank'>Google Chrome</a>
|
38
|
-
</li>
|
39
|
-
<li>
|
40
|
-
<a class="ie6expl" href="http://www.apple.com/safari/download/" target='_blank'>Apple Safari</a>
|
41
|
-
</li>
|
42
|
-
<li>
|
43
|
-
<a class="ie6expl" href="http://getfirefox.com" target='_blank'>Mozilla Firefox</a>
|
44
|
-
</li>
|
45
|
-
<li>
|
46
|
-
<a class="ie6expl" href="http://www.opera.com" target='_blank'>Opera</a>
|
47
|
-
</li>
|
48
|
-
</ul>
|
49
|
-
</p>
|
50
|
-
</div>
|
51
|
-
<![endif]-->
|
52
|
-
<% content_for :javascripts do %>
|
53
|
-
<script>
|
54
|
-
$(document).ready(function() {
|
55
|
-
$('#flash.flash_message:has("#upgrade_wrapper") #flash_close').click(function(e) {
|
56
|
-
e.preventDefault();
|
57
|
-
$.get('<%= admin_disable_upgrade_message_path %>');
|
58
|
-
});
|
59
|
-
});
|
60
|
-
</script>
|
61
|
-
<% end %>
|
62
|
-
<% end %>
|
63
|
-
<% end -%>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<%= yield :before_javascript_libraries -%>
|
2
|
-
<%= yield :javascript_libraries %>
|
3
|
-
<%= yield :after_javascript_libraries %>
|
4
|
-
<% if request.env['HTTP_USER_AGENT'] =~ /MSIE/ %>
|
5
|
-
<!--[if lt IE 7 ]>
|
6
|
-
<%= javascript_include_tag 'dd_belatedpng' %>
|
7
|
-
<script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script>
|
8
|
-
<![endif]-->
|
9
|
-
<% end %>
|
10
|
-
<%= yield :javascripts -%>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
dom_id ||= 'menu'
|
3
|
-
css ||= 'menu'
|
4
|
-
hide_children = RefinerySetting.find_or_set(:menu_hide_children, false) unless defined?(hide_children)
|
5
|
-
# Select top menu items unless 'roots' is supplied.
|
6
|
-
collection ||= @menu_pages.includes(:parts, :slugs)
|
7
|
-
if (roots ||= collection.select{|p| p.parent_id.nil?}).present?
|
8
|
-
# In order to match items that aren't shown in menu and highlight their associations.
|
9
|
-
# This can be supplied if the logic different in your case.
|
10
|
-
unless defined?(selected_item)
|
11
|
-
selected_item = collection.detect{|page| selected_page?(page)}
|
12
|
-
selected_item = @page if selected_item.nil?
|
13
|
-
end
|
14
|
-
sibling_count = roots.length - 1
|
15
|
-
-%>
|
16
|
-
<nav id='<%= dom_id %>' class='<%= %W(#{css} clearfix).join(' ') %>'>
|
17
|
-
<ul>
|
18
|
-
<%= render :partial => "/shared/menu_branch",
|
19
|
-
:collection => roots,
|
20
|
-
:locals => {
|
21
|
-
:hide_children => hide_children,
|
22
|
-
:sibling_count => sibling_count,
|
23
|
-
:collection => collection,
|
24
|
-
:selected_item => selected_item,
|
25
|
-
:apply_css => true #if you don't care about class='first' class='last' or class='selected' set apply_css to false for speed.
|
26
|
-
}
|
27
|
-
-%>
|
28
|
-
</ul>
|
29
|
-
</nav>
|
30
|
-
<% end -%>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
if !!local_assigns[:apply_css] and (classes = css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count||=nil, collection, selected_item ||= nil)).any?
|
3
|
-
css = "class='#{classes.join(' ')}'"
|
4
|
-
end
|
5
|
-
dom_id = ("id='item_#{menu_branch_counter}'" if menu_branch.parent_id.nil? and menu_branch.title.present?)
|
6
|
-
|
7
|
-
hide_children = (defined?(hide_children) && hide_children)
|
8
|
-
children = hide_children ? [] : collection.select { |p| p.parent_id == menu_branch.id && p.in_menu? }
|
9
|
-
-%>
|
10
|
-
<li<%= ['', css, dom_id].compact.join(' ').gsub(/\ *$/, '') %>>
|
11
|
-
<%= link_to menu_branch.title, menu_branch.url -%>
|
12
|
-
<% if children.present? -%>
|
13
|
-
<ul class='clearfix'>
|
14
|
-
<%=
|
15
|
-
render :partial => "/shared/menu_branch",
|
16
|
-
:collection => children,
|
17
|
-
:locals => {
|
18
|
-
:apply_css => local_assigns[:apply_css],
|
19
|
-
:hide_children => hide_children,
|
20
|
-
:collection => collection,
|
21
|
-
:selected_item => selected_item,
|
22
|
-
:sibling_count => children.size - 1
|
23
|
-
} -%>
|
24
|
-
</ul>
|
25
|
-
<% end -%>
|
26
|
-
</li>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<% flash.each do |key, value| %>
|
2
|
-
<div id='flash' class="flash flash_<%= key %>" style='visibility: hidden;' >
|
3
|
-
<%= value %>
|
4
|
-
<% if key.to_s == "message" %>
|
5
|
-
<%= link_to t('.close_this_message'), "", {:id => "flash_close"} %>
|
6
|
-
<% else %>
|
7
|
-
<%= link_to t('.close'), "", {:id => "flash_close"} %>
|
8
|
-
<% end %>
|
9
|
-
</div>
|
10
|
-
<% end %>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<% if refinery_user? %>
|
2
|
-
<% unless admin? # all required JS included by backend. %>
|
3
|
-
<% content_for :stylesheets, stylesheet_link_tag('refinery/site_bar') unless !!local_assigns[:exclude_css] %>
|
4
|
-
<%= yield(:stylesheets) unless local_assigns[:head] or local_assigns[:exclude_css] %>
|
5
|
-
<% end -%>
|
6
|
-
<div id='site_bar'>
|
7
|
-
<div id='site_bar_content' class='clearfix'>
|
8
|
-
<div id='editor_switch'>
|
9
|
-
<%= site_bar_switch_link -%>
|
10
|
-
</div>
|
11
|
-
<%= link_to image_tag("#{"http://refinerycms.com/images/" unless local_request?}refinery/logo-site-bar.png", :alt => "Refinery (tm) Content Manager"),
|
12
|
-
'http://refinerycms.com',
|
13
|
-
:target => '_blank',
|
14
|
-
:id => 'site_bar_refinery_cms_logo' %>
|
15
|
-
|
16
|
-
<div id='site_bar_branding'>
|
17
|
-
<span id='site_bar_company_name'>
|
18
|
-
<%= RefinerySetting.find_or_set(:site_name, 'Company Name') %>
|
19
|
-
</span>
|
20
|
-
|
21
|
-
<%= link_to t('.log_out'), destroy_user_session_path, :id => 'logout' %>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
<% end %>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<% if object.errors.any? %>
|
2
|
-
<div class="errorExplanation" id="errorExplanation">
|
3
|
-
<p><%= t('.problems_in_following_fields') %>:</p>
|
4
|
-
<ul>
|
5
|
-
<% unless defined?(include_object_name) and include_object_name %>
|
6
|
-
<% object.errors.each do |key, value| %>
|
7
|
-
<li><%= value %></li>
|
8
|
-
<% end %>
|
9
|
-
<% else %>
|
10
|
-
<% object.errors.full_messages.each do |value| %>
|
11
|
-
<li><%= value %></li>
|
12
|
-
<% end %>
|
13
|
-
<% end %>
|
14
|
-
</ul>
|
15
|
-
</div>
|
16
|
-
<% end %>
|
@@ -1,77 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
unless (hide_submit ||= false)
|
3
|
-
submit_button_text ||= t('.save')
|
4
|
-
submit_button_id ||= "submit_button"
|
5
|
-
submit_button_title ||= nil
|
6
|
-
end
|
7
|
-
|
8
|
-
unless defined?(hide_cancel).presence
|
9
|
-
hide_cancel = from_dialog?
|
10
|
-
end
|
11
|
-
|
12
|
-
unless hide_cancel
|
13
|
-
cancel_button_text ||= t('.cancel')
|
14
|
-
unless defined?(cancel_title)
|
15
|
-
cancel_title = t('.cancel_lose_changes')
|
16
|
-
end
|
17
|
-
cancel_button_id ||= "cancel_button"
|
18
|
-
|
19
|
-
cancel_url ||= (((back = url_for(:back)).include?('javascript') or action_name =~ /^(create|update)$/) ? send("admin_#{f.object_name.to_s.pluralize}_url") : back)
|
20
|
-
end
|
21
|
-
|
22
|
-
continue_editing = defined?(continue_editing) ? continue_editing : (f.object.present? and f.object.persisted?)
|
23
|
-
|
24
|
-
unless defined?(hide_delete).presence
|
25
|
-
hide_delete = (from_dialog? or
|
26
|
-
f.object.nil? or (f.object.respond_to?(:persisted?) ? !f.object.persisted? : f.object.new_record?) or
|
27
|
-
(f.object.respond_to?(:deletable?) && !f.object.deletable?))
|
28
|
-
end
|
29
|
-
|
30
|
-
unless hide_delete
|
31
|
-
delete_button_text ||= t('.delete')
|
32
|
-
delete_title ||= nil
|
33
|
-
delete_confirmation ||= nil
|
34
|
-
delete_button_id ||= "delete_button"
|
35
|
-
delete_url ||= eval("admin_#{f.object_name}_url(#{f.object.id})")
|
36
|
-
end
|
37
|
-
-%>
|
38
|
-
<% if from_dialog? %>
|
39
|
-
<input type='hidden' name='modal' value='true' />
|
40
|
-
<input type='hidden' name='dialog' value='true' />
|
41
|
-
<% end %>
|
42
|
-
|
43
|
-
<div class='form-actions<%= ' form-actions-dialog' if from_dialog? %>'>
|
44
|
-
<div class='form-actions-left'>
|
45
|
-
<%= submit_tag submit_button_text,
|
46
|
-
:id => submit_button_id,
|
47
|
-
:name => nil,
|
48
|
-
:class => "wymupdate button",
|
49
|
-
:tooltip => submit_button_title unless hide_submit %>
|
50
|
-
|
51
|
-
<%= render :partial => "/shared/admin/continue_editing", :locals => {:f => f} if continue_editing -%>
|
52
|
-
<%= hidden_field_tag :continue_editing, false if continue_editing %>
|
53
|
-
|
54
|
-
<%= link_to(cancel_button_text,
|
55
|
-
cancel_url,
|
56
|
-
:title => cancel_title,
|
57
|
-
:id => cancel_button_id,
|
58
|
-
:class => "close_dialog button") unless hide_cancel %>
|
59
|
-
</div>
|
60
|
-
<div class='form-actions-right'>
|
61
|
-
<%= link_to(delete_button_text,
|
62
|
-
delete_url,
|
63
|
-
:title => delete_title,
|
64
|
-
:id => delete_button_id,
|
65
|
-
:method => :delete,
|
66
|
-
:confirm => delete_confirmation,
|
67
|
-
:class => "button confirm-delete") unless hide_delete %>
|
68
|
-
|
69
|
-
<%= will_paginate paginate[:collection],
|
70
|
-
:previous_label => paginate[:previous_label],
|
71
|
-
:next_label => paginate[:next_label],
|
72
|
-
:renderer => Refinery::LinkRenderer,
|
73
|
-
:url => paginate[:url] if ((paginate ||= {}).length > 0 &&
|
74
|
-
paginate.keys.include?(:collection) &&
|
75
|
-
paginate.keys.include?(:url)) %>
|
76
|
-
</div>
|
77
|
-
</div>
|
@@ -1,60 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
description ||= 'image'
|
3
|
-
thumbnail ||= 'medium'
|
4
|
-
toggle_image_display ||= false
|
5
|
-
randomiser = rand(Time.now.yesterday.to_i * Time.now.to_i)
|
6
|
-
current_image_link_href = insert_admin_images_url(:dialog => true, :callback => "image_picker_#{randomiser}_changed",
|
7
|
-
:width => 866, :height => 510)
|
8
|
-
current_image_title = t('.change', :what => description.titleize)
|
9
|
-
-%>
|
10
|
-
<div id='image_picker_container_<%= randomiser %>'>
|
11
|
-
<%= link_to t('.show'), '', :class => "current_image_toggler" if toggle_image_display %>
|
12
|
-
<%= f.hidden_field field, :class => "current_image_id" -%>
|
13
|
-
|
14
|
-
<div class='current_image_container'<%= " style='display: none'" if toggle_image_display %> style="margin-top: 10px;">
|
15
|
-
<a class='current_image_link dialog' href="<%= current_image_link_href %>" style='border: 0px' title='<%= current_image_title %>' name='<%= current_image_title %>'>
|
16
|
-
<% unless image.nil? -%>
|
17
|
-
<%= image_fu image, ::Image.user_image_sizes[thumbnail.to_sym],
|
18
|
-
:class => "brown_border",
|
19
|
-
:class => "current_picked_image" %>
|
20
|
-
<% else -%>
|
21
|
-
<img class="current_picked_image" src="" alt="" style='display: none' />
|
22
|
-
<% end -%>
|
23
|
-
<span class='no_picked_image_selected' <%= "style='display: none;'" if image.present? %>>
|
24
|
-
<%= t('.none_selected', :what => t('.' + description )) %>
|
25
|
-
</span>
|
26
|
-
</a>
|
27
|
-
<br/>
|
28
|
-
<%= link_to t('.remove_current', :what => t('.' + description )), "#",
|
29
|
-
:class => "remove_picked_image",
|
30
|
-
:style => "#{"display:none;" if image.nil?}" %>
|
31
|
-
</div>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
<% content_for :javascripts do -%>
|
35
|
-
<script>
|
36
|
-
var image_picker_<%= randomiser %> = null;
|
37
|
-
$(document).ready(function(e) {
|
38
|
-
image_picker_<%= randomiser %> = image_picker.init({
|
39
|
-
thumbnail: '<%= thumbnail.html_safe %>'
|
40
|
-
, image_toggler: '<%= toggle_image_display ? ".current_image_toggler" : "null" %>'
|
41
|
-
, description: '<%= description %>'
|
42
|
-
, field: '.current_image_id'
|
43
|
-
, image_display: '.current_picked_image'
|
44
|
-
, no_image_message: '.no_picked_image_selected'
|
45
|
-
, remove_image_button: '.remove_picked_image'
|
46
|
-
, picker_container: '#image_picker_container_<%= randomiser %>'
|
47
|
-
, image_container: '.current_image_container'
|
48
|
-
, image_link: '.current_image_link'
|
49
|
-
});
|
50
|
-
});
|
51
|
-
|
52
|
-
image_picker_<%= randomiser %>_changed = function(args){
|
53
|
-
$.proxy(image_picker_<%= randomiser %>.changed, {
|
54
|
-
container: '#image_picker_container_<%= randomiser %>'
|
55
|
-
, picker: image_picker_<%= randomiser %>
|
56
|
-
, image: args
|
57
|
-
})();
|
58
|
-
};
|
59
|
-
</script>
|
60
|
-
<% end %>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<% content_for :after_javascript_libraries,
|
2
|
-
javascript_include_tag('refinery/nestedsortables.js',
|
3
|
-
'refinery/serializelist.js') -%>
|
4
|
-
<% content_for :javascripts do %>
|
5
|
-
<script>
|
6
|
-
$(document).ready(function(){
|
7
|
-
list_reorder.update_url = '<%= update_url ||= url_for(:action => "update_positions") %>';
|
8
|
-
list_reorder.sortable_list = $('#<%= list_id ||= "sortable_list" %>');
|
9
|
-
list_reorder.tree = <%= tree %>;
|
10
|
-
list_reorder.init();
|
11
|
-
});
|
12
|
-
</script>
|
13
|
-
<% end %>
|
@@ -1,66 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
insert_text = "<span id='no_resource_selected' class='nothing_selected' #{"style='display: none;'" if resource.present?}>
|
3
|
-
#{t('.no_resource_selected')}
|
4
|
-
</span>".html_safe
|
5
|
-
insert_link = insert_admin_resources_url({
|
6
|
-
:dialog => true,
|
7
|
-
:update_resource => 'current_resource',
|
8
|
-
:update_text => 'current_resource_text',
|
9
|
-
:callback => 'resource_changed',
|
10
|
-
:field => [f.object_name, field].join('_'),
|
11
|
-
:current_link => "#{resource.url if resource.present?}",
|
12
|
-
:height => 480
|
13
|
-
})
|
14
|
-
%>
|
15
|
-
<%= f.hidden_field field %>
|
16
|
-
<div>
|
17
|
-
<%= link_to insert_text, insert_link,
|
18
|
-
:name => t('.name'),
|
19
|
-
:id => "current_resource_link"
|
20
|
-
%>
|
21
|
-
<div id='current_resource_container' <%= "style='display:none'" unless resource.present? %>>
|
22
|
-
<span id='current_resource_tag'><%= t('.current') %>:</span>
|
23
|
-
<span id='current_resource_text'>
|
24
|
-
<%= "#{resource.title} (#{resource.file_name})" if resource.present? %>
|
25
|
-
</span>
|
26
|
-
<br/>
|
27
|
-
<%= link_to "#{refinery_icon_tag("page_white_put.png")}
|
28
|
-
#{t('.download_current')}
|
29
|
-
(<em>#{t('.opens_in_new_window')}</em>)".html_safe,
|
30
|
-
"#{resource.url if resource.present?}",
|
31
|
-
:id => "current_resource",
|
32
|
-
:target => "_blank" %>
|
33
|
-
</div>
|
34
|
-
<br/>
|
35
|
-
<%= link_to t('.remove_current'), "",
|
36
|
-
:id => "remove_resource",
|
37
|
-
:style => "#{"display:none;" unless resource.present?}" %>
|
38
|
-
</div>
|
39
|
-
|
40
|
-
<% content_for :javascripts do %>
|
41
|
-
<script>
|
42
|
-
resource_changed = function(callback_args) {
|
43
|
-
$('#remove_resource').show();
|
44
|
-
$('#current_resource_container').show();
|
45
|
-
$('#no_resource_selected').hide();
|
46
|
-
$('iframe#dialog_iframe').dialog("close");
|
47
|
-
$('iframe#dialog_iframe').remove().parents(".ui-dialog").remove();
|
48
|
-
$('#<%= f.object_name %>_<%= field %>').val(callback_args.id);
|
49
|
-
$('#current_resource_link').attr('href', $('#current_resource_link').attr('href').replace(/current_link=([^&])*&/, "current_link=" + callback_args.href + "&"));
|
50
|
-
$("#current_resource").attr('href', callback_args.href);
|
51
|
-
$('#current_resource_text').html(callback_args.html);
|
52
|
-
}
|
53
|
-
|
54
|
-
$(document).ready(function(e) {
|
55
|
-
$('#remove_resource').click(function(e) {
|
56
|
-
$('#<%= f.object_name %>_<%= field %>').val("");
|
57
|
-
$('#current_resource_container').hide();
|
58
|
-
$('#current_resource_text').html('');
|
59
|
-
$('#no_resource_selected').show();
|
60
|
-
$('#current_resource_link').attr('href', $('#current_resource_link').attr('href').replace(/current_link=([^&])*&/, "current_link=&"));
|
61
|
-
$(this).hide();
|
62
|
-
e.preventDefault();
|
63
|
-
});
|
64
|
-
});
|
65
|
-
</script>
|
66
|
-
<% end %>
|