releaf 0.1.2 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +19 -21
- data/lib/releaf.rb +1 -34
- data/lib/releaf/all.rb +3 -0
- data/lib/releaf/rspec.rb +4 -0
- data/lib/releaf/rspec/features_matchers.rb +76 -0
- data/lib/releaf/rspec/helpers.rb +227 -0
- data/lib/releaf/rspec/matchers.rb +16 -0
- data/lib/releaf/test.rb +5 -0
- data/spec/factories/author.rb +6 -0
- data/spec/factories/book.rb +5 -0
- data/spec/factories/chapter.rb +7 -0
- data/spec/factories/common.rb +5 -0
- data/spec/factories/home_page.rb +5 -0
- data/spec/factories/node.rb +43 -0
- data/spec/factories/node_route.rb +7 -0
- data/spec/factories/publisher.rb +5 -0
- data/spec/factories/role.rb +21 -0
- data/spec/factories/text_page.rb +5 -0
- data/spec/factories/user.rb +22 -0
- data/spec/rails_helper.rb +122 -0
- data/spec/spec_helper.rb +81 -24
- data/spec/support/controller_macros.rb +8 -0
- data/spec/support/excel_helpers.rb +63 -0
- data/spec/support/shared/service_includer.rb +9 -0
- data/spec/support/wait_steps.rb +23 -0
- metadata +141 -499
- data/README.md +0 -77
- data/Rakefile +0 -70
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/images/releaf/3rd_party/lightbox/close.png +0 -0
- data/app/assets/images/releaf/3rd_party/lightbox/loading.gif +0 -0
- data/app/assets/images/releaf/3rd_party/lightbox/next.png +0 -0
- data/app/assets/images/releaf/3rd_party/lightbox/prev.png +0 -0
- data/app/assets/images/releaf/add.png +0 -0
- data/app/assets/images/releaf/background.jpg +0 -0
- data/app/assets/images/releaf/button/button_bgr.gif +0 -0
- data/app/assets/images/releaf/button/button_hover_bgr.png +0 -0
- data/app/assets/images/releaf/controllers/content/close.gif +0 -0
- data/app/assets/images/releaf/controllers/content/close_active.gif +0 -0
- data/app/assets/images/releaf/controllers/content/close_hover.gif +0 -0
- data/app/assets/images/releaf/controllers/content/global_fields_bgr.png +0 -0
- data/app/assets/images/releaf/controllers/content/open.gif +0 -0
- data/app/assets/images/releaf/controllers/content/open_2.gif +0 -0
- data/app/assets/images/releaf/controllers/content/open_active.gif +0 -0
- data/app/assets/images/releaf/controllers/content/open_hover.gif +0 -0
- data/app/assets/images/releaf/controllers/sessions/background.jpg +0 -0
- data/app/assets/images/releaf/controllers/sessions/logo.jpg +0 -0
- data/app/assets/images/releaf/expand_tool/close.png +0 -0
- data/app/assets/images/releaf/expand_tool/close_hover.png +0 -0
- data/app/assets/images/releaf/expand_tool/close_hover_shim.png +0 -0
- data/app/assets/images/releaf/expand_tool/close_shim.png +0 -0
- data/app/assets/images/releaf/expand_tool/loader.gif +0 -0
- data/app/assets/images/releaf/expand_tool/open.png +0 -0
- data/app/assets/images/releaf/expand_tool/open_hover.png +0 -0
- data/app/assets/images/releaf/expand_tool/open_hover_shim.png +0 -0
- data/app/assets/images/releaf/expand_tool/open_shim.png +0 -0
- data/app/assets/images/releaf/favicon.ico +0 -0
- data/app/assets/images/releaf/globalFieldContainerBgr.png +0 -0
- data/app/assets/images/releaf/icons/129.png +0 -0
- data/app/assets/images/releaf/icons/130.png +0 -0
- data/app/assets/images/releaf/icons/accept.png +0 -0
- data/app/assets/images/releaf/icons/add.png +0 -0
- data/app/assets/images/releaf/icons/arrow_down.png +0 -0
- data/app/assets/images/releaf/icons/arrow_left.png +0 -0
- data/app/assets/images/releaf/icons/arrow_refresh.png +0 -0
- data/app/assets/images/releaf/icons/arrow_up.png +0 -0
- data/app/assets/images/releaf/icons/bin_empty.png +0 -0
- data/app/assets/images/releaf/icons/bullet_black.png +0 -0
- data/app/assets/images/releaf/icons/bullet_connect.png +0 -0
- data/app/assets/images/releaf/icons/bullet_start.png +0 -0
- data/app/assets/images/releaf/icons/bullet_tick.png +0 -0
- data/app/assets/images/releaf/icons/chrome.png +0 -0
- data/app/assets/images/releaf/icons/control_play.png +0 -0
- data/app/assets/images/releaf/icons/date.png +0 -0
- data/app/assets/images/releaf/icons/delete.png +0 -0
- data/app/assets/images/releaf/icons/disk.png +0 -0
- data/app/assets/images/releaf/icons/drag-handle.png +0 -0
- data/app/assets/images/releaf/icons/error.png +0 -0
- data/app/assets/images/releaf/icons/eye.png +0 -0
- data/app/assets/images/releaf/icons/firefox.png +0 -0
- data/app/assets/images/releaf/icons/google-not-available.gif +0 -0
- data/app/assets/images/releaf/icons/google.gif +0 -0
- data/app/assets/images/releaf/icons/keyboard.png +0 -0
- data/app/assets/images/releaf/icons/left_16.png +0 -0
- data/app/assets/images/releaf/icons/link.png +0 -0
- data/app/assets/images/releaf/icons/magnifier.png +0 -0
- data/app/assets/images/releaf/icons/notAllowed.png +0 -0
- data/app/assets/images/releaf/icons/page_white_add.png +0 -0
- data/app/assets/images/releaf/icons/page_white_edit.png +0 -0
- data/app/assets/images/releaf/icons/page_white_put.png +0 -0
- data/app/assets/images/releaf/icons/page_white_text.png +0 -0
- data/app/assets/images/releaf/icons/pencil.png +0 -0
- data/app/assets/images/releaf/icons/picture.png +0 -0
- data/app/assets/images/releaf/icons/right_16.png +0 -0
- data/app/assets/images/releaf/icons/tick.png +0 -0
- data/app/assets/images/releaf/icons/warning.png +0 -0
- data/app/assets/images/releaf/icons/world_go.png +0 -0
- data/app/assets/images/releaf/icons/world_link.png +0 -0
- data/app/assets/images/releaf/input/autocompleteExpandIcon.png +0 -0
- data/app/assets/images/releaf/input/input_bgr.gif +0 -0
- data/app/assets/images/releaf/language_root.png +0 -0
- data/app/assets/images/releaf/loader.gif +0 -0
- data/app/assets/images/releaf/logout.png +0 -0
- data/app/assets/images/releaf/main_menu/active_bgr.png +0 -0
- data/app/assets/images/releaf/main_menu/bgr.png +0 -0
- data/app/assets/images/releaf/main_menu/hover_bgr.png +0 -0
- data/app/assets/images/releaf/module.png +0 -0
- data/app/assets/images/releaf/panel_layout/active_bgr.png +0 -0
- data/app/assets/images/releaf/panel_layout/secondary_panel_horizontal_bgr.png +0 -0
- data/app/assets/images/releaf/panel_layout/secondary_panel_vertical_bgr.png +0 -0
- data/app/assets/images/releaf/releaf_table/selected_bgr.png +0 -0
- data/app/assets/images/releaf/releaf_table/th_bgr.gif +0 -0
- data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/README.md +0 -73
- data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/jquery.cookie.js +0 -47
- data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/server.js +0 -24
- data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/test.html +0 -19
- data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/test.js +0 -80
- data/app/assets/javascripts/releaf/3rd_party/jquery-ui-timepicker-addon.js +0 -1882
- data/app/assets/javascripts/releaf/3rd_party/lightbox.js.erb +0 -379
- data/app/assets/javascripts/releaf/application.js +0 -14
- data/app/assets/javascripts/releaf/controllers/base.js +0 -130
- data/app/assets/javascripts/releaf/controllers/releaf/content.js +0 -90
- data/app/assets/javascripts/releaf/controllers/releaf/translations.js +0 -31
- data/app/assets/javascripts/releaf/include/continuous_scroll.js +0 -321
- data/app/assets/javascripts/releaf/include/field.type_autocomplete.js +0 -58
- data/app/assets/javascripts/releaf/include/field.type_date_or_datetime_or_time.js +0 -43
- data/app/assets/javascripts/releaf/include/field.type_richtext.js +0 -90
- data/app/assets/javascripts/releaf/include/localization.js +0 -12
- data/app/assets/javascripts/releaf/include/nested_fields.js +0 -64
- data/app/assets/javascripts/releaf/include/sortable.js +0 -29
- data/app/assets/javascripts/releaf/lib/request_url.js +0 -183
- data/app/assets/stylesheets/releaf/3rd_party/jquery-ui-1.9.2.custom.css.erb +0 -464
- data/app/assets/stylesheets/releaf/3rd_party/jquery-ui-timepicker-addon.css +0 -10
- data/app/assets/stylesheets/releaf/3rd_party/lightbox.css.erb +0 -157
- data/app/assets/stylesheets/releaf/application.css.erb +0 -122
- data/app/assets/stylesheets/releaf/controllers/base.css.erb +0 -205
- data/app/assets/stylesheets/releaf/controllers/releaf/content.css.erb +0 -422
- data/app/assets/stylesheets/releaf/controllers/releaf/sessions.css.scss.erb +0 -116
- data/app/assets/stylesheets/releaf/controllers/releaf/translations.css.erb +0 -205
- data/app/assets/stylesheets/releaf/include/button.css.erb +0 -176
- data/app/assets/stylesheets/releaf/include/field.css.erb +0 -281
- data/app/assets/stylesheets/releaf/include/input.css.erb +0 -40
- data/app/assets/stylesheets/releaf/include/main_menu.css.erb +0 -66
- data/app/assets/stylesheets/releaf/include/pagination.css.erb +0 -29
- data/app/assets/stylesheets/releaf/include/panel_layout.css.erb +0 -251
- data/app/assets/stylesheets/releaf/include/releaf_table.css.erb +0 -112
- data/app/assets/stylesheets/releaf/include/sortable.css.erb +0 -12
- data/app/controllers/releaf/admins_controller.rb +0 -55
- data/app/controllers/releaf/application_controller.rb +0 -11
- data/app/controllers/releaf/base_application_controller.rb +0 -18
- data/app/controllers/releaf/base_controller.rb +0 -571
- data/app/controllers/releaf/content_controller.rb +0 -183
- data/app/controllers/releaf/roles_controller.rb +0 -38
- data/app/controllers/releaf/sessions_controller.rb +0 -27
- data/app/controllers/releaf/tinymce_assets_controller.rb +0 -26
- data/app/controllers/releaf/translations_controller.rb +0 -117
- data/app/helpers/releaf/admin_helper.rb +0 -59
- data/app/helpers/releaf/application_helper.rb +0 -4
- data/app/helpers/releaf/pagination_renderer.rb +0 -44
- data/app/helpers/releaf/releaf_devise_helper.rb +0 -8
- data/app/models/releaf/admin.rb +0 -60
- data/app/models/releaf/blank_node_base.rb +0 -29
- data/app/models/releaf/node.rb +0 -222
- data/app/models/releaf/node_base.rb +0 -31
- data/app/models/releaf/role.rb +0 -126
- data/app/models/releaf/tinymce_asset.rb +0 -6
- data/app/views/layouts/releaf/admin.html.haml +0 -57
- data/app/views/layouts/releaf/devise.html.haml +0 -32
- data/app/views/releaf/aliases/_edit.body.html.haml +0 -50
- data/app/views/releaf/aliases/_edit.header.html.haml +0 -19
- data/app/views/releaf/aliases/_index.row.html.haml +0 -5
- data/app/views/releaf/aliases/_secondary_panel.html.haml +0 -13
- data/app/views/releaf/base/_edit.body.html.haml +0 -11
- data/app/views/releaf/base/_edit.field.html.haml +0 -23
- data/app/views/releaf/base/_edit.field_type_autocomplete.html.haml +0 -15
- data/app/views/releaf/base/_edit.field_type_boolean.html.haml +0 -5
- data/app/views/releaf/base/_edit.field_type_date.html.haml +0 -8
- data/app/views/releaf/base/_edit.field_type_datetime.html.haml +0 -8
- data/app/views/releaf/base/_edit.field_type_delete_nested.html.haml +0 -3
- data/app/views/releaf/base/_edit.field_type_file.html.haml +0 -10
- data/app/views/releaf/base/_edit.field_type_image.html.haml +0 -12
- data/app/views/releaf/base/_edit.field_type_item.html.haml +0 -31
- data/app/views/releaf/base/_edit.field_type_link.html.haml +0 -4
- data/app/views/releaf/base/_edit.field_type_link_i18n.html.haml +0 -26
- data/app/views/releaf/base/_edit.field_type_password.html.haml +0 -4
- data/app/views/releaf/base/_edit.field_type_richtext.html.haml +0 -4
- data/app/views/releaf/base/_edit.field_type_richtext_i18n.html.haml +0 -27
- data/app/views/releaf/base/_edit.field_type_text.html.haml +0 -4
- data/app/views/releaf/base/_edit.field_type_text_i18n.html.haml +0 -27
- data/app/views/releaf/base/_edit.field_type_textarea.html.haml +0 -4
- data/app/views/releaf/base/_edit.field_type_textarea_i18n.html.haml +0 -27
- data/app/views/releaf/base/_edit.field_type_time.html.haml +0 -8
- data/app/views/releaf/base/_edit.fields.association.html.haml +0 -48
- data/app/views/releaf/base/_edit.fields.has_many_template.html.haml +0 -15
- data/app/views/releaf/base/_edit.fields.html.haml +0 -20
- data/app/views/releaf/base/_edit.footer.html.haml +0 -14
- data/app/views/releaf/base/_edit.form.html.haml +0 -4
- data/app/views/releaf/base/_edit.header.html.haml +0 -3
- data/app/views/releaf/base/_index.body.html.haml +0 -6
- data/app/views/releaf/base/_index.cell.html.haml +0 -20
- data/app/views/releaf/base/_index.footer.html.haml +0 -28
- data/app/views/releaf/base/_index.header.html.haml +0 -4
- data/app/views/releaf/base/_index.row.html.haml +0 -6
- data/app/views/releaf/base/_index.search.html.haml +0 -5
- data/app/views/releaf/base/_index.table.html.haml +0 -24
- data/app/views/releaf/base/_secondary_panel.html.haml +0 -10
- data/app/views/releaf/base/_show.body.html.haml +0 -3
- data/app/views/releaf/base/_show.field.html.haml +0 -20
- data/app/views/releaf/base/_show.field_type_date.html.haml +0 -9
- data/app/views/releaf/base/_show.field_type_date_time.html.haml +0 -9
- data/app/views/releaf/base/_show.field_type_email.html.haml +0 -6
- data/app/views/releaf/base/_show.field_type_file.html.haml +0 -7
- data/app/views/releaf/base/_show.field_type_image.html.haml +0 -10
- data/app/views/releaf/base/_show.field_type_item.html.haml +0 -11
- data/app/views/releaf/base/_show.field_type_link.html.haml +0 -14
- data/app/views/releaf/base/_show.field_type_password.html.haml +0 -6
- data/app/views/releaf/base/_show.field_type_richtext.html.haml +0 -6
- data/app/views/releaf/base/_show.field_type_text.html.haml +0 -6
- data/app/views/releaf/base/_show.field_type_textarea.html.haml +0 -6
- data/app/views/releaf/base/_show.field_type_time.html.haml +0 -9
- data/app/views/releaf/base/_show.field_type_url.html.haml +0 -7
- data/app/views/releaf/base/_show.fields.association.html.haml +0 -36
- data/app/views/releaf/base/_show.fields.has_many_template.html.haml +0 -12
- data/app/views/releaf/base/_show.fields.html.haml +0 -17
- data/app/views/releaf/base/_show.footer.html.haml +0 -18
- data/app/views/releaf/base/_show.header.html.haml +0 -3
- data/app/views/releaf/base/confirm_destroy.html.haml +0 -17
- data/app/views/releaf/base/edit.html.haml +0 -1
- data/app/views/releaf/base/index.html.haml +0 -3
- data/app/views/releaf/base/new.html.haml +0 -1
- data/app/views/releaf/base/show.html.haml +0 -3
- data/app/views/releaf/content/_edit.body.html.haml +0 -46
- data/app/views/releaf/content/_edit.content_fields.html.haml +0 -11
- data/app/views/releaf/content/_edit.fields.html.haml +0 -17
- data/app/views/releaf/content/_edit.slug.html.haml +0 -12
- data/app/views/releaf/content/_get_content_form.html.haml +0 -7
- data/app/views/releaf/content/_secondary_panel.html.haml +0 -3
- data/app/views/releaf/content/_tree_level.html.haml +0 -16
- data/app/views/releaf/content/ajax.new.html.haml +0 -3
- data/app/views/releaf/content/index.html.haml +0 -0
- data/app/views/releaf/roles/_edit.field.permissions.html.haml +0 -5
- data/app/views/releaf/roles/_show.field.default.html.haml +0 -6
- data/app/views/releaf/roles/_show.field.permissions.html.haml +0 -11
- data/app/views/releaf/sessions/new.html.haml +0 -17
- data/app/views/releaf/translations/_edit.body.html.haml +0 -50
- data/app/views/releaf/translations/_edit.header.html.haml +0 -19
- data/app/views/releaf/translations/_index.row.html.haml +0 -5
- data/app/views/releaf/translations/_secondary_panel.html.haml +0 -13
- data/bin/releaf +0 -25
- data/lib/generators/releaf/install_generator.rb +0 -87
- data/lib/generators/releaf/templates/config/common_fields.yml.example +0 -17
- data/lib/generators/releaf/templates/controllers/home_controller.rb +0 -4
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_222222_256x240.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_454545_256x240.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_888888_256x240.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/lightbox/close.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/lightbox/loading.gif +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/lightbox/next.png +0 -0
- data/lib/generators/releaf/templates/images/3rd_party/lightbox/prev.png +0 -0
- data/lib/generators/releaf/templates/initializers/releaf.rb +0 -20
- data/lib/generators/releaf/templates/initializers/releaf_i18n.rb +0 -25
- data/lib/generators/releaf/templates/initializers/releaf_store_current_template.rb +0 -25
- data/lib/generators/releaf/templates/javascripts/3rd_party/jquery.jcarousel.js +0 -1058
- data/lib/generators/releaf/templates/javascripts/3rd_party/jquery_ui.js +0 -14850
- data/lib/generators/releaf/templates/javascripts/3rd_party/lightbox.js.erb +0 -379
- data/lib/generators/releaf/templates/javascripts/application.js +0 -15
- data/lib/generators/releaf/templates/javascripts/lib/init_jcarousel.js +0 -40
- data/lib/generators/releaf/templates/javascripts/lib/js_check.js +0 -8
- data/lib/generators/releaf/templates/javascripts/lib/request_url.js +0 -169
- data/lib/generators/releaf/templates/javascripts/lib/sortable.js +0 -29
- data/lib/generators/releaf/templates/migrations/create_releaf_admins.rb +0 -53
- data/lib/generators/releaf/templates/migrations/create_releaf_nodes.rb +0 -25
- data/lib/generators/releaf/templates/migrations/create_releaf_roles.rb +0 -12
- data/lib/generators/releaf/templates/migrations/create_releaf_tinymce_assets.rb +0 -11
- data/lib/generators/releaf/templates/migrations/create_releaf_translations.rb +0 -31
- data/lib/generators/releaf/templates/models/admin_ability.rb +0 -51
- data/lib/generators/releaf/templates/seeds.rb +0 -64
- data/lib/generators/releaf/templates/stylesheets/3rd_party/jquery_ui/smoothness.css.erb +0 -1174
- data/lib/generators/releaf/templates/stylesheets/3rd_party/lightbox.css.erb +0 -157
- data/lib/generators/releaf/templates/stylesheets/3rd_party/reset.css +0 -48
- data/lib/generators/releaf/templates/stylesheets/application.scss +0 -15
- data/lib/generators/releaf/templates/stylesheets/style.scss +0 -45
- data/lib/generators/releaf/templates/views/home/index.html.haml +0 -1
- data/lib/generators/releaf/templates/views/layouts/application.html.haml +0 -26
- data/lib/i18n/backend/releaf.rb +0 -97
- data/lib/i18n/backend/releaf/translation.rb +0 -61
- data/lib/i18n/backend/releaf/translation_data.rb +0 -39
- data/lib/i18n/backend/releaf/translation_group.rb +0 -34
- data/lib/i18n/releaf.rb +0 -1
- data/lib/releaf/boolean_at.rb +0 -77
- data/lib/releaf/engine.rb +0 -4
- data/lib/releaf/globalize3/fallbacks.rb +0 -19
- data/lib/releaf/resources.rb +0 -101
- data/lib/releaf/slug.rb +0 -118
- data/lib/releaf/version.rb +0 -3
- data/lib/tasks/releaf_tasks.rake +0 -4
- data/spec/factories/factories.rb +0 -24
- data/spec/features/admin_spec.rb +0 -41
- data/templates/releaf/installer.rb +0 -207
@@ -1,40 +0,0 @@
|
|
1
|
-
/* base input styling */
|
2
|
-
input,
|
3
|
-
select
|
4
|
-
{
|
5
|
-
font-size: 100%;
|
6
|
-
}
|
7
|
-
input,
|
8
|
-
select,
|
9
|
-
textarea
|
10
|
-
{
|
11
|
-
border: 1px solid #ABABAB;
|
12
|
-
border-top-color: #707070;
|
13
|
-
border-bottom-color: #CECECE;
|
14
|
-
padding: 2px 3px;
|
15
|
-
background: white url("<%= asset_path 'releaf/input/input_bgr.gif' %>") repeat-x 0 -1px;
|
16
|
-
margin: 0;
|
17
|
-
}
|
18
|
-
select
|
19
|
-
{
|
20
|
-
padding: 1px;
|
21
|
-
cursor: pointer;
|
22
|
-
}
|
23
|
-
input:focus,
|
24
|
-
select:focus,
|
25
|
-
textarea:focus,
|
26
|
-
.mceLayout.focus
|
27
|
-
{
|
28
|
-
border-color: #989ea4;
|
29
|
-
border-top-color: #7c8288;
|
30
|
-
border-bottom-color: #a8aeb4;
|
31
|
-
outline: none;
|
32
|
-
box-shadow: 0 0 4px 1px #2878D4;
|
33
|
-
}
|
34
|
-
input[disabled],
|
35
|
-
select[disabled],
|
36
|
-
textarea[disabled]
|
37
|
-
{
|
38
|
-
background: transparent none;
|
39
|
-
border-color: #CECECE;
|
40
|
-
}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
.main_menu
|
2
|
-
{
|
3
|
-
background: #7B8A98 url("<%= asset_path 'releaf/main_menu/bgr.png' %>") repeat-x left bottom;
|
4
|
-
border-bottom: 1px solid white;
|
5
|
-
}
|
6
|
-
.main_menu ul
|
7
|
-
{
|
8
|
-
padding: 0 0 0 18px;
|
9
|
-
list-style: none;
|
10
|
-
margin: 0;
|
11
|
-
}
|
12
|
-
.main_menu li
|
13
|
-
{
|
14
|
-
display: inline-block;
|
15
|
-
vertical-align: top;
|
16
|
-
}
|
17
|
-
.main_menu a
|
18
|
-
{
|
19
|
-
display: block;
|
20
|
-
padding: 7px 12px 6px 12px;
|
21
|
-
font-size: 140%;
|
22
|
-
text-align: center;
|
23
|
-
text-decoration: none;
|
24
|
-
text-transform: uppercase;
|
25
|
-
min-height: 51px;
|
26
|
-
}
|
27
|
-
.main_menu .active
|
28
|
-
{
|
29
|
-
background: #a5b2bf url("<%= asset_path 'releaf/main_menu/active_bgr.png' %>") repeat-x top left;
|
30
|
-
}
|
31
|
-
.main_menu a:hover
|
32
|
-
{
|
33
|
-
background: #a5b2bf url("<%= asset_path 'releaf/main_menu/hover_bgr.png' %>") repeat-x top left;
|
34
|
-
text-decoration: none;
|
35
|
-
}
|
36
|
-
.main_menu .image_container
|
37
|
-
{
|
38
|
-
display: block;
|
39
|
-
min-height: 36px;
|
40
|
-
}
|
41
|
-
.main_menu .name_wrap
|
42
|
-
{
|
43
|
-
font-size: 0.63em;
|
44
|
-
color: #f2f2f2;
|
45
|
-
text-shadow: 0px 1px 0px black;
|
46
|
-
display: block;
|
47
|
-
}
|
48
|
-
.main_menu .active .name_wrap,
|
49
|
-
.main_menu a:hover .name_wrap
|
50
|
-
{
|
51
|
-
text-shadow: 0px 1px 0px rgba(255,255,255,.8);
|
52
|
-
color: black;
|
53
|
-
}
|
54
|
-
.main_menu a:hover .name_wrap
|
55
|
-
{
|
56
|
-
text-shadow: 0px 1px 0px rgba(255,255,255,1);
|
57
|
-
}
|
58
|
-
.main_menu .user
|
59
|
-
{
|
60
|
-
position:absolute;
|
61
|
-
top:0;
|
62
|
-
right: 10px;
|
63
|
-
text-transform:uppercase;
|
64
|
-
text-align: center;
|
65
|
-
}
|
66
|
-
|
@@ -1,29 +0,0 @@
|
|
1
|
-
.primary_panel .pagination
|
2
|
-
{
|
3
|
-
display: inline-block;
|
4
|
-
}
|
5
|
-
.primary_panel .pagination .current
|
6
|
-
{
|
7
|
-
font-style: normal;
|
8
|
-
cursor: default;
|
9
|
-
}
|
10
|
-
.primary_panel .pagination .previous_page,
|
11
|
-
.primary_panel .pagination .next_page
|
12
|
-
{
|
13
|
-
padding-left: 16px;
|
14
|
-
padding-right: 16px;
|
15
|
-
}
|
16
|
-
.primary_panel .pagination .previous_page
|
17
|
-
{
|
18
|
-
border-top-left-radius: 10px;
|
19
|
-
border-bottom-left-radius: 10px;
|
20
|
-
}
|
21
|
-
.primary_panel .pagination .next_page
|
22
|
-
{
|
23
|
-
border-top-right-radius: 10px;
|
24
|
-
border-bottom-right-radius: 10px;
|
25
|
-
}
|
26
|
-
.primary_panel .pagination .gap
|
27
|
-
{
|
28
|
-
opacity: 1;
|
29
|
-
}
|
@@ -1,251 +0,0 @@
|
|
1
|
-
/* panel layout */
|
2
|
-
.panel_layout
|
3
|
-
{
|
4
|
-
position: absolute;
|
5
|
-
top: 65px;
|
6
|
-
bottom: 0;
|
7
|
-
overflow: hidden;
|
8
|
-
width: 100%;
|
9
|
-
}
|
10
|
-
/* TODO: fix these paddings */
|
11
|
-
.panel_layout .header .padding,
|
12
|
-
.panel_layout .header.padding,
|
13
|
-
.panel_layout .footer .padding,
|
14
|
-
.panel_layout .footer.padding
|
15
|
-
{
|
16
|
-
padding: 5px 15px;
|
17
|
-
}
|
18
|
-
.panel_layout .primary_panel .footer .padding
|
19
|
-
{
|
20
|
-
padding-bottom: 20px;
|
21
|
-
}
|
22
|
-
|
23
|
-
/* primary and secondary panel common features */
|
24
|
-
.panel_layout .primary_panel,
|
25
|
-
.panel_layout .secondary_panel
|
26
|
-
{
|
27
|
-
height: 100%;
|
28
|
-
overflow: auto;
|
29
|
-
outline: none;
|
30
|
-
position: relative;
|
31
|
-
}
|
32
|
-
.panel_layout .secondary_panel,
|
33
|
-
.panel_layout .primary_panel,
|
34
|
-
.panel_layout .secondary_panel a,
|
35
|
-
.panel_layout .primary_panel a
|
36
|
-
{
|
37
|
-
color: black;
|
38
|
-
}
|
39
|
-
.panel_layout .primary_panel .inner,
|
40
|
-
.panel_layout .secondary_panel .inner
|
41
|
-
{
|
42
|
-
height: 100%;
|
43
|
-
}
|
44
|
-
|
45
|
-
/* header, body and footer */
|
46
|
-
.panel_layout .header,
|
47
|
-
.panel_layout .body,
|
48
|
-
.panel_layout .footer
|
49
|
-
{
|
50
|
-
position: absolute;
|
51
|
-
left: 0;
|
52
|
-
right: 0;
|
53
|
-
outline: none;
|
54
|
-
}
|
55
|
-
|
56
|
-
/* primary panel */
|
57
|
-
.panel_layout .primary_panel .header
|
58
|
-
{
|
59
|
-
top: 0;
|
60
|
-
}
|
61
|
-
.panel_layout .primary_panel .header h2
|
62
|
-
{
|
63
|
-
margin: 0;
|
64
|
-
display: inline;
|
65
|
-
text-shadow: 0px 1px 0px white;
|
66
|
-
}
|
67
|
-
.panel_layout .primary_panel .body
|
68
|
-
{
|
69
|
-
overflow: auto;
|
70
|
-
bottom: 49px;
|
71
|
-
top: 32px;
|
72
|
-
left: 10px;
|
73
|
-
right: 10px;
|
74
|
-
padding: 0;
|
75
|
-
}
|
76
|
-
.panel_layout .primary_panel .footer
|
77
|
-
{
|
78
|
-
bottom: 0;
|
79
|
-
height: 41px;
|
80
|
-
overflow: hidden;
|
81
|
-
}
|
82
|
-
.panel_layout .primary_panel .footer.center
|
83
|
-
{
|
84
|
-
text-align: center;
|
85
|
-
}
|
86
|
-
|
87
|
-
/* boxes */
|
88
|
-
.panel_layout .inset_box,
|
89
|
-
.panel_layout .outset_box
|
90
|
-
{
|
91
|
-
border-width: 0px;
|
92
|
-
border-style: solid;
|
93
|
-
border-radius: 5px;
|
94
|
-
}
|
95
|
-
.panel_layout .outset_box
|
96
|
-
{
|
97
|
-
padding: 15px 5px;
|
98
|
-
background-color: white;
|
99
|
-
border-color: #D0D0D0 #bfbfbf #a6a6a6 #bfbfbf;
|
100
|
-
box-shadow: 0px 1px 2px rgba(0,0,0,.5), 0px -1px 0px rgba(0,0,0,.05);
|
101
|
-
}
|
102
|
-
.panel_layout .inset_box
|
103
|
-
{
|
104
|
-
background-color: #e8e8e8;
|
105
|
-
padding-top: 20px;
|
106
|
-
border-color: #707070 #ABABAB #CECECE;
|
107
|
-
padding-right: 2px;
|
108
|
-
padding-left: 2px;
|
109
|
-
box-shadow: 0px 1px 3px rgba(0,0,0,.5) inset;
|
110
|
-
}
|
111
|
-
.panel_layout .inset_box.no_shadow,
|
112
|
-
.panel_layout .outset_box.no_shadow
|
113
|
-
{
|
114
|
-
box-shadow: none;
|
115
|
-
border-width: 1px;
|
116
|
-
}
|
117
|
-
|
118
|
-
/* secondary panel */
|
119
|
-
.panel_layout .secondary_panel
|
120
|
-
{
|
121
|
-
float: left;
|
122
|
-
width: 20%;
|
123
|
-
min-width: 200px;
|
124
|
-
max-width: 400px;
|
125
|
-
background: #d6d7da url("<%= asset_path 'releaf/panel_layout/secondary_panel_vertical_bgr.png' %>") repeat-y top left;
|
126
|
-
line-height: 150%;
|
127
|
-
soverflow: visible;
|
128
|
-
}
|
129
|
-
.panel_layout .secondary_panel .inner
|
130
|
-
{
|
131
|
-
background: transparent url("<%= asset_path 'releaf/panel_layout/secondary_panel_horizontal_bgr.png' %>") repeat-x top left;
|
132
|
-
}
|
133
|
-
.panel_layout .secondary_panel .inner:before,
|
134
|
-
.panel_layout .secondary_panel .inner:after
|
135
|
-
{
|
136
|
-
content: ".";
|
137
|
-
visibility: hidden;
|
138
|
-
display: block;
|
139
|
-
height: 0;
|
140
|
-
}
|
141
|
-
.panel_layout .secondary_panel .inner:after
|
142
|
-
{
|
143
|
-
height: 10px;
|
144
|
-
}
|
145
|
-
.panel_layout .secondary_panel .footer
|
146
|
-
{
|
147
|
-
bottom: 0;
|
148
|
-
height: 41px;
|
149
|
-
overflow: hidden;
|
150
|
-
}
|
151
|
-
.panel_layout .secondary_panel .standard_submenu ul ul
|
152
|
-
{
|
153
|
-
padding: 0;
|
154
|
-
}
|
155
|
-
.panel_layout .secondary_panel .standard_submenu .section_title
|
156
|
-
{
|
157
|
-
margin-top: 10px;
|
158
|
-
padding: 0 10px 0 15px;
|
159
|
-
text-transform: uppercase;
|
160
|
-
font-size: 85%;
|
161
|
-
font-weight: bold;
|
162
|
-
color: black;
|
163
|
-
text-shadow: 0px 1px 0px #f0f0f0;
|
164
|
-
}
|
165
|
-
.panel_layout .secondary_panel .standard_submenu a
|
166
|
-
{
|
167
|
-
color: inherit;
|
168
|
-
}
|
169
|
-
.panel_layout .secondary_panel .standard_submenu a,
|
170
|
-
.panel_layout .secondary_panel .standard_submenu li > span
|
171
|
-
{
|
172
|
-
text-decoration: none;
|
173
|
-
padding: 1px 7px 1px 23px;
|
174
|
-
display: block;
|
175
|
-
outline: none;
|
176
|
-
}
|
177
|
-
.panel_layout .secondary_panel .standard_submenu li.disabled
|
178
|
-
{
|
179
|
-
background-color: transparent;
|
180
|
-
color: #999999;
|
181
|
-
}
|
182
|
-
.panel_layout .secondary_panel .standard_submenu a:hover,
|
183
|
-
.panel_layout .secondary_panel .standard_submenu .active a
|
184
|
-
{
|
185
|
-
border-color: #a498b3;
|
186
|
-
background: #7c8ea0 url("<%= asset_path 'releaf/panel_layout/active_bgr.png' %>") repeat-x top left;
|
187
|
-
position: relative;
|
188
|
-
z-index: 2;
|
189
|
-
color: white;
|
190
|
-
}
|
191
|
-
.panel_layout .secondary_panel .standard_submenu a:hover,
|
192
|
-
.panel_layout .secondary_panel .standard_submenu .active a:hover
|
193
|
-
{
|
194
|
-
border-color: #a498b3;
|
195
|
-
background-color: #a5b2bf;
|
196
|
-
}
|
197
|
-
.panel_layout .secondary_panel .standard_submenu .active a
|
198
|
-
{
|
199
|
-
text-shadow: rgba(0, 0, 0, 0.4) 0 1px;
|
200
|
-
}
|
201
|
-
.panel_layout .secondary_panel .standard_submenu li li:hover a
|
202
|
-
{
|
203
|
-
text-shadow: rgba(0, 0, 0, .6) 0 1px 7px;
|
204
|
-
}
|
205
|
-
.panel_layout .secondary_panel .standard_submenu .active a,
|
206
|
-
.panel_layout .secondary_panel .standard_submenu .active:hover a
|
207
|
-
{
|
208
|
-
margin-bottom: -1px;
|
209
|
-
}
|
210
|
-
.panel_layout .secondary_panel .standard_submenu .active a
|
211
|
-
{
|
212
|
-
padding-top: 0px;
|
213
|
-
border-top: 1px solid #8595a5;
|
214
|
-
}
|
215
|
-
.panel_layout .secondary_panel .standard_submenu .active a,
|
216
|
-
.panel_layout .secondary_panel .standard_submenu .active:hover a
|
217
|
-
{
|
218
|
-
border-bottom: 1px solid #e3e3e5;
|
219
|
-
}
|
220
|
-
|
221
|
-
/* badge */
|
222
|
-
.panel_layout .secondary_panel .standard_submenu .badge
|
223
|
-
{
|
224
|
-
display: inline-block;
|
225
|
-
padding: 1px 8px;
|
226
|
-
line-height: 13px;
|
227
|
-
border: 1px solid #900;
|
228
|
-
font-weight: bold;
|
229
|
-
font-size: 80%;
|
230
|
-
opacity: 0.8;
|
231
|
-
border-radius: 18px;
|
232
|
-
background: #7C8EA0;
|
233
|
-
color: #fff;
|
234
|
-
position: relative;
|
235
|
-
top: -1px;
|
236
|
-
margin-left: 1em;
|
237
|
-
}
|
238
|
-
.panel_layout .secondary_panel .standard_submenu .badge.warning
|
239
|
-
{
|
240
|
-
background: #cc0033;
|
241
|
-
color: #fff;
|
242
|
-
}
|
243
|
-
.panel_layout .secondary_panel .standard_submenu .badge.ok
|
244
|
-
{
|
245
|
-
background: #05B81d;
|
246
|
-
border: 1px solid #080;
|
247
|
-
}
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
@@ -1,112 +0,0 @@
|
|
1
|
-
/* basic layout for non-html tables */
|
2
|
-
div.releaf_table
|
3
|
-
{
|
4
|
-
display: table;
|
5
|
-
}
|
6
|
-
.releaf_table .thead
|
7
|
-
{
|
8
|
-
display: table-header-group;
|
9
|
-
}
|
10
|
-
.releaf_table .tbody
|
11
|
-
{
|
12
|
-
display: table-row-group;
|
13
|
-
}
|
14
|
-
.releaf_table .thead > *,
|
15
|
-
.releaf_table .tbody > *
|
16
|
-
{
|
17
|
-
display: table-row;
|
18
|
-
}
|
19
|
-
.releaf_table .thead > * > *,
|
20
|
-
.releaf_table .tbody > * > *
|
21
|
-
{
|
22
|
-
display: table-cell;
|
23
|
-
}
|
24
|
-
.releaf_table .thead > a,
|
25
|
-
.releaf_table .tbody > a,
|
26
|
-
.releaf_table .tbody > * > a
|
27
|
-
{
|
28
|
-
text-decoration: none;
|
29
|
-
}
|
30
|
-
/* releaf_table */
|
31
|
-
.releaf_table
|
32
|
-
{
|
33
|
-
width: 100%;
|
34
|
-
line-height: normal;
|
35
|
-
background-color: white;
|
36
|
-
border: 1px solid #d0d0d0;
|
37
|
-
}
|
38
|
-
.releaf_table.no_border
|
39
|
-
{
|
40
|
-
border-width: 0px;
|
41
|
-
}
|
42
|
-
.releaf_table td,
|
43
|
-
.releaf_table th,
|
44
|
-
.releaf_table .thead > * > *,
|
45
|
-
.releaf_table .tbody > * > *
|
46
|
-
{
|
47
|
-
padding: 4px;
|
48
|
-
}
|
49
|
-
.releaf_table th,
|
50
|
-
.releaf_table .thead > * > *
|
51
|
-
{
|
52
|
-
background: #F9F9F9 url("<%= asset_path 'releaf/releaf_table/th_bgr.gif' %>") repeat-x 0px bottom;
|
53
|
-
border-left: 1px solid #EEEEEE;
|
54
|
-
border-right: 1px solid #D0D0D0;
|
55
|
-
padding: 6px 4px 6px 4px;
|
56
|
-
font-weight: bold;
|
57
|
-
text-align: left;
|
58
|
-
text-shadow: 0px 1px white;
|
59
|
-
}
|
60
|
-
.releaf_table td,
|
61
|
-
.releaf_table .tbody > * > *
|
62
|
-
{
|
63
|
-
border-right: 1px solid #f0f0f0;
|
64
|
-
}
|
65
|
-
.releaf_table tbody tr:nth-child(odd),
|
66
|
-
.releaf_table .tbody > *:nth-child(odd)
|
67
|
-
{
|
68
|
-
background-color: #F7F9FA;
|
69
|
-
}
|
70
|
-
.releaf_table tr > td:last-child,
|
71
|
-
.releaf_table tr > th:last-child,
|
72
|
-
.releaf_table .thead > * > *:last-child,
|
73
|
-
.releaf_table .tbody > * > *:last-child
|
74
|
-
{
|
75
|
-
border-right: none;
|
76
|
-
}
|
77
|
-
.releaf_table.selectable tr:not(.unselectable):hover,
|
78
|
-
.releaf_table.selectable .tbody > *:not(.unselectable):hover
|
79
|
-
{
|
80
|
-
cursor: pointer;
|
81
|
-
background-color: #e4e1f5;
|
82
|
-
}
|
83
|
-
.releaf_table.selectable tr:not(.unselectable):hover td,
|
84
|
-
.releaf_table.selectable .tbody > *:not(.unselectable):hover > *
|
85
|
-
{
|
86
|
-
border-color: transparent;
|
87
|
-
}
|
88
|
-
.releaf_table.selectable tr.selected,
|
89
|
-
.releaf_table.selectable tr.selected:hover,
|
90
|
-
.releaf_table.selectable .tbody > .selected,
|
91
|
-
.releaf_table.selectable .tbody > .selected:hover
|
92
|
-
{
|
93
|
-
background: #cac2fa url("<%= asset_path 'releaf/releaf_table/selected_bgr.png' %>") repeat-x left top;
|
94
|
-
}
|
95
|
-
.releaf_table.selectable .selected td,
|
96
|
-
.releaf_table.selectable .tbody > .selected > *
|
97
|
-
{
|
98
|
-
border-color: transparent;
|
99
|
-
}
|
100
|
-
.releaf_table.label_first_column tbody tr td:first-child,
|
101
|
-
.releaf_table.label_first_column tbody tr th:first-child,
|
102
|
-
.releaf_table.label_first_column tbody tr:hover td:first-child,
|
103
|
-
.releaf_table.label_first_column tbody tr:hover th:first-child,
|
104
|
-
.releaf_table.label_first_column .tbody > * > *:first-child,
|
105
|
-
.releaf_table.label_first_column .tbody > *:hover > *:first-child
|
106
|
-
{
|
107
|
-
background: #f5f7f8 none;
|
108
|
-
border-right: 1px solid #d0d0d0;
|
109
|
-
border-top-color: transparent;
|
110
|
-
border-bottom-color: transparent;
|
111
|
-
}
|
112
|
-
|