refinerycms-core 2.1.5 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/refinery/add.png +0 -0
- data/app/assets/images/refinery/admin_bg.png +0 -0
- data/app/assets/images/refinery/ajax-loader.gif +0 -0
- data/app/assets/images/refinery/branch-end.gif +0 -0
- data/app/assets/images/refinery/branch.gif +0 -0
- data/app/assets/images/refinery/cross.png +0 -0
- data/app/assets/images/refinery/dialogLoadingAnimation.gif +0 -0
- data/app/assets/images/refinery/header_background.png +0 -0
- data/app/assets/images/refinery/hover-gradient.jpg +0 -0
- data/app/assets/images/refinery/icons/accept.png +0 -0
- data/app/assets/images/refinery/icons/add.png +0 -0
- data/app/assets/images/refinery/icons/ajax-loader.gif +0 -0
- data/app/assets/images/refinery/icons/application_edit.png +0 -0
- data/app/assets/images/refinery/icons/application_go.png +0 -0
- data/app/assets/images/refinery/icons/arrow_left.png +0 -0
- data/app/assets/images/refinery/icons/arrow_left_right.png +0 -0
- data/app/assets/images/refinery/icons/arrow_switch.png +0 -0
- data/app/assets/images/refinery/icons/arrow_up.png +0 -0
- data/app/assets/images/refinery/icons/arrow_up_down.png +0 -0
- data/app/assets/images/refinery/icons/bin.png +0 -0
- data/app/assets/images/refinery/icons/bin_closed.png +0 -0
- data/app/assets/images/refinery/icons/cancel.png +0 -0
- data/app/assets/images/refinery/icons/cog_add.png +0 -0
- data/app/assets/images/refinery/icons/cog_edit.png +0 -0
- data/app/assets/images/refinery/icons/cross.png +0 -0
- data/app/assets/images/refinery/icons/delete.png +0 -0
- data/app/assets/images/refinery/icons/doc.png +0 -0
- data/app/assets/images/refinery/icons/down.gif +0 -0
- data/app/assets/images/refinery/icons/edit.png +0 -0
- data/app/assets/images/refinery/icons/email.png +0 -0
- data/app/assets/images/refinery/icons/email_edit.png +0 -0
- data/app/assets/images/refinery/icons/email_go.png +0 -0
- data/app/assets/images/refinery/icons/email_open.png +0 -0
- data/app/assets/images/refinery/icons/eye.png +0 -0
- data/app/assets/images/refinery/icons/folder.png +0 -0
- data/app/assets/images/refinery/icons/folder_open.png +0 -0
- data/app/assets/images/refinery/icons/folder_page_white.png +0 -0
- data/app/assets/images/refinery/icons/image_add.png +0 -0
- data/app/assets/images/refinery/icons/image_edit.png +0 -0
- data/app/assets/images/refinery/icons/img.png +0 -0
- data/app/assets/images/refinery/icons/information.png +0 -0
- data/app/assets/images/refinery/icons/layout_add.png +0 -0
- data/app/assets/images/refinery/icons/layout_edit.png +0 -0
- data/app/assets/images/refinery/icons/locale-blue.svg +15 -0
- data/app/assets/images/refinery/icons/locale.svg +11 -0
- data/app/assets/images/refinery/icons/music.png +0 -0
- data/app/assets/images/refinery/icons/page.png +0 -0
- data/app/assets/images/refinery/icons/page_add.png +0 -0
- data/app/assets/images/refinery/icons/page_edit.png +0 -0
- data/app/assets/images/refinery/icons/page_white_edit.png +0 -0
- data/app/assets/images/refinery/icons/page_white_gear.png +0 -0
- data/app/assets/images/refinery/icons/page_white_put.png +0 -0
- data/app/assets/images/refinery/icons/pdf.png +0 -0
- data/app/assets/images/refinery/icons/ppt.png +0 -0
- data/app/assets/images/refinery/icons/star.png +0 -0
- data/app/assets/images/refinery/icons/tick.png +0 -0
- data/app/assets/images/refinery/icons/up.gif +0 -0
- data/app/assets/images/refinery/icons/user_add.png +0 -0
- data/app/assets/images/refinery/icons/user_comment.png +0 -0
- data/app/assets/images/refinery/icons/user_edit.png +0 -0
- data/app/assets/images/refinery/icons/xls.png +0 -0
- data/app/assets/images/refinery/icons/zip.png +0 -0
- data/app/assets/images/refinery/icons/zoom.png +0 -0
- data/app/assets/images/refinery/logo-large.png +0 -0
- data/app/assets/images/refinery/logo-medium.png +0 -0
- data/app/assets/images/refinery/logo-site-bar.png +0 -0
- data/app/assets/images/refinery/logo-small-medium.png +0 -0
- data/app/assets/images/refinery/logo-small.png +0 -0
- data/app/assets/images/refinery/logo-tiny.png +0 -0
- data/app/assets/images/refinery/logo.png +0 -0
- data/app/assets/images/refinery/nav-3-background.gif +0 -0
- data/app/assets/images/refinery/nav_inactive_background.png +0 -0
- data/app/assets/images/refinery/orange_button.png +0 -0
- data/app/assets/images/refinery/page_bg.png +0 -0
- data/app/assets/images/refinery/text_field_background.png +0 -0
- data/app/assets/images/refinery/tooltip-nib.gif +0 -0
- data/app/assets/images/refinery/tooltip-nib.png +0 -0
- data/app/assets/javascripts/admin.js +7 -6
- data/app/assets/javascripts/refinery/admin.js.erb +99 -60
- data/app/assets/javascripts/refinery/ajaxy_pagination.js.coffee +2 -5
- data/app/assets/javascripts/refinery/application.js +8 -0
- data/app/assets/javascripts/refinery/core.js +4 -18
- data/app/assets/javascripts/refinery/interface.js.coffee.erb +5 -29
- data/app/assets/javascripts/refinery/modal_dialogs.js.erb +0 -105
- data/app/assets/javascripts/refinery/nestedsortables.js +183 -110
- data/app/assets/javascripts/refinery/refinery.js.erb +3 -9
- data/app/assets/javascripts/refinery/serializelist.js +1 -1
- data/app/assets/javascripts/refinery/site_bar.js +0 -5
- data/app/assets/javascripts/refinery/sortable_list.js +10 -11
- data/app/assets/javascripts/refinery/submit_continue.js.coffee.erb +1 -1
- data/app/assets/stylesheets/application.scss +2 -0
- data/app/assets/stylesheets/refinery/_colours.scss +18 -0
- data/app/assets/stylesheets/refinery/_icons.scss +85 -0
- data/app/assets/stylesheets/refinery/{layout.css.scss → _layout.scss} +306 -338
- data/app/assets/stylesheets/refinery/_mixins.scss +84 -0
- data/app/assets/stylesheets/refinery/{submenu.css.scss → _submenu.scss} +2 -2
- data/app/assets/stylesheets/refinery/{tooltips.css.scss → _tooltips.scss} +0 -0
- data/app/assets/stylesheets/refinery/_ui.scss +252 -0
- data/app/assets/stylesheets/refinery/{formatting.css.scss → formatting.scss} +0 -0
- data/app/assets/stylesheets/refinery/refinery.scss +10 -0
- data/app/assets/stylesheets/refinery/site_bar.scss +126 -0
- data/app/assets/stylesheets/refinery/{theme.css.scss → theme.scss} +0 -0
- data/app/controllers/refinery/admin/core_controller.rb +2 -7
- data/app/controllers/refinery/admin/dialogs_controller.rb +4 -3
- data/app/controllers/refinery/admin_controller.rb +0 -1
- data/app/controllers/refinery/fast_controller.rb +0 -4
- data/app/helpers/refinery/admin/visual_editor_helper.rb +13 -0
- data/app/helpers/refinery/admin_helper.rb +4 -0
- data/app/helpers/refinery/custom_assets_helper.rb +2 -2
- data/app/helpers/refinery/image_helper.rb +9 -8
- data/app/helpers/refinery/meta_helper.rb +1 -1
- data/app/helpers/refinery/site_bar_helper.rb +16 -2
- data/app/helpers/refinery/tag_helper.rb +38 -5
- data/app/models/refinery/core/base_model.rb +3 -1
- data/app/views/layouts/refinery/admin.html.erb +12 -10
- data/app/views/layouts/refinery/admin_dialog.html.erb +1 -4
- data/app/views/refinery/_content_page.html.erb +1 -1
- data/app/views/refinery/_google_analytics.html.erb +8 -9
- data/app/views/refinery/_head.html.erb +1 -1
- data/app/views/refinery/_javascripts.html.erb +0 -15
- data/app/views/refinery/_message.html.erb +1 -1
- data/app/views/refinery/_site_bar.html.erb +9 -6
- data/app/views/refinery/admin/_error_messages.html.erb +4 -4
- data/app/views/refinery/admin/_form_actions.html.erb +1 -0
- data/app/views/refinery/admin/_form_advanced_options_menu.html.erb +3 -4
- data/app/views/refinery/admin/_head.html.erb +3 -0
- data/app/views/refinery/admin/_image_picker.html.erb +4 -5
- data/app/views/refinery/admin/_javascripts.html.erb +4 -9
- data/app/views/refinery/admin/_locale_picker.html.erb +9 -2
- data/app/views/refinery/admin/_make_sortable.html.erb +8 -6
- data/app/views/refinery/admin/_menu.html.erb +2 -15
- data/app/views/refinery/admin/_menu_item.html.erb +3 -0
- data/app/views/refinery/admin/_resource_picker.html.erb +12 -22
- data/app/views/refinery/admin/_search.html.erb +1 -1
- data/app/views/refinery/admin/_tabbed_fields.html.erb +2 -2
- data/app/views/refinery/admin/_wysiwyg.html.erb +1 -1
- data/{lib/generators/refinery/cms/templates/app/decorators/controllers/refinery/.gitkeep → app/views/refinery/admin/dialog_success.html.erb} +0 -0
- data/app/views/refinery/admin/dialogs/show.html.erb +1 -19
- data/config/initializers/assets.rb +6 -0
- data/config/locales/ca.yml +84 -0
- data/config/locales/cs.yml +12 -5
- data/config/locales/en.yml +6 -2
- data/config/locales/fr.yml +15 -11
- data/config/locales/hu.yml +3 -1
- data/config/locales/it.yml +5 -1
- data/config/locales/ja.yml +2 -2
- data/config/locales/pt.yml +5 -3
- data/config/locales/ru.yml +7 -0
- data/config/locales/sl.yml +0 -3
- data/config/locales/tr.yml +43 -41
- data/config/routes.rb +1 -4
- data/lib/generators/refinery/cms/cms_generator.rb +68 -26
- data/lib/generators/refinery/cms/templates/app/decorators/{models/refinery/.gitkeep → controllers/refinery/.keep} +0 -0
- data/lib/generators/refinery/{form/templates/.gitkeep → cms/templates/app/decorators/models/refinery/.keep} +0 -0
- data/lib/generators/refinery/cms/templates/config/database.yml.mysql +3 -3
- data/lib/generators/refinery/cms/templates/config/database.yml.postgresql +3 -3
- data/lib/generators/refinery/core/templates/config/initializers/refinery/core.rb.erb +18 -5
- data/lib/generators/refinery/dummy/dummy_generator.rb +3 -1
- data/lib/generators/refinery/dummy/templates/rails/application.js +3 -0
- data/lib/generators/refinery/dummy/templates/rails/application.rb.erb +0 -2
- data/lib/generators/refinery/dummy/templates/rails/blank.png +0 -0
- data/lib/generators/refinery/dummy/templates/rails/routes.rb +1 -1
- data/lib/generators/refinery/engine/engine_generator.rb +3 -2
- data/lib/generators/refinery/engine/templates/Gemfile +9 -4
- data/lib/generators/refinery/engine/templates/Rakefile +3 -4
- data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb +11 -2
- data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/plural_name_controller.rb.erb +2 -2
- data/lib/generators/refinery/engine/templates/app/models/refinery/namespace/singular_name.rb.erb +5 -5
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_actions.html.erb +7 -12
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_form.html.erb +8 -8
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb +3 -3
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb +6 -11
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/index.html.erb +1 -1
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/plural_name/show.html.erb +4 -4
- data/lib/generators/refinery/engine/templates/db/migrate/1_create_namespace_plural_name.rb.erb +2 -9
- data/lib/generators/refinery/engine/templates/db/seeds.rb.erb +13 -19
- data/lib/generators/refinery/engine/templates/lib/refinery/plural_name/engine.rb.erb +0 -4
- data/lib/generators/refinery/engine/templates/readme.md +3 -3
- data/lib/generators/refinery/engine/templates/refinerycms-extension_plural_name.gemspec +1 -0
- data/lib/generators/refinery/engine/templates/spec/features/refinery/namespace/admin/plural_name_spec.rb.erb +25 -28
- data/lib/generators/refinery/engine/templates/spec/models/refinery/namespace/singular_name_spec.rb.erb +1 -1
- data/lib/generators/refinery/engine/templates/spec/spec_helper.rb +1 -1
- data/lib/refinery.rb +7 -9
- data/lib/refinery/admin/base_controller.rb +42 -32
- data/lib/refinery/application_controller.rb +25 -17
- data/lib/refinery/cli.rb +54 -19
- data/lib/refinery/core.rb +5 -0
- data/lib/refinery/core/authorisation_adapter.rb +11 -0
- data/lib/refinery/core/authorisation_manager.rb +14 -0
- data/lib/refinery/core/configuration.rb +25 -4
- data/lib/refinery/core/default_route.rb +16 -0
- data/lib/refinery/core/engine.rb +44 -25
- data/lib/refinery/core/nil_user.rb +42 -0
- data/lib/refinery/crud.rb +40 -29
- data/lib/refinery/extension_generation.rb +11 -22
- data/lib/refinery/generators/generated_attribute.rb +54 -0
- data/lib/refinery/generators/named_base.rb +16 -0
- data/lib/refinery/menu.rb +3 -2
- data/lib/refinery/menu_item.rb +1 -1
- data/lib/refinery/plugin.rb +27 -43
- data/lib/refinery/plugins.rb +22 -26
- data/lib/refinery/users_manager.rb +8 -0
- data/lib/refinery/version.rb +7 -3
- data/lib/tasks/refinery.rake +7 -0
- data/license.md +1 -1
- data/refinerycms-core.gemspec +11 -8
- data/spec/controllers/refinery/admin/dummy_controller_spec.rb +23 -11
- data/spec/controllers/refinery/sitemap_controller_spec.rb +2 -2
- data/spec/features/refinery/admin/custom_assets_spec.rb +12 -10
- data/spec/features/refinery/admin/dialogs_spec.rb +5 -5
- data/spec/features/refinery/admin/xhr_paging_spec.rb +24 -38
- data/spec/features/refinery/application_layout_spec.rb +3 -3
- data/spec/features/refinery/core_spec.rb +1 -1
- data/spec/features/refinery/site_bar_spec.rb +44 -23
- data/spec/helpers/refinery/admin_helper_spec.rb +15 -0
- data/spec/helpers/refinery/custom_assets_helper_spec.rb +15 -23
- data/spec/helpers/refinery/html_truncation_helper_spec.rb +10 -5
- data/spec/helpers/refinery/meta_helper_spec.rb +3 -3
- data/spec/helpers/refinery/pagination_helper_spec.rb +7 -7
- data/spec/helpers/refinery/tag_helper_spec.rb +4 -4
- data/spec/helpers/refinery/translation_helper_spec.rb +3 -3
- data/spec/lib/generators/refinery/cms/cms_generator_spec.rb +30 -25
- data/spec/lib/generators/refinery/core/core_generator_spec.rb +1 -1
- data/spec/lib/generators/refinery/engine/engine_generator_multiple_resources_spec.rb +7 -8
- data/spec/lib/generators/refinery/engine/engine_generator_sanity_check_spec.rb +15 -15
- data/spec/lib/generators/refinery/engine/engine_generator_spec.rb +9 -9
- data/spec/lib/generators/refinery/engine/engine_generator_with_i18n_spec.rb +1 -1
- data/spec/lib/generators/refinery/engine/engine_generator_without_frontend_spec.rb +1 -1
- data/spec/lib/refinery/application_controller_spec.rb +16 -16
- data/spec/lib/refinery/authorisation_manager_spec.rb +10 -0
- data/spec/lib/refinery/cli_spec.rb +83 -21
- data/spec/lib/refinery/core/configuration_spec.rb +5 -5
- data/spec/lib/refinery/core/nil_user_spec.rb +39 -0
- data/spec/lib/refinery/core_spec.rb +39 -30
- data/spec/lib/refinery/crud_spec.rb +70 -59
- data/spec/lib/refinery/menu_spec.rb +4 -4
- data/spec/lib/refinery/plugin_spec.rb +56 -45
- data/spec/lib/refinery/plugins_spec.rb +39 -87
- data/spec/lib/refinery/users_manager_spec.rb +9 -0
- data/spec/support/refinery.rb +3 -8
- data/vendor/assets/fonts/font-awesome/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.svg +565 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/stylesheets/_font-awesome-compass.scss +5 -0
- data/vendor/assets/stylesheets/_font-awesome-sprockets.scss +5 -0
- data/vendor/assets/stylesheets/_font-awesome.scss +17 -0
- data/vendor/assets/stylesheets/font-awesome/_animated.scss +34 -0
- data/vendor/assets/stylesheets/font-awesome/_bordered-pulled.scss +16 -0
- data/vendor/assets/stylesheets/font-awesome/_core.scss +12 -0
- data/vendor/assets/stylesheets/font-awesome/_extras.scss +44 -0
- data/vendor/assets/stylesheets/font-awesome/_fixed-width.scss +6 -0
- data/vendor/assets/stylesheets/font-awesome/_icons.scss +596 -0
- data/vendor/assets/stylesheets/font-awesome/_larger.scss +13 -0
- data/vendor/assets/stylesheets/font-awesome/_list.scss +19 -0
- data/vendor/assets/stylesheets/font-awesome/_mixins.scss +26 -0
- data/vendor/assets/stylesheets/font-awesome/_path.scss +14 -0
- data/vendor/assets/stylesheets/font-awesome/_rotated-flipped.scss +20 -0
- data/vendor/assets/stylesheets/font-awesome/_stacked.scss +20 -0
- data/vendor/assets/stylesheets/font-awesome/_variables.scss +606 -0
- metadata +144 -441
- data/app/assets/images/refinery/carousel-left.png +0 -0
- data/app/assets/images/refinery/carousel-right.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/eye.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/article.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/aside.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/blockquote.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/command.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/details.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/figcaption.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/figure.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/footer.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h1.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h2.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h3.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h4.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h5.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h6.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/header.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/hgroup.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/mark.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/meter.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/nav.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/p.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/pre.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/progress.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/readme.md +0 -1
- data/app/assets/images/wymeditor/skins/refinery/html5/rp.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/rt.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/ruby.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/section.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/summary.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/time.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/right.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/style.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_align_center.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_align_left.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_indent.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/app/assets/images/wymeditor/skins/wymeditor_icon.png +0 -0
- data/app/assets/javascripts/refinery/boot_wym.js.erb +0 -285
- data/app/assets/javascripts/refinery/sortable_menu.js.coffee.erb +0 -20
- data/app/assets/javascripts/refinery/wymeditor.js +0 -37
- data/app/assets/javascripts/wymeditor/GPL-license.txt +0 -278
- data/app/assets/javascripts/wymeditor/MIT-license.txt +0 -20
- data/app/assets/javascripts/wymeditor/README +0 -35
- data/app/assets/javascripts/wymeditor/browsers/ie.js.erb +0 -224
- data/app/assets/javascripts/wymeditor/browsers/mozilla.js.erb +0 -292
- data/app/assets/javascripts/wymeditor/browsers/opera.js.erb +0 -123
- data/app/assets/javascripts/wymeditor/browsers/webkit.js.erb +0 -283
- data/app/assets/javascripts/wymeditor/classes.js.erb +0 -1575
- data/app/assets/javascripts/wymeditor/functions.js.erb +0 -222
- data/app/assets/javascripts/wymeditor/lang/bg.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/ca.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/cs.js +0 -58
- data/app/assets/javascripts/wymeditor/lang/da.js +0 -48
- data/app/assets/javascripts/wymeditor/lang/de.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/en.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/es.js +0 -58
- data/app/assets/javascripts/wymeditor/lang/fa.js +0 -46
- data/app/assets/javascripts/wymeditor/lang/fi.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/fr.js +0 -58
- data/app/assets/javascripts/wymeditor/lang/he.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/hu.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/it.js +0 -48
- data/app/assets/javascripts/wymeditor/lang/ja.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/lv.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/nb.js +0 -48
- data/app/assets/javascripts/wymeditor/lang/nl.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/nn.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/pl.js +0 -56
- data/app/assets/javascripts/wymeditor/lang/pt-BR.js +0 -58
- data/app/assets/javascripts/wymeditor/lang/pt.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/rs.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/ru.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/sk.js +0 -56
- data/app/assets/javascripts/wymeditor/lang/sl.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/sv.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/tr.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/vi.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/zh-CN.js +0 -47
- data/app/assets/javascripts/wymeditor/prototypes.js.erb +0 -1103
- data/app/assets/javascripts/wymeditor/setup.js.erb +0 -622
- data/app/assets/javascripts/wymeditor/skins/refinery/skin.js +0 -45
- data/app/assets/javascripts/wymeditor/validators.js.erb +0 -777
- data/app/assets/stylesheets/refinery/refinery.css +0 -15
- data/app/assets/stylesheets/refinery/site_bar.css.scss +0 -92
- data/app/assets/stylesheets/refinery/ui.css.scss +0 -103
- data/app/assets/stylesheets/wymeditor/skins/refinery/skin.css.scss +0 -530
- data/app/assets/stylesheets/wymeditor/skins/refinery/wymiframe.css.scss +0 -156
- data/app/helpers/refinery/admin/core_helper.rb +0 -6
- data/app/helpers/refinery/admin/dialogs_helper.rb +0 -6
- data/app/helpers/refinery/fast_helper.rb +0 -4
- data/app/helpers/refinery/sitemap_helper.rb +0 -4
- data/app/views/refinery/wymiframe.html.erb +0 -14
- data/lib/generators/refinery/form/USAGE +0 -20
- data/lib/generators/refinery/form/form_generator.rb +0 -25
- data/lib/generators/refinery/form/templates/.gitignore +0 -2
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb +0 -54
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/settings_controller.rb.erb +0 -45
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/plural_name_controller.rb.erb +0 -53
- data/lib/generators/refinery/form/templates/app/mailers/refinery/namespace/mailer.rb.erb +0 -22
- data/lib/generators/refinery/form/templates/app/models/refinery/namespace/setting.rb.erb +0 -34
- data/lib/generators/refinery/form/templates/app/models/refinery/namespace/singular_name.rb.erb +0 -49
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb +0 -23
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb +0 -25
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_submenu.html.erb +0 -29
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/index.html.erb +0 -4
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/show.html.erb +0 -52
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb +0 -27
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/_confirmation_email_form.html.erb +0 -51
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/_notification_recipients_form.html.erb +0 -21
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/edit.html.erb +0 -5
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/mailer/confirmation.html.erb +0 -1
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/mailer/notification.html.erb +0 -17
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/new.html.erb +0 -43
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/thank_you.html.erb +0 -1
- data/lib/generators/refinery/form/templates/config/locales/cs.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/da.yml +0 -66
- data/lib/generators/refinery/form/templates/config/locales/de.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/en.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/es.yml +0 -66
- data/lib/generators/refinery/form/templates/config/locales/fr.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/it.yml +0 -66
- data/lib/generators/refinery/form/templates/config/locales/lv.yml +0 -77
- data/lib/generators/refinery/form/templates/config/locales/nb.yml +0 -75
- data/lib/generators/refinery/form/templates/config/locales/nl.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/pt-BR.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/ru.yml +0 -77
- data/lib/generators/refinery/form/templates/config/locales/sk.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/sl.yml +0 -67
- data/lib/generators/refinery/form/templates/config/locales/tr.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/zh-CN.yml +0 -78
- data/lib/generators/refinery/form/templates/config/routes.rb.erb +0 -26
- data/lib/generators/refinery/form/templates/db/migrate/1_create_plural_name.rb.erb +0 -39
- data/lib/generators/refinery/form/templates/db/seeds.rb.erb +0 -31
- data/lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb +0 -20
- data/lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb +0 -18
- data/lib/generators/refinery/form/templates/lib/refinery/plural_name/engine.rb.erb +0 -27
- data/lib/generators/refinery/form/templates/lib/refinerycms-plural_name.rb.erb +0 -1
- data/lib/generators/refinery/form/templates/refinerycms-plural_name.gemspec +0 -16
- data/lib/generators/refinery/form/templates/script/rails +0 -10
- data/lib/refinery/activity.rb +0 -113
- data/lib/refinery/ext/action_view/helpers/form_builder.rb +0 -9
- data/lib/refinery/ext/action_view/helpers/form_helper.rb +0 -20
- data/lib/refinery/ext/action_view/helpers/form_tag_helper.rb +0 -10
- data/spec/controllers/refinery/admin/refinery_core_controller_spec.rb +0 -19
- data/spec/controllers/refinery/fast_controller_spec.rb +0 -12
- data/spec/lib/generators/refinery/form/form_generator_spec.rb +0 -99
- data/spec/lib/refinery/activity_spec.rb +0 -46
- data/spec/support/background_selenium_firefox_driver.rb +0 -14
- data/vendor/assets/javascripts/jquery/jquery.jcarousel.js +0 -900
data/lib/generators/refinery/form/templates/app/models/refinery/namespace/singular_name.rb.erb
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
module Refinery
|
2
|
-
module <%= class_name.pluralize %>
|
3
|
-
class <%= class_name %> < Refinery::Core::BaseModel
|
4
|
-
<% if table_name == namespacing.underscore.pluralize -%>
|
5
|
-
self.table_name = 'refinery_<%= plural_name %>'
|
6
|
-
<% end -%>
|
7
|
-
|
8
|
-
attr_accessible <%= names_for_attr_accessible.map { |a| ":#{a}" }.join(', ') %>, :position
|
9
|
-
<% if (text_fields = attributes.map { |a| a.name if a.type == :text }.compact.uniq).any? && text_fields.detect{ |a| a.to_s == 'message' }.nil? -%>
|
10
|
-
|
11
|
-
alias_attribute :message, :<%= text_fields.first %>
|
12
|
-
<% elsif text_fields.empty? -%>
|
13
|
-
|
14
|
-
# def message was created automatically because you didn't specify a text field
|
15
|
-
# when you ran the refinery:form generator. <3 <3 Refinery CMS.
|
16
|
-
def message
|
17
|
-
"Override def message in vendor/extensions/<%= namespacing.underscore %>/app/models/refinery/<%= namespacing.underscore %>/<%= singular_name %>.rb"
|
18
|
-
end
|
19
|
-
<% end -%>
|
20
|
-
<% unless (string_fields = attributes.map { |a| a.name if a.type == :string }.compact.uniq).empty? || string_fields.detect { |f| f.to_s == 'name' } -%>
|
21
|
-
|
22
|
-
alias_attribute :name, :<%= string_fields.first %>
|
23
|
-
<% end -%>
|
24
|
-
|
25
|
-
# Add some validation here if you want to validate the user's input
|
26
|
-
<% if string_fields.any? -%>
|
27
|
-
# We have validated the first string field for you.
|
28
|
-
validates :<%= string_fields.first %>, :presence => true
|
29
|
-
<% else %>
|
30
|
-
# def name was created automatically because you didn't specify a string field
|
31
|
-
# when you ran the refinery:form generator. <3 <3 Refinery CMS.
|
32
|
-
def name
|
33
|
-
"Override def name in vendor/extensions/<%= namespacing.underscore %>/app/models/refinery/<%= namespacing.underscore %>/<%= singular_name %>.rb"
|
34
|
-
end
|
35
|
-
<% end -%>
|
36
|
-
<% image_attributes.each do |a| -%>
|
37
|
-
|
38
|
-
belongs_to :<%= a.name -%>, :class_name => 'Refinery::Image'
|
39
|
-
<% end -%>
|
40
|
-
<% resource_attributes.each do |a| -%>
|
41
|
-
|
42
|
-
belongs_to :<%= a.name %>, :class_name => 'Refinery::Resource'
|
43
|
-
<% end -%>
|
44
|
-
<% attributes.select{ |a| /radio|select/ === a.type.to_s }.uniq.each do |a| %>
|
45
|
-
<%= a.name.pluralize.upcase %> = []
|
46
|
-
<% end -%>
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<%%= render 'refinery/admin/search_header', :url => refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path %>
|
2
|
-
<%% if searching? %>
|
3
|
-
<%% if @<%= plural_name %>.any? %>
|
4
|
-
<ul>
|
5
|
-
<%%= render :partial => '<%= singular_name %>', :collection => @<%= plural_name %> %>
|
6
|
-
</ul>
|
7
|
-
<%% else %>
|
8
|
-
<p><%%= t('no_results', :scope => 'refinery.admin.search') %></p>
|
9
|
-
<%% end %>
|
10
|
-
<%% else %>
|
11
|
-
<%% if @grouped_<%= plural_name %>.any? -%>
|
12
|
-
<%% @grouped_<%= plural_name %>.each do |container| %>
|
13
|
-
<h3><%%= l((<%= singular_name %>_group = container.last).first.created_at, :format => :short) %></h3>
|
14
|
-
<ul>
|
15
|
-
<%%= render :partial => '<%= singular_name %>', :collection => <%= singular_name %>_group %>
|
16
|
-
</ul>
|
17
|
-
<%% end %>
|
18
|
-
<%% else -%>
|
19
|
-
<p>
|
20
|
-
<strong><%%= t('no_<%= plural_name %>', :scope => 'refinery.<%= namespacing.underscore %>.admin.<%= plural_name %>.index') %></strong>
|
21
|
-
</p>
|
22
|
-
<%% end -%>
|
23
|
-
<%% end %>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<li class='clearfix record <%%= cycle("on", "on-hover") %>'>
|
2
|
-
<span class='title'>
|
3
|
-
<%%= link_to <%= singular_name %>.name, refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>) %> <%%= t('.said') %>
|
4
|
-
<span class="preview"><%%= truncate(strip_tags(sanitize(<%= singular_name %>.message)), :length => 60) -%></span>
|
5
|
-
</span>
|
6
|
-
<span class='actions'>
|
7
|
-
<%%= link_to refinery_icon_tag('delete.png'), refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
|
8
|
-
:class => "cancel confirm-delete",
|
9
|
-
:title => t('admin.<%= plural_name %>.delete'),
|
10
|
-
:'data-confirm' => t('shared.admin.delete.message', :title => <%= singular_name %>.name),
|
11
|
-
:'data-method' => "delete" -%>
|
12
|
-
|
13
|
-
<%%= link_to refinery_icon_tag('zoom.png'), refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
|
14
|
-
:title => t('.read_<%= singular_name %>') -%>
|
15
|
-
<% if @includes_spam %>
|
16
|
-
<%% if <%= singular_name %>.spam? %>
|
17
|
-
<%%= link_to refinery_icon_tag('email.png'), refinery.toggle_spam_<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
|
18
|
-
:title => t('.mark_as_ham') -%>
|
19
|
-
<%% else %>
|
20
|
-
<%%= link_to refinery_icon_tag('bin_closed.png'), refinery.toggle_spam_<%= namespacing.underscore %>_admin_<%= singular_name %>_path(<%= singular_name %>),
|
21
|
-
:title => t('.mark_as_spam') -%>
|
22
|
-
<%% end %>
|
23
|
-
<% end -%>
|
24
|
-
</span>
|
25
|
-
</li>
|
@@ -1,29 +0,0 @@
|
|
1
|
-
<div id='actions'>
|
2
|
-
<ul>
|
3
|
-
<%% if ::Refinery::<%= namespacing %>::Admin::<%= class_name.pluralize %>Controller.searchable? %>
|
4
|
-
<li>
|
5
|
-
<%%= render '/refinery/admin/search', :url => refinery.<%= namespacing.underscore %>_admin_<%= plural_name %><%= "_index" if plural_name == singular_name%>_path %>
|
6
|
-
</li>
|
7
|
-
<%% end %>
|
8
|
-
<li <%%= "class='selected'" if params[:action] == "index" %>>
|
9
|
-
<%%= link_to t('.inbox'), refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path, :class => "email_icon" %>
|
10
|
-
</li><% if @includes_spam %>
|
11
|
-
<li <%%= "class='selected'" if params[:action] == "spam" %>>
|
12
|
-
<%% if @spam_count.any? %>
|
13
|
-
<%%= link_to "#{t('.spam')} (#{@spam_count})", refinery.spam_<%= namespacing.underscore %>_admin_<%= plural_name %>_path, :class => "spam_icon" %>
|
14
|
-
<%% else %>
|
15
|
-
<%%= link_to t('.spam'), refinery.spam_<%= namespacing.underscore %>_admin_<%= plural_name %>_path, :class => "spam_empty_icon" %>
|
16
|
-
<%% end %>
|
17
|
-
</li><% end %>
|
18
|
-
<li>
|
19
|
-
<%%= link_to t('.update_notified'),
|
20
|
-
refinery.edit_<%= namespacing.underscore %>_admin_setting_path(:<%= singular_name %>_notification_recipients, :dialog => true, :height => 300),
|
21
|
-
:class => "user_comment_icon" %>
|
22
|
-
</li>
|
23
|
-
<li>
|
24
|
-
<%%= link_to t('.edit_confirmation_email'),
|
25
|
-
refinery.edit_<%= namespacing.underscore %>_admin_setting_path(:<%= singular_name %>_confirmation_body, :dialog => true),
|
26
|
-
:class => "edit_email_icon" %>
|
27
|
-
</li>
|
28
|
-
</ul>
|
29
|
-
</div>
|
@@ -1,52 +0,0 @@
|
|
1
|
-
<div id='records'>
|
2
|
-
<h2><%%= t('.<%= singular_name %>') %></h2>
|
3
|
-
<table id='<%= singular_name %>' class='inquiry'>
|
4
|
-
<% attributes.each do |attribute| -%>
|
5
|
-
<tr>
|
6
|
-
<td<%= " valign='top'" if attribute.type.to_s == 'text' %>>
|
7
|
-
<strong>
|
8
|
-
<%%= t('.<%= attribute.name %>', :default => t('activerecord.attributes.<%= singular_name %>.<%= attribute.name %>')) %>
|
9
|
-
</strong>
|
10
|
-
</td>
|
11
|
-
<td>
|
12
|
-
<% if attribute.type.to_s == 'text' -%>
|
13
|
-
<p style='margin-top: 0px'>
|
14
|
-
<%% @<%= singular_name %>.message.to_s.gsub("\r\n\r\n", "\r\n").split("\r\n").each_with_index do |sentence, index| %>
|
15
|
-
<%%=raw "</p><p>" unless index == 0 %>
|
16
|
-
<%%= sentence %>
|
17
|
-
<%% end %>
|
18
|
-
</p>
|
19
|
-
<% else -%>
|
20
|
-
<%%= @<%= singular_name %>.<%= attribute.name %> %>
|
21
|
-
<% end -%>
|
22
|
-
</td>
|
23
|
-
</tr>
|
24
|
-
<% end -%>
|
25
|
-
</table>
|
26
|
-
</div>
|
27
|
-
<div id='actions'>
|
28
|
-
<h2><%%= t('.details')%></h2>
|
29
|
-
<p>
|
30
|
-
<strong><%%= t('.age') %>:</strong> <%%= time_ago_in_words(@<%= singular_name %>.created_at) %>
|
31
|
-
</p><% if @includes_spam %>
|
32
|
-
<%% if @<%= singular_name %>.spam? %>
|
33
|
-
<p>
|
34
|
-
<strong><%%= t('.spam') %>:</strong> <%%= t('.spam_yes') %>
|
35
|
-
</p>
|
36
|
-
<%% end %><% end %>
|
37
|
-
<h2><%%= t('.actions') %></h2>
|
38
|
-
<ul>
|
39
|
-
<li>
|
40
|
-
<%%= link_to t('.back_to_all_<%= plural_name %>'), refinery.url_for(:action => 'index'),
|
41
|
-
:class => "back_icon" %>
|
42
|
-
</li>
|
43
|
-
<li>
|
44
|
-
<%%= link_to t('delete', :scope => 'refinery.<%= namespacing.underscore %>.admin.<%= plural_name %>'),
|
45
|
-
refinery.<%= namespacing.underscore %>_admin_<%= singular_name %>_path(@<%= singular_name %>),
|
46
|
-
:class => 'delete_icon no-tooltip confirm-delete',
|
47
|
-
:title => t('delete', :scope => 'refinery.<%= namespacing.underscore %>.admin.<%= plural_name %>'),
|
48
|
-
:'data-confirm' => t('message', :scope => 'refinery.admin.delete', :title => @<%= singular_name %>.name),
|
49
|
-
:'data-method' => "delete" %>
|
50
|
-
</li>
|
51
|
-
</ul>
|
52
|
-
</div>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<%%= render 'submenu' %>
|
2
|
-
<div id='records'>
|
3
|
-
<%% if searching? %>
|
4
|
-
<%%= link_to t('cancel_search', :scope => 'refinery.admin.search'), refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path, :class => "cancel-search" %>
|
5
|
-
<h2><%%= t('results_for_html', :scope => 'refinery.admin.search', :query => h(params[:search])).html_safe %></h2>
|
6
|
-
<%% if @<%= plural_name %>.any? %>
|
7
|
-
<ul>
|
8
|
-
<%%= render :partial => '<%= singular_name %>', :collection => @<%= plural_name %> %>
|
9
|
-
</ul>
|
10
|
-
<%% else %>
|
11
|
-
<p><%%= t('no_results', :scope => 'refinery.admin.search') %></p>
|
12
|
-
<%% end %>
|
13
|
-
<%% else %>
|
14
|
-
<%% if @grouped_<%= plural_name %>.any? -%>
|
15
|
-
<%% @grouped_<%= plural_name %>.each do |container| %>
|
16
|
-
<h3><%%= l((<%= singular_name %>_group = container.last).first.created_at) %></h3>
|
17
|
-
<ul>
|
18
|
-
<%%= render :partial => '<%= singular_name %>', :collection => <%= singular_name %>_group %>
|
19
|
-
</ul>
|
20
|
-
<%% end %>
|
21
|
-
<%% else -%>
|
22
|
-
<p>
|
23
|
-
<strong><%%= t('.no_spam') %></strong>
|
24
|
-
</p>
|
25
|
-
<%% end -%>
|
26
|
-
<%% end %>
|
27
|
-
</div>
|
@@ -1,51 +0,0 @@
|
|
1
|
-
<%%= form_for @setting, :url => refinery.<%= namespacing.underscore %>_admin_setting_path do |f| %>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<%%= t('.explanation') %>
|
5
|
-
</p>
|
6
|
-
<p>
|
7
|
-
<%%= t('.below_edit_email_sent') %>
|
8
|
-
</p>
|
9
|
-
<table id='<%= singular_name %>'>
|
10
|
-
<tr>
|
11
|
-
<td>
|
12
|
-
<label class='stripped'><%%= t('.to') %></label>
|
13
|
-
</td>
|
14
|
-
<td>
|
15
|
-
<%%= t('.the_customer_making_<%= singular_name %>') %>
|
16
|
-
</td>
|
17
|
-
</tr>
|
18
|
-
<tr>
|
19
|
-
<td>
|
20
|
-
<label class='stripped'><%%= t('.from') %></label>
|
21
|
-
</td>
|
22
|
-
<td>
|
23
|
-
<%%= "#{Refinery::Core.site_name} <no-reply@#{request.domain}>".html_safe %>
|
24
|
-
</td>
|
25
|
-
</tr>
|
26
|
-
<tr>
|
27
|
-
<td>
|
28
|
-
<label class='stripped'><%%= t('.subject') %></label>
|
29
|
-
</td>
|
30
|
-
<td>
|
31
|
-
<%%= text_field_tag 'subject', Refinery::<%= namespacing %>::Setting.confirmation_subject,
|
32
|
-
:class => 'widest' %>
|
33
|
-
</td>
|
34
|
-
</tr>
|
35
|
-
<tr>
|
36
|
-
<td valign='top'>
|
37
|
-
<%%= f.label :value, t('.message'), :class => 'stripped' %>
|
38
|
-
</td>
|
39
|
-
<td>
|
40
|
-
<%%= f.text_area :value, :value => @setting.value, :rows => "7", :class => 'widest' %>
|
41
|
-
<br/>
|
42
|
-
<em><%%= t('.note') %></em>
|
43
|
-
</td>
|
44
|
-
</tr>
|
45
|
-
</table>
|
46
|
-
|
47
|
-
<%%= render '/refinery/admin/form_actions', :f => f,
|
48
|
-
:continue_editing => false,
|
49
|
-
:cancel_url => refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_url,
|
50
|
-
:hide_delete => true %>
|
51
|
-
<%% end %>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
<%%= form_for @setting, :url => refinery.<%= namespacing.underscore %>_admin_setting_path do |f| %>
|
2
|
-
|
3
|
-
<div class='field'>
|
4
|
-
<span class='label_with_help'>
|
5
|
-
<%%= f.label :value, t('.settings_value_name') %>
|
6
|
-
</span>
|
7
|
-
<%%= f.text_field :value, :value => @setting.value, :class => "larger widest" %>
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<p>
|
11
|
-
<%%= t('.hint') %>
|
12
|
-
</p>
|
13
|
-
<p>
|
14
|
-
<%%= t('.example') %>
|
15
|
-
</p>
|
16
|
-
|
17
|
-
<%%= render '/refinery/admin/form_actions', :f => f,
|
18
|
-
:continue_editing => false,
|
19
|
-
:cancel_url => refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path,
|
20
|
-
:hide_delete => true %>
|
21
|
-
<%% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%%= simple_format(strip_tags(Refinery::<%= namespacing %>::Setting.confirmation_body.gsub("%name%", @<%= singular_name %>.name))) %>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<%%= t('.greeting') %>,<br/>
|
2
|
-
<br/>
|
3
|
-
<%%= t('.you_recieved_new_<%= singular_name %>') %><br/>
|
4
|
-
<br/>
|
5
|
-
<%%= t('.<%= singular_name %>_starts') %><br/>
|
6
|
-
<br/>
|
7
|
-
<% attributes.each do |attribute| -%>
|
8
|
-
<%%= t('.<%= attribute.name %>', :default => t('activerecord.attributes.<%= singular_name %>.<%= attribute.name %>')) %>: <% if attribute.type.to_s == 'text' %>
|
9
|
-
<% end %><%%= @<%= singular_name %>.<%= attribute.name %> %><%= "<br/>" unless attribute.type.to_s == 'text' %>
|
10
|
-
<% end -%>
|
11
|
-
<br/>
|
12
|
-
<%%= t('.<%= singular_name %>_ends') %><br/>
|
13
|
-
<br/>
|
14
|
-
<%%= t('.closing_line') %>,<br/>
|
15
|
-
<%%= Refinery::Core.site_name %><br/>
|
16
|
-
<br/>
|
17
|
-
<%%= t('.ps_html') %>
|
data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/new.html.erb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
<%% content_for :body do %>
|
2
|
-
<div class='<%= plural_name %>'>
|
3
|
-
<%%=raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) %>
|
4
|
-
|
5
|
-
<%%= form_for [refinery, :<%= namespacing.underscore %>, @<%= singular_name %>] do |f| %>
|
6
|
-
<%%= render '/refinery/admin/error_messages',
|
7
|
-
:object => @<%= singular_name %>,
|
8
|
-
:include_object_name => true %>
|
9
|
-
<% string_fields = string_attributes.map(&:name) -%>
|
10
|
-
<% attributes.each do |attribute| %>
|
11
|
-
<div class='field <%= attribute.name %>_field <%= attribute.type %>_field'>
|
12
|
-
<%%= f.<%= 'required_' if string_fields.any? && attribute.name == string_fields.first %>label :<%= attribute.name %> %>
|
13
|
-
<% case attribute.type
|
14
|
-
when :string -%>
|
15
|
-
<%%= f.text_field :<%= attribute.name %> %>
|
16
|
-
<% when :text -%>
|
17
|
-
<%%= f.text_area :<%= attribute.name %>, :rows => 8 %>
|
18
|
-
<% when :radio -%>
|
19
|
-
<%% Refinery::<%= namespacing %>::<%= class_name %>::<%= attribute.name.pluralize.upcase %>.each do |value, name| %>
|
20
|
-
<%%= f.radio_button :<%= attribute.name %>, (name || value), :value => value %>
|
21
|
-
<%%= f.label :"<%= attribute.name %>_#{(name || value)}", value.humanize %>
|
22
|
-
<%% end %>
|
23
|
-
<% when :checkbox -%>
|
24
|
-
<%%= f.check_box :<%= attribute.name %> %>
|
25
|
-
<% when :select -%>
|
26
|
-
<%%= f.select :<%= attribute.name %>, Refinery::<%= namespacing %>::<%= class_name %>::<%= attribute.name.pluralize.upcase %>,
|
27
|
-
:include_blank => true %>
|
28
|
-
<% when :datetime -%>
|
29
|
-
<%%= f.datetime_select :<%= attribute.name %> %>
|
30
|
-
<% when :date -%>
|
31
|
-
<%%= f.date_select :<%= attribute.name %> %>
|
32
|
-
<% when :time -%>
|
33
|
-
<%%= f.time_select :<%= attribute.name %> %>
|
34
|
-
<% end -%>
|
35
|
-
</div>
|
36
|
-
<% end %>
|
37
|
-
<div class='actions'>
|
38
|
-
<%%= f.submit t('.send') %>
|
39
|
-
</div>
|
40
|
-
<%% end %>
|
41
|
-
</div>
|
42
|
-
<%% end %>
|
43
|
-
<%%= render '/refinery/content_page' %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%%= render '/refinery/content_page' %>
|
@@ -1,78 +0,0 @@
|
|
1
|
-
cs:
|
2
|
-
refinery:
|
3
|
-
plugins:
|
4
|
-
<%= plural_name %>:
|
5
|
-
title: <%= plural_name.titleize %>
|
6
|
-
description: Poskytuje kontaktní formulář a zaznamenáva <%= plural_name.humanize.downcase %>
|
7
|
-
<%= namespacing.underscore %>:
|
8
|
-
<%= plural_name %>:
|
9
|
-
new:
|
10
|
-
send: Odeslat zprávu
|
11
|
-
privacy_policy: Chráníme vaše soukromí
|
12
|
-
admin:
|
13
|
-
<%= plural_name %>:
|
14
|
-
delete: Trvale odstranit <%= singular_name.humanize.downcase %>
|
15
|
-
<%= singular_name %>:
|
16
|
-
read_<%= singular_name %>: Přečíst <%= singular_name.humanize.downcase %>
|
17
|
-
said: řekl
|
18
|
-
mark_as_spam: Označit jako spam
|
19
|
-
mark_as_ham: Označit jako přečtené
|
20
|
-
submenu:
|
21
|
-
inbox: Inbox
|
22
|
-
spam: Spam
|
23
|
-
update_notified: Upravit seznam notifikovaných
|
24
|
-
edit_confirmation_email: Upravit potvrzovací e-mail
|
25
|
-
index:
|
26
|
-
no_<%= plural_name %>: Zatím jste neobdrželi žádné <%= plural_name.humanize.downcase %>.
|
27
|
-
spam:
|
28
|
-
no_spam: Hurá! Nemáte žádný spam.
|
29
|
-
show:
|
30
|
-
details: Podrobnosti
|
31
|
-
age: Věk
|
32
|
-
actions: Akce
|
33
|
-
back_to_all_<%= plural_name %>: Zpět na všechny <%= plural_name.humanize.downcase %>
|
34
|
-
spam: Spam
|
35
|
-
spam_yes: 'ano'
|
36
|
-
<%= singular_name %>: <%= class_name.underscore.titleize %>
|
37
|
-
to: Komu
|
38
|
-
from: Od
|
39
|
-
click_to_email: Klikněte pro odeslání této adresy e-mailem
|
40
|
-
phone: Telefon
|
41
|
-
date: Datum
|
42
|
-
message: Zpráva
|
43
|
-
settings:
|
44
|
-
notification_recipients_form:
|
45
|
-
settings_value_name: Zaslat upozornění pro
|
46
|
-
explanation: Pokaždé, když Vás někdo kontaktuje přes vaše webové stránky, Refinery odešle e-mail s upozorněním na nový <%= singular_name.humanize.downcase %>.
|
47
|
-
hint: Když je odeslán nový <%= singular_name.humanize.downcase %>, Refinery pošle upozornení na Váš e-mail.
|
48
|
-
example: "Zadejte e-mailové adresy jako: jack@work.com, jill@office.com"
|
49
|
-
confirmation_email_form:
|
50
|
-
to: Komu
|
51
|
-
from: Od
|
52
|
-
subject: Předmet
|
53
|
-
click_to_edit_subject: Klikněte zde pro editaci předmetu
|
54
|
-
explanation: Když Vás někdo kontaktuje přes vaše webové stránky, Refinery odešle e-mail s potvrzením o přijetí odesílateli <%= singular_name.humanize.downcase %>.
|
55
|
-
below_edit_email_sent: Níže můžete upravit e-mail, který je odeslán.
|
56
|
-
the_customer_making_<%= singular_name %>: Klient delá <%= singular_name.humanize.downcase %>
|
57
|
-
message: Zpráva
|
58
|
-
note: "Poznámka: umístěte text %name%, pro určení pozice jména klienta v e-maile"
|
59
|
-
mailer:
|
60
|
-
notification:
|
61
|
-
greeting: Hi there
|
62
|
-
you_recieved_new_<%= singular_name %>: You just received a new <%= singular_name.humanize.downcase %> on your website.
|
63
|
-
<%= singular_name %>_starts: --- <%= singular_name.humanize.downcase %> starts ---
|
64
|
-
<%= singular_name %>_ends: --- <%= singular_name.humanize.downcase %> ends ---
|
65
|
-
from: Od
|
66
|
-
email: E-mail
|
67
|
-
phone: Telefon
|
68
|
-
message: Zpráva
|
69
|
-
closing_line: S pozdravem
|
70
|
-
ps_html: P.S. Všechny vaše <%= plural_name.humanize.downcase %> jsou uloženy pod záložkou "<%= plural_name.titleize %>" v Refinery, pokud by jste je chtěli zobrazit pozdeji.
|
71
|
-
activerecord:
|
72
|
-
models:
|
73
|
-
<%= singular_name %>: <%= class_name.underscore.titleize %>
|
74
|
-
attributes:
|
75
|
-
<%= singular_name %>:
|
76
|
-
<% attributes.each do |a| -%>
|
77
|
-
<%= a.name %>: <%= a.name.humanize %>
|
78
|
-
<% end -%>
|