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,89 +0,0 @@
|
|
1
|
-
module Admin
|
2
|
-
class ResourcesController < Admin::BaseController
|
3
|
-
|
4
|
-
crudify :resource, :order => "updated_at DESC"
|
5
|
-
before_filter :init_dialog
|
6
|
-
|
7
|
-
def new
|
8
|
-
@resource = Resource.new if @resource.nil?
|
9
|
-
|
10
|
-
@url_override = admin_resources_url(:dialog => from_dialog?)
|
11
|
-
end
|
12
|
-
|
13
|
-
def create
|
14
|
-
@resources = Resource.create_resources(params[:resource])
|
15
|
-
@resource = @resources.detect { |r| !r.valid? }
|
16
|
-
|
17
|
-
unless params[:insert]
|
18
|
-
if @resources.all?(&:valid?)
|
19
|
-
flash.notice = t('created', :scope => 'refinery.crudify', :what => "'#{@resources.collect{|r| r.title}.join("', '")}'")
|
20
|
-
unless from_dialog?
|
21
|
-
redirect_to :action => 'index'
|
22
|
-
else
|
23
|
-
render :text => "<script>parent.window.location = '#{admin_resources_url}';</script>"
|
24
|
-
end
|
25
|
-
else
|
26
|
-
self.new # important for dialogs
|
27
|
-
render :action => 'new'
|
28
|
-
end
|
29
|
-
else
|
30
|
-
if @resources.all?(&:valid?)
|
31
|
-
@resource_id = @resources.detect(&:persisted?).id
|
32
|
-
@resource = nil
|
33
|
-
end
|
34
|
-
|
35
|
-
insert
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
def index
|
40
|
-
search_all_resources if searching?
|
41
|
-
paginate_all_resources
|
42
|
-
|
43
|
-
render :partial => 'resources' if request.xhr?
|
44
|
-
end
|
45
|
-
|
46
|
-
def insert
|
47
|
-
self.new if @resource.nil?
|
48
|
-
|
49
|
-
@url_override = admin_resources_url(:dialog => from_dialog?, :insert => true)
|
50
|
-
|
51
|
-
if params[:conditions].present?
|
52
|
-
extra_condition = params[:conditions].split(',')
|
53
|
-
|
54
|
-
extra_condition[1] = true if extra_condition[1] == "true"
|
55
|
-
extra_condition[1] = false if extra_condition[1] == "false"
|
56
|
-
extra_condition[1] = nil if extra_condition[1] == "nil"
|
57
|
-
paginate_resources({extra_condition[0].to_sym => extra_condition[1]})
|
58
|
-
else
|
59
|
-
paginate_resources
|
60
|
-
end
|
61
|
-
render :action => "insert"
|
62
|
-
end
|
63
|
-
|
64
|
-
protected
|
65
|
-
|
66
|
-
def init_dialog
|
67
|
-
@app_dialog = params[:app_dialog].present?
|
68
|
-
@field = params[:field]
|
69
|
-
@update_resource = params[:update_resource]
|
70
|
-
@update_text = params[:update_text]
|
71
|
-
@thumbnail = params[:thumbnail]
|
72
|
-
@callback = params[:callback]
|
73
|
-
@conditions = params[:conditions]
|
74
|
-
@current_link = params[:current_link]
|
75
|
-
end
|
76
|
-
|
77
|
-
def restrict_controller
|
78
|
-
super unless action_name == 'insert'
|
79
|
-
end
|
80
|
-
|
81
|
-
def paginate_resources(conditions={})
|
82
|
-
@resources = Resource.paginate :page => (@paginate_page_number ||= params[:page]),
|
83
|
-
:conditions => conditions,
|
84
|
-
:order => 'created_at DESC',
|
85
|
-
:per_page => Resource.per_page(from_dialog?)
|
86
|
-
end
|
87
|
-
|
88
|
-
end
|
89
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
class Resource < ActiveRecord::Base
|
2
|
-
|
3
|
-
# What is the max resource size a user can upload
|
4
|
-
MAX_SIZE_IN_MB = 50
|
5
|
-
|
6
|
-
resource_accessor :file
|
7
|
-
|
8
|
-
validates :file, :presence => {},
|
9
|
-
:length => { :maximum => MAX_SIZE_IN_MB.megabytes }
|
10
|
-
|
11
|
-
# Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
|
12
|
-
acts_as_indexed :fields => [:file_name, :title, :type_of_content]
|
13
|
-
|
14
|
-
# when a dialog pops up with resources, how many resources per page should there be
|
15
|
-
PAGES_PER_DIALOG = 12
|
16
|
-
|
17
|
-
# when listing resources out in the admin area, how many resources should show per page
|
18
|
-
PAGES_PER_ADMIN_INDEX = 20
|
19
|
-
|
20
|
-
delegate :ext, :size, :mime_type, :url, :to => :file
|
21
|
-
|
22
|
-
# used for searching
|
23
|
-
def type_of_content
|
24
|
-
mime_type.split("/").join(" ")
|
25
|
-
end
|
26
|
-
|
27
|
-
# Returns a titleized version of the filename
|
28
|
-
# my_file.pdf returns My File
|
29
|
-
def title
|
30
|
-
CGI::unescape(file_name.to_s).gsub(/\.\w+$/, '').titleize
|
31
|
-
end
|
32
|
-
|
33
|
-
class << self
|
34
|
-
# How many resources per page should be displayed?
|
35
|
-
def per_page(dialog = false)
|
36
|
-
dialog ? PAGES_PER_DIALOG : PAGES_PER_ADMIN_INDEX
|
37
|
-
end
|
38
|
-
|
39
|
-
def create_resources(params)
|
40
|
-
resources = []
|
41
|
-
|
42
|
-
unless params.present? and params[:file].is_a?(Array)
|
43
|
-
resources << create(params)
|
44
|
-
else
|
45
|
-
params[:file].each do |resource|
|
46
|
-
resources << create(:file => resource)
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
resources
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<div id='existing_resource_area' class='dialog_area' <%= "style='display:none;'" if @resource.errors.any? %>>
|
2
|
-
<input type='hidden' name='linked_resource' id='linked_resource' />
|
3
|
-
<div id='existing_resource_area_content' class='clearfix'>
|
4
|
-
<div id='pages_list'>
|
5
|
-
<ul class='link_list'>
|
6
|
-
<% @resources.each do |resource| -%>
|
7
|
-
<% resource_linked = (resource.url == params[:current_link]) if params[:current_link].present? %>
|
8
|
-
<li<%= " class='linked'" if resource_linked %>>
|
9
|
-
<%= link_to "#{resource.title} (#{resource.file_name})", resource.url,
|
10
|
-
:title => t('.link_to_file'),
|
11
|
-
:rel => resource.title,
|
12
|
-
:class => 'page_link',
|
13
|
-
:id => "resource_#{resource.id}" %>
|
14
|
-
</li>
|
15
|
-
<% end %>
|
16
|
-
</ul>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<%= render :partial => "/shared/admin/form_actions",
|
21
|
-
:locals => {
|
22
|
-
:f => nil,
|
23
|
-
:cancel_url => admin_resources_url,
|
24
|
-
:submit_button_text => t('.button_text'),
|
25
|
-
:hide_cancel => true,
|
26
|
-
:hide_delete => true,
|
27
|
-
:paginate => {
|
28
|
-
:collection => @resources,
|
29
|
-
:url => {:controller => "/admin/resources", :action => "insert", :dialog => from_dialog? }
|
30
|
-
}
|
31
|
-
} if @app_dialog or @resources.any? %>
|
32
|
-
</div>
|
@@ -1,55 +0,0 @@
|
|
1
|
-
<%= form_for [:admin, @resource], :url => @url_override || @url,
|
2
|
-
:html => {:multipart => true} do |f| -%>
|
3
|
-
|
4
|
-
<%= render :partial => "/shared/admin/error_messages",
|
5
|
-
:locals => {
|
6
|
-
:object => @resource,
|
7
|
-
:include_object_name => false
|
8
|
-
} %>
|
9
|
-
|
10
|
-
<div class='field'>
|
11
|
-
<% if action_name =~ /(edit)|(update)/ %>
|
12
|
-
<%= link_to t('.download_current'), @resource.url,
|
13
|
-
:title => @resource.title %>
|
14
|
-
<em><%= t('.or')%></em><%= t('.replace') %>
|
15
|
-
<%= f.file_field :file %>
|
16
|
-
<% else %>
|
17
|
-
<% # we must only hint at multiple when it's a *new* record otherwise update fails. %>
|
18
|
-
<%= f.file_field :file, :multiple => (true unless @resource.persisted?) %>
|
19
|
-
<% end %>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<div class='field'>
|
23
|
-
<label>
|
24
|
-
<%= t('.maximum_file_size', :megabytes => Resource::MAX_SIZE_IN_MB) %>
|
25
|
-
</label>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
<%= render :partial => "/shared/admin/form_actions",
|
29
|
-
:locals => {
|
30
|
-
:f => f,
|
31
|
-
:continue_editing => false,
|
32
|
-
:hide_cancel => (@app_dialog or action_name == "insert" or from_dialog?),
|
33
|
-
:delete_title => t('delete', :scope => 'admin.resources'),
|
34
|
-
:delete_confirmation => (t('message', :scope => 'shared.admin.delete',
|
35
|
-
:title => @resource.title) if @resource.persisted?)
|
36
|
-
} %>
|
37
|
-
|
38
|
-
<% if @app_dialog -%>
|
39
|
-
<input type='hidden' name='app_dialog' value='<%= @app_dialog %>' />
|
40
|
-
<input type='hidden' name='field' value='<%= @field %>' />
|
41
|
-
<input type='hidden' name='update_resource' value='<%= @update_resource %>' />
|
42
|
-
<input type='hidden' name='update_text' value='<%= @update_text %>' />
|
43
|
-
<input type='hidden' name='thumbnail' value='<%= @thumbnail %>' />
|
44
|
-
<input type='hidden' name='callback' value='<%= @callback %>' />
|
45
|
-
<input type='hidden' name='conditions' value='<%= @conditions %>' />
|
46
|
-
<input type='hidden' name='current_link' value='<%= @current_link %>' />
|
47
|
-
<% end -%>
|
48
|
-
<% end -%>
|
49
|
-
<% content_for :javascripts do %>
|
50
|
-
<script>
|
51
|
-
$(document).ready(function(){
|
52
|
-
link_dialog.init();
|
53
|
-
});
|
54
|
-
</script>
|
55
|
-
<% end if from_dialog? %>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<li class='clearfix record <%= cycle("on", "on-hover") %>'>
|
2
|
-
<span class='title <%= resource.ext %>'>
|
3
|
-
<%= resource.title %>.<%= resource.ext %>
|
4
|
-
<span class="preview">- <%= number_to_human_size(resource.size) %></span>
|
5
|
-
</span>
|
6
|
-
<span class='actions'>
|
7
|
-
<%= link_to refinery_icon_tag('page_white_put.png'), resource.url,
|
8
|
-
:title => t('.download', :size => number_to_human_size(resource.size)) %>
|
9
|
-
<%= link_to refinery_icon_tag('application_edit.png'), edit_admin_resource_url(resource),
|
10
|
-
:title => t('edit', :scope => 'admin.resources') %>
|
11
|
-
<%= link_to refinery_icon_tag('delete.png'), admin_resource_path(resource),
|
12
|
-
:class => "cancel confirm-delete",
|
13
|
-
:title => t('delete', :scope => 'admin.resources'),
|
14
|
-
:confirm => t('message', :scope => 'shared.admin.delete', :title => resource.title),
|
15
|
-
:method => :delete %>
|
16
|
-
</span>
|
17
|
-
</li>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<%= will_paginate @resources %>
|
2
|
-
<div class="<%= ['clearfix', 'pagination_frame', pagination_css_class].compact.join(' ') %>">
|
3
|
-
<% group_by_date(@resources).each do |container|
|
4
|
-
date = Date.parse((resource_group = container.last).first.created_at.to_s) %>
|
5
|
-
<h3><%= l(date, :format => :long ) %></h3>
|
6
|
-
<ul>
|
7
|
-
<%= render :partial => "resource", :collection => resource_group %>
|
8
|
-
</ul>
|
9
|
-
<% end %>
|
10
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render :partial => "form" -%>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<div id='records' class='files'>
|
2
|
-
<% if searching? %>
|
3
|
-
<h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
|
4
|
-
<% end %>
|
5
|
-
<% if @resources.any? %>
|
6
|
-
<div class='pagination_container'>
|
7
|
-
<%= render :partial => 'resources' %>
|
8
|
-
</div>
|
9
|
-
<% else %>
|
10
|
-
<p>
|
11
|
-
<% unless searching? %>
|
12
|
-
<strong><%= t('.no_files_yet') %></strong>
|
13
|
-
<% else %>
|
14
|
-
<%= t('no_results', :scope => 'shared.admin.search') %>
|
15
|
-
<% end %>
|
16
|
-
</p>
|
17
|
-
<% end %>
|
18
|
-
</div>
|
19
|
-
<div id='actions'>
|
20
|
-
<ul>
|
21
|
-
<li>
|
22
|
-
<%= render :partial => "/shared/admin/search", :locals => {:url => admin_resources_url} %>
|
23
|
-
</li>
|
24
|
-
<li>
|
25
|
-
<%= link_to t('.upload_new'), new_admin_resource_url(:dialog => true,
|
26
|
-
:width => 600,
|
27
|
-
:height => 300),
|
28
|
-
:class => "add_icon" %>
|
29
|
-
</li>
|
30
|
-
</ul>
|
31
|
-
</div>
|
@@ -1,54 +0,0 @@
|
|
1
|
-
<% user_can_modify_resources = Refinery::Plugins.active.names.include?("refinery_files") %>
|
2
|
-
<div class='clearfix'>
|
3
|
-
<div id='dialog_menu_left'>
|
4
|
-
<% if (any_resources = @resources.any?) %>
|
5
|
-
<span id='existing_resource_radio' class='radio<%= " selected_radio" if @resource.errors.empty? %>'>
|
6
|
-
<input type='radio' name='resource_type' value='existing_resource' id='resource_type_existing' <%= "checked='true'" if @resource.errors.empty? %> />
|
7
|
-
<label for='resource_type_existing' class='stripped'>
|
8
|
-
<%= t('.existing') %>
|
9
|
-
</label>
|
10
|
-
</span>
|
11
|
-
<% end %>
|
12
|
-
<% if user_can_modify_resources %>
|
13
|
-
<span id='upload_resource_radio' class='radio<%= " selected_radio" if @resource.errors.any? or @resources.empty? %>'>
|
14
|
-
<input type='radio' name='resource_type' value='upload_resource' id='resource_type_upload' <%= "checked='true'" if @resources.empty? or @resource.errors.any? %> />
|
15
|
-
<label for='resource_type_upload' class='stripped'>
|
16
|
-
<%= t('.new') %>
|
17
|
-
</label>
|
18
|
-
</span>
|
19
|
-
<% end %>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<div id='dialog_main'>
|
23
|
-
<% if any_resources or user_can_modify_resources %>
|
24
|
-
<%= render :partial => 'existing_resource' if any_resources %>
|
25
|
-
|
26
|
-
<% if user_can_modify_resources %>
|
27
|
-
<div id='upload_resource_area' class='dialog_area' <%= "style='display:none;'" if any_resources and @resource.errors.empty? %>>
|
28
|
-
<%= render :partial => "form", :locals => {:insert => true} %>
|
29
|
-
</div>
|
30
|
-
<% end %>
|
31
|
-
<% else %>
|
32
|
-
<% flash.now[:error] = t('.no_files') %>
|
33
|
-
<%= render :partial => "/shared/admin/form_actions",
|
34
|
-
:locals => {
|
35
|
-
:f => nil,
|
36
|
-
:cancel_url => '',
|
37
|
-
:hide_cancel => false,
|
38
|
-
:hide_delete => true,
|
39
|
-
:hide_submit => true,
|
40
|
-
:cancel_button_text => t('close', :scope => 'shared.admin.form_actions'),
|
41
|
-
:cancel_title => nil
|
42
|
-
} %>
|
43
|
-
<% end %>
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<% content_for :javascripts do %>
|
48
|
-
<script>
|
49
|
-
$(document).ready(function(){
|
50
|
-
link_dialog.init();
|
51
|
-
resource_picker.init(<%= @callback.present? ? "self.parent.#{@callback}" : "null" %>);
|
52
|
-
});
|
53
|
-
</script>
|
54
|
-
<% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render :partial => "form" -%>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
cs:
|
2
|
-
plugins:
|
3
|
-
refinery_files:
|
4
|
-
title: Soubory
|
5
|
-
description: Správa souborů
|
6
|
-
admin:
|
7
|
-
resources:
|
8
|
-
delete: Smazat tento soubor
|
9
|
-
edit: Upravit tento soubor
|
10
|
-
form:
|
11
|
-
download_current: Stáhnout vybraný soubor
|
12
|
-
or: nebo
|
13
|
-
replace: " nahradit tímto..."
|
14
|
-
maximum_file_size: Maximální velikost souboru je %{megabytes} MB.
|
15
|
-
resource:
|
16
|
-
download: Stáhnout soubor (%{size})
|
17
|
-
index:
|
18
|
-
upload_new: Nahrát nový soubor
|
19
|
-
no_files_yet: Zatím nebyly nahrány žádné soubory.
|
20
|
-
insert:
|
21
|
-
existing: Existující soubor
|
22
|
-
new: Nový soubor
|
23
|
-
no_files: Nejsou zde žádné soubory.
|
24
|
-
existing_resource:
|
25
|
-
link_to_file: Odkaz na tento soubor
|
26
|
-
button_text: Vložit
|
27
|
-
activerecord:
|
28
|
-
models:
|
29
|
-
resource: soubor
|
30
|
-
errors:
|
31
|
-
models:
|
32
|
-
resource:
|
33
|
-
blank: Musíte vybrat soubor pro nahrání
|
34
|
-
too_long: Maximální velikost souboru je %{count}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
da:
|
2
|
-
plugins:
|
3
|
-
refinery_files:
|
4
|
-
title: Filer
|
5
|
-
description: Upload og link til filer
|
6
|
-
admin:
|
7
|
-
resources:
|
8
|
-
delete: Slet fil
|
9
|
-
edit: Redigér fil
|
10
|
-
form:
|
11
|
-
download_current: Download filen
|
12
|
-
or: eller
|
13
|
-
replace: " erstat den med denne fil..."
|
14
|
-
maximum_file_size: Filen må maksimalt fylde %{megabytes} megabytes.
|
15
|
-
resource:
|
16
|
-
download: Download fil (%{size})
|
17
|
-
index:
|
18
|
-
upload_new: Tilføj en ny fil
|
19
|
-
no_files_yet: Der er ingen filer endnu. Klik på "Tilføj en ny fil" for at oprette den første.
|
20
|
-
insert:
|
21
|
-
existing: Eksisterende fil
|
22
|
-
new: Ny fil
|
23
|
-
no_files: Der er ingen filer endnu. Klik "Upload en ny fil" for at tilføje den første.
|
24
|
-
existing_resource:
|
25
|
-
link_to_file: Link til denne fil
|
26
|
-
button_text: Indsæt
|
27
|
-
activerecord:
|
28
|
-
models:
|
29
|
-
resource: fil
|
30
|
-
errors:
|
31
|
-
models:
|
32
|
-
resource:
|
33
|
-
blank: Du skal vælge en fil, der skal uploades
|
34
|
-
too_long: Filer må højest være på %{count}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
de:
|
2
|
-
plugins:
|
3
|
-
refinery_files:
|
4
|
-
title: Dateien
|
5
|
-
description: Dateien hochladen und verlinken
|
6
|
-
admin:
|
7
|
-
resources:
|
8
|
-
delete: Diese Datei für immer löschen
|
9
|
-
edit: Diese Datei bearbeiten
|
10
|
-
form:
|
11
|
-
download_current: Download der aktuellen Datei
|
12
|
-
or: oder
|
13
|
-
replace: ", mit dieser ersetzen..."
|
14
|
-
maximum_file_size: "Die maximale Dateigröße beträgt %{megabytes} Megabyte."
|
15
|
-
resource:
|
16
|
-
download: Diese Datei herunterladen (%{size})
|
17
|
-
index:
|
18
|
-
upload_new: Neue Datei Hochladen
|
19
|
-
no_files_yet: Keine Dateien vorhanden. Klicken Sie auf "Neue Datei Hochladen" um Ihre erste Datei hinzuzufügen.
|
20
|
-
insert:
|
21
|
-
existing: Vorhandene Datei
|
22
|
-
new: Neue Datei
|
23
|
-
no_files: Keine Dateien vorhanden.
|
24
|
-
existing_resource:
|
25
|
-
link_to_file: Link zu dieser Datei
|
26
|
-
button_text: Einfügen
|
27
|
-
activerecord:
|
28
|
-
models:
|
29
|
-
resource: Datei
|
30
|
-
errors:
|
31
|
-
models:
|
32
|
-
resource:
|
33
|
-
blank: Sie müssen eine Datei zum Hochladen angeben
|
34
|
-
too_long: Die Dateien sollten kleiner als %{count} sein
|