├── lib ├── tasks │ └── .gitkeep ├── spree_site.rb ├── spree_address_book_fix.rb └── paperclip │ └── extent.rb ├── public ├── favicon.ico ├── stylesheets │ ├── .gitkeep │ └── admin │ │ └── inline_help.css ├── images │ ├── cart.png │ ├── foto.png │ ├── gerb.png │ ├── gerb2.png │ ├── grid.png │ ├── logo.gif │ ├── logo.png │ ├── main.jpg │ ├── order.png │ ├── rails.png │ ├── spree.jpg │ ├── uzor.png │ ├── button.png │ ├── favicon.ico │ ├── footer.jpg │ ├── foto_01.png │ ├── foto_02.png │ ├── foto_03.png │ ├── foto_04.png │ ├── foto_05.png │ ├── foto_06.png │ ├── left_01.png │ ├── main_l.png │ ├── marker1.png │ ├── marker2.png │ ├── reorder.jpg │ ├── search.png │ ├── spinner.gif │ ├── steps │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.png │ │ ├── 4.png │ │ ├── 5.png │ │ ├── 6.png │ │ ├── 1_small.png │ │ ├── 2_small.png │ │ ├── 3_small.png │ │ ├── 4_small.png │ │ ├── 5_small.png │ │ └── 6_small.png │ ├── topline.png │ ├── update.png │ ├── amex_cid.gif │ ├── bc_marker.png │ ├── bg-button.gif │ ├── bg-button.png │ ├── body-back.png │ ├── bordertd.png │ ├── bottomline.png │ ├── breadcrumb.gif │ ├── cart-empty.png │ ├── cart-full.png │ ├── checkout.png │ ├── contacts.png │ ├── creditcard.gif │ ├── header_l.png │ ├── header_r.png │ ├── header_r2.png │ ├── header_r3.png │ ├── header_r4.png │ ├── header_r5.png │ ├── leftuzor.png │ ├── master_cid.jpg │ ├── menu-hover.png │ ├── progress.gif │ ├── right_01.png │ ├── rightuzor.png │ ├── separator.png │ ├── shadow-top.png │ ├── shadow_top.png │ ├── tab_bottom.gif │ ├── tdborder.png │ ├── top-shine.png │ ├── visa_cid.gif │ ├── watermark.png │ ├── yui-sprite.png │ ├── add-to-cart.png │ ├── ajax_loader.gif │ ├── blue │ │ ├── left_01.png │ │ └── right_01.png │ ├── bottom_shine.png │ ├── button-dark.png │ ├── discover_cid.gif │ ├── menu-current.png │ ├── noimage │ │ ├── mini.jpg │ │ ├── product.jpg │ │ └── small.jpg │ ├── spree │ │ ├── spree.jpg │ │ ├── progress.gif │ │ └── spinner.gif │ ├── tile-header.png │ ├── tile-slider.png │ ├── upload_file.png │ ├── upload_image.png │ ├── wrapper-back.png │ ├── admin │ │ ├── bg │ │ │ ├── header.png │ │ │ ├── subnav.png │ │ │ ├── spree_50.png │ │ │ ├── tab-back.png │ │ │ ├── active-tab.png │ │ │ ├── flash-error.png │ │ │ ├── header-bg.png │ │ │ ├── header_bg.jpg │ │ │ ├── red-stripes.gif │ │ │ ├── red-stripes.png │ │ │ ├── content-back.png │ │ │ ├── flash-notice.png │ │ │ ├── green-stripes.gif │ │ │ ├── green-stripes.png │ │ │ ├── menu-current.png │ │ │ ├── admin_tab_back.png │ │ │ ├── grid_header_back.png │ │ │ ├── subnav-divider.png │ │ │ ├── content-back-blue.png │ │ │ ├── content-back-green.png │ │ │ ├── admin_tab_selected_back.png │ │ │ └── grid_header_back_green.png │ │ ├── icons │ │ │ ├── add.gif │ │ │ ├── add.png │ │ │ ├── pdf.png │ │ │ ├── up.gif │ │ │ ├── xls.png │ │ │ ├── cross.png │ │ │ ├── drag.gif │ │ │ ├── edit.gif │ │ │ ├── edit.png │ │ │ ├── email.png │ │ │ ├── error.png │ │ │ ├── feed.png │ │ │ ├── help.png │ │ │ ├── stop.png │ │ │ ├── tick.png │ │ │ ├── 16x16 │ │ │ │ ├── 1.png │ │ │ │ ├── 10.png │ │ │ │ ├── 2.png │ │ │ │ ├── 3.png │ │ │ │ ├── 4.png │ │ │ │ ├── 5.png │ │ │ │ ├── 6.png │ │ │ │ ├── 7.png │ │ │ │ ├── 8.png │ │ │ │ └── 9.png │ │ │ ├── 32x32 │ │ │ │ ├── 1.png │ │ │ │ ├── 10.png │ │ │ │ ├── 11.png │ │ │ │ ├── 2.png │ │ │ │ ├── 3.png │ │ │ │ ├── 4.png │ │ │ │ ├── 5.png │ │ │ │ ├── 6.png │ │ │ │ ├── 7.png │ │ │ │ ├── 8.png │ │ │ │ └── 9.png │ │ │ ├── accept.png │ │ │ ├── delete.gif │ │ │ ├── delete.png │ │ │ ├── reorder.gif │ │ │ ├── search.gif │ │ │ ├── arrow-down.gif │ │ │ ├── send-email.png │ │ │ └── exclamation.png │ │ ├── tabs │ │ │ ├── off-left.png │ │ │ ├── off-right.png │ │ │ ├── on-left.png │ │ │ └── on-right.png │ │ └── buttons │ │ │ ├── left_01.png │ │ │ ├── right_01.png │ │ │ ├── blue │ │ │ ├── left_01.png │ │ │ └── right_01.png │ │ │ ├── green │ │ │ ├── left_01.png │ │ │ └── right_01.png │ │ │ ├── left_01_small.png │ │ │ ├── orange │ │ │ ├── left_03.png │ │ │ └── right_03.png │ │ │ ├── right_01_small.png │ │ │ └── drag-handle-green.png │ ├── bg-button-hover.png │ ├── buttons │ │ ├── left_01.png │ │ ├── bg-button.gif │ │ ├── bg-button.png │ │ ├── right_01.png │ │ ├── top-shine.png │ │ ├── blue │ │ │ ├── left_01.png │ │ │ └── right_01.png │ │ ├── button-dark.png │ │ ├── green │ │ │ ├── left_01.png │ │ │ └── right_01.png │ │ ├── left_01_small.png │ │ ├── orange │ │ │ ├── left_03.png │ │ │ └── right_03.png │ │ ├── right_01_small.png │ │ ├── sxsw-ribbon-v1.png │ │ ├── bg-button-hover.png │ │ ├── bg-button-pressed.png │ │ ├── button-dark-hover.png │ │ └── drag-handle-green.png │ ├── cart-empty_x32.png │ ├── cart-full_x32.png │ ├── datepicker │ │ ├── cal.gif │ │ ├── bg_header.jpg │ │ ├── bullet1.gif │ │ ├── bullet2.gif │ │ ├── backstripes.gif │ │ └── gradient-e5e5e5-ffffff.gif │ ├── default_taxon.png │ ├── green │ │ ├── left_01.png │ │ └── right_01.png │ ├── left_01_small.png │ ├── main_uzory_bot.png │ ├── main_uzory_top.png │ ├── orange │ │ ├── left_03.png │ │ └── right_03.png │ ├── right_01_small.png │ ├── sxsw-ribbon-v1.png │ ├── wrapper-back-2.png │ ├── bg-button-pressed.png │ ├── button-dark-hover.png │ ├── drag-handle-green.png │ ├── openid-inputicon.gif │ ├── watermark_border.png │ ├── watermark_border.xcf │ ├── watermark_border2.png │ ├── tree-nav-icons │ │ ├── minus.gif │ │ ├── plus.gif │ │ ├── bullet.gif │ │ ├── treeview-sprite.gif │ │ └── treeview-loading.gif │ ├── yui-menuitem_checkbox.png │ ├── step-progress │ │ ├── current-first.gif │ │ ├── current-right.gif │ │ ├── completed-first.gif │ │ ├── incomplete-right.gif │ │ ├── completed-current.gif │ │ ├── current-incomplete.gif │ │ ├── completed-completed.gif │ │ └── incomplete-incomplete.gif │ ├── calendar_date_select │ │ └── calendar.gif │ ├── yui-menuitem_checkbox_disabled.png │ ├── yui-menuitem_submenuindicator.png │ ├── yui-menubaritem_submenuindicator.png │ ├── yui-menuitem_submenuindicator_disabled.png │ └── yui-menubaritem_submenuindicator_disabled.png ├── fonts │ ├── MyriadPro-Light.eot │ ├── MyriadPro-Light.ttf │ ├── MyriadPro-Light.woff │ ├── MyriadPro-BoldSemiExt.eot │ ├── MyriadPro-BoldSemiExt.ttf │ ├── MyriadPro-BoldSemiExt.woff │ ├── andantino_script_regular_wwww.font-cat.com-webfont.eot │ ├── andantino_script_regular_wwww.font-cat.com-webfont.ttf │ └── andantino_script_regular_wwww.font-cat.com-webfont.woff ├── javascripts │ ├── jsTree │ │ └── themes │ │ │ └── apple │ │ │ ├── bg.jpg │ │ │ ├── d.png │ │ │ ├── dot_for_ie.gif │ │ │ └── throbber.gif │ ├── jquery.alerts │ │ ├── images │ │ │ ├── help.gif │ │ │ ├── info.gif │ │ │ ├── title.gif │ │ │ └── important.gif │ │ └── jquery.alerts.spree.css │ ├── tinymce │ │ ├── plugins │ │ │ ├── example │ │ │ │ ├── langs │ │ │ │ │ ├── en.js │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── img │ │ │ │ │ └── example.gif │ │ │ │ ├── js │ │ │ │ │ └── dialog.js │ │ │ │ └── editor_plugin.js │ │ │ ├── media │ │ │ │ ├── img │ │ │ │ │ ├── flash.gif │ │ │ │ │ ├── trans.gif │ │ │ │ │ ├── quicktime.gif │ │ │ │ │ ├── realmedia.gif │ │ │ │ │ ├── shockwave.gif │ │ │ │ │ ├── flv_player.swf │ │ │ │ │ └── windowsmedia.gif │ │ │ │ └── css │ │ │ │ │ └── content.css │ │ │ ├── advhr │ │ │ │ ├── langs │ │ │ │ │ ├── en_dlg.js │ │ │ │ │ └── ru_dlg.js │ │ │ │ ├── css │ │ │ │ │ └── advhr.css │ │ │ │ └── editor_plugin.js │ │ │ ├── advimage │ │ │ │ ├── img │ │ │ │ │ └── sample.gif │ │ │ │ ├── css │ │ │ │ │ └── advimage.css │ │ │ │ └── editor_plugin.js │ │ │ ├── pagebreak │ │ │ │ ├── img │ │ │ │ │ ├── trans.gif │ │ │ │ │ └── pagebreak.gif │ │ │ │ └── css │ │ │ │ │ └── content.css │ │ │ ├── spellchecker │ │ │ │ ├── css │ │ │ │ │ └── content.css │ │ │ │ ├── img │ │ │ │ │ └── wline.gif │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── emotions │ │ │ │ ├── img │ │ │ │ │ ├── smiley-cool.gif │ │ │ │ │ ├── smiley-cry.gif │ │ │ │ │ ├── smiley-kiss.gif │ │ │ │ │ ├── smiley-wink.gif │ │ │ │ │ ├── smiley-yell.gif │ │ │ │ │ ├── smiley-frown.gif │ │ │ │ │ ├── smiley-sealed.gif │ │ │ │ │ ├── smiley-smile.gif │ │ │ │ │ ├── smiley-innocent.gif │ │ │ │ │ ├── smiley-laughing.gif │ │ │ │ │ ├── smiley-surprised.gif │ │ │ │ │ ├── smiley-undecided.gif │ │ │ │ │ ├── smiley-embarassed.gif │ │ │ │ │ ├── smiley-money-mouth.gif │ │ │ │ │ ├── smiley-tongue-out.gif │ │ │ │ │ └── smiley-foot-in-mouth.gif │ │ │ │ ├── langs │ │ │ │ │ ├── en_dlg.js │ │ │ │ │ └── ru_dlg.js │ │ │ │ ├── js │ │ │ │ │ └── emotions.js │ │ │ │ └── editor_plugin.js │ │ │ ├── wordcount │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── inlinepopups │ │ │ │ └── skins │ │ │ │ │ └── clearlooks2 │ │ │ │ │ └── img │ │ │ │ │ ├── alert.gif │ │ │ │ │ ├── button.gif │ │ │ │ │ ├── buttons.gif │ │ │ │ │ ├── confirm.gif │ │ │ │ │ ├── corners.gif │ │ │ │ │ ├── vertical.gif │ │ │ │ │ └── horizontal.gif │ │ │ ├── searchreplace │ │ │ │ ├── css │ │ │ │ │ └── searchreplace.css │ │ │ │ └── langs │ │ │ │ │ └── en_dlg.js │ │ │ ├── table │ │ │ │ ├── css │ │ │ │ │ ├── table.css │ │ │ │ │ ├── cell.css │ │ │ │ │ └── row.css │ │ │ │ └── js │ │ │ │ │ └── merge_cells.js │ │ │ ├── paste │ │ │ │ ├── langs │ │ │ │ │ ├── en_dlg.js │ │ │ │ │ └── ru_dlg.js │ │ │ │ └── pasteword.htm │ │ │ ├── xhtmlxtras │ │ │ │ ├── css │ │ │ │ │ ├── attributes.css │ │ │ │ │ └── popup.css │ │ │ │ └── js │ │ │ │ │ ├── abbr.js │ │ │ │ │ ├── cite.js │ │ │ │ │ └── acronym.js │ │ │ ├── autosave │ │ │ │ └── langs │ │ │ │ │ └── en.js │ │ │ ├── template │ │ │ │ ├── blank.htm │ │ │ │ ├── css │ │ │ │ │ └── template.css │ │ │ │ └── langs │ │ │ │ │ └── en_dlg.js │ │ │ ├── print │ │ │ │ └── editor_plugin.js │ │ │ ├── advlink │ │ │ │ └── css │ │ │ │ │ └── advlink.css │ │ │ ├── preview │ │ │ │ ├── preview.html │ │ │ │ └── example.html │ │ │ ├── iespell │ │ │ │ └── editor_plugin.js │ │ │ └── style │ │ │ │ └── css │ │ │ │ └── props.css │ │ └── themes │ │ │ ├── simple │ │ │ ├── img │ │ │ │ └── icons.gif │ │ │ ├── skins │ │ │ │ ├── o2k7 │ │ │ │ │ ├── img │ │ │ │ │ │ └── button_bg.png │ │ │ │ │ └── content.css │ │ │ │ └── default │ │ │ │ │ └── content.css │ │ │ └── langs │ │ │ │ ├── en.js │ │ │ │ └── ru.js │ │ │ └── advanced │ │ │ ├── img │ │ │ ├── icons.gif │ │ │ └── colorpicker.jpg │ │ │ └── skins │ │ │ ├── default │ │ │ └── img │ │ │ │ ├── items.gif │ │ │ │ ├── tabs.gif │ │ │ │ ├── buttons.png │ │ │ │ ├── progress.gif │ │ │ │ ├── menu_arrow.gif │ │ │ │ └── menu_check.gif │ │ │ └── o2k7 │ │ │ ├── img │ │ │ ├── button_bg.png │ │ │ ├── button_bg_black.png │ │ │ └── button_bg_silver.png │ │ │ └── ui_silver.css │ ├── wymeditor │ │ ├── plugins │ │ │ ├── tidy │ │ │ │ ├── wand.png │ │ │ │ └── README │ │ │ └── fullscreen │ │ │ │ └── icon_fullscreen.gif │ │ ├── iframe │ │ │ └── default │ │ │ │ ├── lbl-p.png │ │ │ │ ├── lbl-h1.png │ │ │ │ ├── lbl-h2.png │ │ │ │ ├── lbl-h3.png │ │ │ │ ├── lbl-h4.png │ │ │ │ ├── lbl-h5.png │ │ │ │ ├── lbl-h6.png │ │ │ │ ├── lbl-pre.png │ │ │ │ └── lbl-blockquote.png │ │ └── skins │ │ │ ├── compact │ │ │ └── icons.png │ │ │ └── wymeditor_icon.png │ ├── admin │ │ ├── payments │ │ │ └── new.js │ │ ├── orders │ │ │ ├── edit_form.js │ │ │ └── edit.js │ │ ├── inline_help.js │ │ ├── address_states.js │ │ └── promotions.js │ ├── application.js │ ├── gateway.js │ ├── open_id.js │ ├── calculator.js │ ├── lang │ │ └── it.js │ ├── nested-attribute.js │ └── localization │ │ ├── messages_tw.js │ │ └── messages_cn.js ├── robots.txt ├── css │ └── reset.css ├── 422.html ├── 404.html └── 500.html ├── vendor └── plugins │ ├── .gitkeep │ └── partial_renderer │ ├── install.rb │ ├── uninstall.rb │ ├── lib │ └── partial_renderer.rb │ ├── init.rb │ ├── test │ ├── test_helper.rb │ └── partial_renderer_test.rb │ ├── tasks │ └── partial_renderer_tasks.rake │ ├── generators │ └── partial_renderer │ │ ├── templates │ │ ├── pagination.haml │ │ └── pagination.erb │ │ ├── USAGE │ │ └── partial_renderer_generator.rb │ ├── Rakefile │ └── README ├── app ├── helpers │ ├── common_helper.rb │ └── application_helper.rb ├── models │ └── user_decorator.rb ├── controllers │ └── application_controller.rb └── views │ ├── common │ ├── articles.haml │ ├── production_by_type.haml │ ├── main.html.erb │ ├── _order_form.haml │ ├── production_by_manufacturer_and_type.haml │ └── product_by_type.haml │ ├── shared │ └── _head.html.erb │ ├── _breadcrumbs.haml │ ├── layouts │ └── application.html.erb │ ├── _left_menu.html.erb │ ├── _left_menu_for_manufacturer.html.erb │ ├── admin │ └── shared │ │ └── _product_sub_menu.html.erb │ ├── orders │ └── show.html.erb │ ├── products │ └── index.html.erb │ └── static_content │ └── show.html.erb ├── db ├── sample │ ├── shipping_categories.yml │ ├── shipping_methods.yml │ ├── preferences.yml │ └── calculators.yml ├── default │ ├── roles.yml │ ├── zones.yml │ └── zone_members.yml ├── seeds.rb └── migrate │ ├── 20101026185022_update_order_state.rb │ ├── 20100929151905_rename_frozen_to_locked.rb │ ├── 20101103212716_drop_anonymous_field_for_user.rb │ ├── 20100624175547_rename_preferences_field.rb │ ├── 20100204105222_add_layout_to_pages.rb │ ├── 20090829000527_add_index_for_page.rb │ ├── 20100306153445_fix_by_popularity.rb │ ├── 20100317120946_add_alt_text_to_images.rb │ ├── 20100502163939_name_for_promotions.rb │ ├── 20100903203949_email_for_orders.rb │ ├── 20090814142845_add_default_true_to_visible_for_page.rb │ ├── 20100107141738_add_api_key_to_users.rb │ ├── 20101026184916_prevent_nil_payment_total.rb │ ├── 20091209153045_state_for_shipments.rb │ ├── 20100528155333_index_for_shipments_number.rb │ ├── 20100811205836_drop_order_token.rb │ ├── 20100301163454_add_adjustments_index.rb │ ├── 20100825095803_add_sku_to_option_values.rb │ ├── 20101223215658_add_position_to_variants.rb │ ├── 20110110130847_add_next_state_to_state_events.rb │ ├── 20091219021134_add_meta_fields_to_pages.rb │ ├── 20101019122221_add_amount_to_option_value.rb │ ├── 20090814113100_add_visible_to_pages.rb │ ├── 20090827180351_add_secondname_to_addresses.rb │ ├── 20100528185820_add_index_on_users_persistence_token.rb │ ├── 20100501084722_match_policy_for_promotions.rb │ ├── 20100624123336_rename_payment_method_display.rb │ ├── 20100816212146_shipping_method_id_for_orders.rb │ ├── 20091211203813_ship_address_id_for_checkouts.rb │ ├── 20100605152042_add_default_to_tax_categories.rb │ ├── 20101028151745_remove_number_and_cvv_from_credicard.rb │ ├── 20091212161118_shipping_method_id_for_checkouts.rb │ ├── 20100427121301_add_display_to_payment_methods.rb │ ├── 20100811163637_add_guest_flag.rb │ ├── 20100105090147_add_cost_price.rb │ ├── 20100121160010_creditcard_id_for_creditcard_txns.rb │ ├── 20100323085528_add_show_in_sidebar_option_to_pages.rb │ ├── 20100419190933_rename_coupons_to_promotions.rb │ ├── 20110111122537_add_position_to_option_types.rb │ ├── 20100624110730_add_display_to_shipping_methods.rb │ ├── 20100813185745_payment_total_for_orders.rb │ ├── 20101026184833_migrate_adjustments.rb │ ├── 20100923162011_create_mail_methods.rb │ ├── 20091126190904_checkout_state_machine.rb │ ├── 20101026184932_prevent_nil_email.rb │ ├── 20110110094042_add_export_flag_to_product.rb │ ├── 20081216193152_create_pages.rb │ ├── 20101111133551_renamed_rma_cancelled_state.rb │ ├── 20101019122559_add_position_to_option_type_prototype.rb │ ├── 20101026192225_cleanup_legacy_tables.rb │ ├── 20100113090919_add_return_authorization_to_inventory_units.rb │ ├── 20101019122611_set_default_for_option_value_amount.rb │ ├── 20100901171814_change_guest_flag_to_anonymous.rb │ ├── 20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb │ ├── 20100419194457_fix_existing_coupon_credits.rb │ ├── 20101026184700_create_log_entries.rb │ ├── 20100113203104_create_trackers.rb │ ├── 20100224153127_deleted_at_for_payment_methods.rb │ ├── 20100923095305_update_calculable_type_for_promotions.rb │ ├── 20091016174634_change_preference_value_type.rb │ ├── 20101214150824_convert_user_remember_field.rb │ ├── 20090904192342_create_indexes_for_inventory_units.rb │ ├── 20100812162326_payments_state_and_assigned_to_order_only.rb │ ├── 20101026184959_generate_anonymous_users.rb │ ├── 20100126103714_create_products_product_groups.rb │ ├── 20100820135707_response_code_and_avs_response_for_payments.rb │ ├── 20100817152723_add_shipment_and_payment_state.rb │ ├── 20100813023502_create_address_keys_for_order.rb │ ├── 20101026184855_remove_shipped_state.rb │ ├── 20101219201531_tokens_for_legacy_orders.rb │ ├── 20110302102208_add_user_id_and_deleted_at_to_addresses.rb │ ├── 20100213103131_change_payments_payment_method_to_belongs_to.rb │ ├── 20100506185838_add_description_to_taxons.rb │ ├── 20100111205525_cim_fields_for_creditcards.rb │ ├── 20100125145351_add_test_mode_to_billing_integration.rb │ ├── 20091209202200_make_state_events_polymorphic.rb │ ├── 20101008190536_move_special_instructions_to_orders.rb │ ├── 20100223183812_drop_billing_integrations.rb │ ├── 20091017175558_create_billing_integrations.rb │ ├── 20100501095202_create_promotion_rules_users.rb │ ├── 20091214183826_populate_legacy_shipment_state.rb │ ├── 20100112151511_create_return_authorizations.rb │ ├── 20101117031806_fix_problematic_index_names.rb │ ├── 20100504142133_add_addresses_checkouts_indexes.rb │ ├── 20101217012656_create_tokenized_permissions.rb │ ├── 20100223170312_sti_for_transactions.rb │ ├── 20100819170125_refactor_adjustments.rb │ ├── 20101026184746_delete_in_progress_orders.rb │ ├── 20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb │ ├── 20091213222815_creditcard_last_four_digits.rb │ ├── 20100105132138_shipment_id_for_inventory_units.rb │ ├── 20090625125735_extend_pages.rb │ ├── 20091015110842_add_open_id_authentication_tables.rb │ ├── 20101026184808_migrate_checkout_to_orders.rb │ ├── 20100506180619_add_icon_to_taxons.rb │ ├── 20100209025806_create_payment_methods.rb │ ├── 20100214212536_assign_creditcard_txns_to_payment.rb │ ├── 20091012120519_product_groups_and_scopes.rb │ ├── 20100426100726_create_promotion_rules.rb │ ├── 20091104151730_add_some_indexes.rb │ └── 20091015153048_add_openid_field_to_users.rb ├── .gitignore ├── config.ru ├── config ├── environment.rb ├── boot.rb ├── initializers │ ├── mime_types.rb │ ├── inflections.rb │ ├── spree_initializer.rb │ ├── backtrace_silencers.rb │ ├── session_store.rb │ └── secret_token.rb ├── locales │ ├── en.yml │ └── ru.yml └── database.yml ├── doc └── README_FOR_APP ├── Rakefile └── script └── rails /lib/tasks/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/stylesheets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/helpers/common_helper.rb: -------------------------------------------------------------------------------- 1 | module CommonHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/install.rb: -------------------------------------------------------------------------------- 1 | # Install hook code here 2 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/uninstall.rb: -------------------------------------------------------------------------------- 1 | # Uninstall hook code here 2 | -------------------------------------------------------------------------------- /public/images/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/cart.png -------------------------------------------------------------------------------- /public/images/foto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/foto.png -------------------------------------------------------------------------------- /public/images/gerb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/gerb.png -------------------------------------------------------------------------------- /public/images/gerb2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/gerb2.png -------------------------------------------------------------------------------- /public/images/grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/grid.png -------------------------------------------------------------------------------- /public/images/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/logo.gif -------------------------------------------------------------------------------- /public/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/logo.png -------------------------------------------------------------------------------- /public/images/main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/main.jpg -------------------------------------------------------------------------------- /public/images/order.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/order.png -------------------------------------------------------------------------------- /public/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/rails.png -------------------------------------------------------------------------------- /public/images/spree.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/spree.jpg -------------------------------------------------------------------------------- /public/images/uzor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/uzor.png -------------------------------------------------------------------------------- /db/sample/shipping_categories.yml: -------------------------------------------------------------------------------- 1 | default_shipping: 2 | id: 1 3 | name: "По умолчанию" 4 | -------------------------------------------------------------------------------- /public/images/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/button.png -------------------------------------------------------------------------------- /public/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/favicon.ico -------------------------------------------------------------------------------- /public/images/footer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/footer.jpg -------------------------------------------------------------------------------- /public/images/foto_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/foto_01.png -------------------------------------------------------------------------------- /public/images/foto_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/foto_02.png -------------------------------------------------------------------------------- /public/images/foto_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/foto_03.png -------------------------------------------------------------------------------- /public/images/foto_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/foto_04.png -------------------------------------------------------------------------------- /public/images/foto_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/foto_05.png -------------------------------------------------------------------------------- /public/images/foto_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/foto_06.png -------------------------------------------------------------------------------- /public/images/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/left_01.png -------------------------------------------------------------------------------- /public/images/main_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/main_l.png -------------------------------------------------------------------------------- /public/images/marker1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/marker1.png -------------------------------------------------------------------------------- /public/images/marker2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/marker2.png -------------------------------------------------------------------------------- /public/images/reorder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/reorder.jpg -------------------------------------------------------------------------------- /public/images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/search.png -------------------------------------------------------------------------------- /public/images/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/spinner.gif -------------------------------------------------------------------------------- /public/images/steps/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/1.png -------------------------------------------------------------------------------- /public/images/steps/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/2.png -------------------------------------------------------------------------------- /public/images/steps/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/3.png -------------------------------------------------------------------------------- /public/images/steps/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/4.png -------------------------------------------------------------------------------- /public/images/steps/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/5.png -------------------------------------------------------------------------------- /public/images/steps/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/6.png -------------------------------------------------------------------------------- /public/images/topline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/topline.png -------------------------------------------------------------------------------- /public/images/update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/update.png -------------------------------------------------------------------------------- /public/images/amex_cid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/amex_cid.gif -------------------------------------------------------------------------------- /public/images/bc_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/bc_marker.png -------------------------------------------------------------------------------- /public/images/bg-button.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/bg-button.gif -------------------------------------------------------------------------------- /public/images/bg-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/bg-button.png -------------------------------------------------------------------------------- /public/images/body-back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/body-back.png -------------------------------------------------------------------------------- /public/images/bordertd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/bordertd.png -------------------------------------------------------------------------------- /public/images/bottomline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/bottomline.png -------------------------------------------------------------------------------- /public/images/breadcrumb.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/breadcrumb.gif -------------------------------------------------------------------------------- /public/images/cart-empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/cart-empty.png -------------------------------------------------------------------------------- /public/images/cart-full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/cart-full.png -------------------------------------------------------------------------------- /public/images/checkout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/checkout.png -------------------------------------------------------------------------------- /public/images/contacts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/contacts.png -------------------------------------------------------------------------------- /public/images/creditcard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/creditcard.gif -------------------------------------------------------------------------------- /public/images/header_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/header_l.png -------------------------------------------------------------------------------- /public/images/header_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/header_r.png -------------------------------------------------------------------------------- /public/images/header_r2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/header_r2.png -------------------------------------------------------------------------------- /public/images/header_r3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/header_r3.png -------------------------------------------------------------------------------- /public/images/header_r4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/header_r4.png -------------------------------------------------------------------------------- /public/images/header_r5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/header_r5.png -------------------------------------------------------------------------------- /public/images/leftuzor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/leftuzor.png -------------------------------------------------------------------------------- /public/images/master_cid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/master_cid.jpg -------------------------------------------------------------------------------- /public/images/menu-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/menu-hover.png -------------------------------------------------------------------------------- /public/images/progress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/progress.gif -------------------------------------------------------------------------------- /public/images/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/right_01.png -------------------------------------------------------------------------------- /public/images/rightuzor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/rightuzor.png -------------------------------------------------------------------------------- /public/images/separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/separator.png -------------------------------------------------------------------------------- /public/images/shadow-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/shadow-top.png -------------------------------------------------------------------------------- /public/images/shadow_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/shadow_top.png -------------------------------------------------------------------------------- /public/images/tab_bottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tab_bottom.gif -------------------------------------------------------------------------------- /public/images/tdborder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tdborder.png -------------------------------------------------------------------------------- /public/images/top-shine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/top-shine.png -------------------------------------------------------------------------------- /public/images/visa_cid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/visa_cid.gif -------------------------------------------------------------------------------- /public/images/watermark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/watermark.png -------------------------------------------------------------------------------- /public/images/yui-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/yui-sprite.png -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/lib/partial_renderer.rb: -------------------------------------------------------------------------------- 1 | require 'will_paginate/partial_renderer' 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .bundle 2 | db/*.sqlite3 3 | db/schema.rb 4 | log/*.log 5 | tmp/ 6 | public/assets/products/* 7 | -------------------------------------------------------------------------------- /public/images/add-to-cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/add-to-cart.png -------------------------------------------------------------------------------- /public/images/ajax_loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/ajax_loader.gif -------------------------------------------------------------------------------- /public/images/blue/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/blue/left_01.png -------------------------------------------------------------------------------- /public/images/bottom_shine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/bottom_shine.png -------------------------------------------------------------------------------- /public/images/button-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/button-dark.png -------------------------------------------------------------------------------- /public/images/discover_cid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/discover_cid.gif -------------------------------------------------------------------------------- /public/images/menu-current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/menu-current.png -------------------------------------------------------------------------------- /public/images/noimage/mini.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/noimage/mini.jpg -------------------------------------------------------------------------------- /public/images/spree/spree.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/spree/spree.jpg -------------------------------------------------------------------------------- /public/images/tile-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tile-header.png -------------------------------------------------------------------------------- /public/images/tile-slider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tile-slider.png -------------------------------------------------------------------------------- /public/images/upload_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/upload_file.png -------------------------------------------------------------------------------- /public/images/upload_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/upload_image.png -------------------------------------------------------------------------------- /public/images/wrapper-back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/wrapper-back.png -------------------------------------------------------------------------------- /db/default/roles.yml: -------------------------------------------------------------------------------- 1 | admin_role: 2 | id: 1 3 | name: admin 4 | 5 | user_role: 6 | id: 2 7 | name: user -------------------------------------------------------------------------------- /public/fonts/MyriadPro-Light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/MyriadPro-Light.eot -------------------------------------------------------------------------------- /public/fonts/MyriadPro-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/MyriadPro-Light.ttf -------------------------------------------------------------------------------- /public/fonts/MyriadPro-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/MyriadPro-Light.woff -------------------------------------------------------------------------------- /public/images/admin/bg/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/header.png -------------------------------------------------------------------------------- /public/images/admin/bg/subnav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/subnav.png -------------------------------------------------------------------------------- /public/images/admin/icons/add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/add.gif -------------------------------------------------------------------------------- /public/images/admin/icons/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/add.png -------------------------------------------------------------------------------- /public/images/admin/icons/pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/pdf.png -------------------------------------------------------------------------------- /public/images/admin/icons/up.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/up.gif -------------------------------------------------------------------------------- /public/images/admin/icons/xls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/xls.png -------------------------------------------------------------------------------- /public/images/bg-button-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/bg-button-hover.png -------------------------------------------------------------------------------- /public/images/blue/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/blue/right_01.png -------------------------------------------------------------------------------- /public/images/buttons/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/left_01.png -------------------------------------------------------------------------------- /public/images/cart-empty_x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/cart-empty_x32.png -------------------------------------------------------------------------------- /public/images/cart-full_x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/cart-full_x32.png -------------------------------------------------------------------------------- /public/images/datepicker/cal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/datepicker/cal.gif -------------------------------------------------------------------------------- /public/images/default_taxon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/default_taxon.png -------------------------------------------------------------------------------- /public/images/green/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/green/left_01.png -------------------------------------------------------------------------------- /public/images/green/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/green/right_01.png -------------------------------------------------------------------------------- /public/images/left_01_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/left_01_small.png -------------------------------------------------------------------------------- /public/images/main_uzory_bot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/main_uzory_bot.png -------------------------------------------------------------------------------- /public/images/main_uzory_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/main_uzory_top.png -------------------------------------------------------------------------------- /public/images/noimage/product.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/noimage/product.jpg -------------------------------------------------------------------------------- /public/images/noimage/small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/noimage/small.jpg -------------------------------------------------------------------------------- /public/images/orange/left_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/orange/left_03.png -------------------------------------------------------------------------------- /public/images/orange/right_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/orange/right_03.png -------------------------------------------------------------------------------- /public/images/right_01_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/right_01_small.png -------------------------------------------------------------------------------- /public/images/spree/progress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/spree/progress.gif -------------------------------------------------------------------------------- /public/images/spree/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/spree/spinner.gif -------------------------------------------------------------------------------- /public/images/steps/1_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/1_small.png -------------------------------------------------------------------------------- /public/images/steps/2_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/2_small.png -------------------------------------------------------------------------------- /public/images/steps/3_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/3_small.png -------------------------------------------------------------------------------- /public/images/steps/4_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/4_small.png -------------------------------------------------------------------------------- /public/images/steps/5_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/5_small.png -------------------------------------------------------------------------------- /public/images/steps/6_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/steps/6_small.png -------------------------------------------------------------------------------- /public/images/sxsw-ribbon-v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/sxsw-ribbon-v1.png -------------------------------------------------------------------------------- /public/images/wrapper-back-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/wrapper-back-2.png -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/init.rb: -------------------------------------------------------------------------------- 1 | require File.join(File.dirname(__FILE__), "lib", "partial_renderer") 2 | -------------------------------------------------------------------------------- /public/images/admin/bg/spree_50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/spree_50.png -------------------------------------------------------------------------------- /public/images/admin/bg/tab-back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/tab-back.png -------------------------------------------------------------------------------- /public/images/admin/icons/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/cross.png -------------------------------------------------------------------------------- /public/images/admin/icons/drag.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/drag.gif -------------------------------------------------------------------------------- /public/images/admin/icons/edit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/edit.gif -------------------------------------------------------------------------------- /public/images/admin/icons/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/edit.png -------------------------------------------------------------------------------- /public/images/admin/icons/email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/email.png -------------------------------------------------------------------------------- /public/images/admin/icons/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/error.png -------------------------------------------------------------------------------- /public/images/admin/icons/feed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/feed.png -------------------------------------------------------------------------------- /public/images/admin/icons/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/help.png -------------------------------------------------------------------------------- /public/images/admin/icons/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/stop.png -------------------------------------------------------------------------------- /public/images/admin/icons/tick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/tick.png -------------------------------------------------------------------------------- /public/images/bg-button-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/bg-button-pressed.png -------------------------------------------------------------------------------- /public/images/button-dark-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/button-dark-hover.png -------------------------------------------------------------------------------- /public/images/buttons/bg-button.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/bg-button.gif -------------------------------------------------------------------------------- /public/images/buttons/bg-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/bg-button.png -------------------------------------------------------------------------------- /public/images/buttons/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/right_01.png -------------------------------------------------------------------------------- /public/images/buttons/top-shine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/top-shine.png -------------------------------------------------------------------------------- /public/images/drag-handle-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/drag-handle-green.png -------------------------------------------------------------------------------- /public/images/openid-inputicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/openid-inputicon.gif -------------------------------------------------------------------------------- /public/images/watermark_border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/watermark_border.png -------------------------------------------------------------------------------- /public/images/watermark_border.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/watermark_border.xcf -------------------------------------------------------------------------------- /public/images/watermark_border2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/watermark_border2.png -------------------------------------------------------------------------------- /app/models/user_decorator.rb: -------------------------------------------------------------------------------- 1 | User.class_eval do 2 | has_many :addresses, :conditions => {:deleted_at => nil} 3 | end 4 | -------------------------------------------------------------------------------- /public/fonts/MyriadPro-BoldSemiExt.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/MyriadPro-BoldSemiExt.eot -------------------------------------------------------------------------------- /public/fonts/MyriadPro-BoldSemiExt.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/MyriadPro-BoldSemiExt.ttf -------------------------------------------------------------------------------- /public/images/admin/bg/active-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/active-tab.png -------------------------------------------------------------------------------- /public/images/admin/bg/flash-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/flash-error.png -------------------------------------------------------------------------------- /public/images/admin/bg/header-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/header-bg.png -------------------------------------------------------------------------------- /public/images/admin/bg/header_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/header_bg.jpg -------------------------------------------------------------------------------- /public/images/admin/bg/red-stripes.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/red-stripes.gif -------------------------------------------------------------------------------- /public/images/admin/bg/red-stripes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/red-stripes.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/1.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/10.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/2.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/3.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/4.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/5.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/6.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/7.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/8.png -------------------------------------------------------------------------------- /public/images/admin/icons/16x16/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/16x16/9.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/1.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/10.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/11.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/2.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/3.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/4.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/5.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/6.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/7.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/8.png -------------------------------------------------------------------------------- /public/images/admin/icons/32x32/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/32x32/9.png -------------------------------------------------------------------------------- /public/images/admin/icons/accept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/accept.png -------------------------------------------------------------------------------- /public/images/admin/icons/delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/delete.gif -------------------------------------------------------------------------------- /public/images/admin/icons/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/delete.png -------------------------------------------------------------------------------- /public/images/admin/icons/reorder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/reorder.gif -------------------------------------------------------------------------------- /public/images/admin/icons/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/search.gif -------------------------------------------------------------------------------- /public/images/admin/tabs/off-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/tabs/off-left.png -------------------------------------------------------------------------------- /public/images/admin/tabs/off-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/tabs/off-right.png -------------------------------------------------------------------------------- /public/images/admin/tabs/on-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/tabs/on-left.png -------------------------------------------------------------------------------- /public/images/admin/tabs/on-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/tabs/on-right.png -------------------------------------------------------------------------------- /public/images/buttons/blue/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/blue/left_01.png -------------------------------------------------------------------------------- /public/images/buttons/button-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/button-dark.png -------------------------------------------------------------------------------- /public/images/datepicker/bg_header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/datepicker/bg_header.jpg -------------------------------------------------------------------------------- /public/images/datepicker/bullet1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/datepicker/bullet1.gif -------------------------------------------------------------------------------- /public/images/datepicker/bullet2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/datepicker/bullet2.gif -------------------------------------------------------------------------------- /public/images/tree-nav-icons/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tree-nav-icons/minus.gif -------------------------------------------------------------------------------- /public/images/tree-nav-icons/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tree-nav-icons/plus.gif -------------------------------------------------------------------------------- /public/fonts/MyriadPro-BoldSemiExt.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/MyriadPro-BoldSemiExt.woff -------------------------------------------------------------------------------- /public/images/admin/bg/content-back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/content-back.png -------------------------------------------------------------------------------- /public/images/admin/bg/flash-notice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/flash-notice.png -------------------------------------------------------------------------------- /public/images/admin/bg/green-stripes.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/green-stripes.gif -------------------------------------------------------------------------------- /public/images/admin/bg/green-stripes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/green-stripes.png -------------------------------------------------------------------------------- /public/images/admin/bg/menu-current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/menu-current.png -------------------------------------------------------------------------------- /public/images/admin/buttons/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/left_01.png -------------------------------------------------------------------------------- /public/images/admin/buttons/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/right_01.png -------------------------------------------------------------------------------- /public/images/admin/icons/arrow-down.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/arrow-down.gif -------------------------------------------------------------------------------- /public/images/admin/icons/send-email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/send-email.png -------------------------------------------------------------------------------- /public/images/buttons/blue/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/blue/right_01.png -------------------------------------------------------------------------------- /public/images/buttons/green/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/green/left_01.png -------------------------------------------------------------------------------- /public/images/buttons/green/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/green/right_01.png -------------------------------------------------------------------------------- /public/images/buttons/left_01_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/left_01_small.png -------------------------------------------------------------------------------- /public/images/buttons/orange/left_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/orange/left_03.png -------------------------------------------------------------------------------- /public/images/buttons/right_01_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/right_01_small.png -------------------------------------------------------------------------------- /public/images/buttons/sxsw-ribbon-v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/sxsw-ribbon-v1.png -------------------------------------------------------------------------------- /public/images/datepicker/backstripes.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/datepicker/backstripes.gif -------------------------------------------------------------------------------- /public/images/tree-nav-icons/bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tree-nav-icons/bullet.gif -------------------------------------------------------------------------------- /public/images/yui-menuitem_checkbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/yui-menuitem_checkbox.png -------------------------------------------------------------------------------- /app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | protect_from_forgery 3 | end 4 | -------------------------------------------------------------------------------- /public/images/admin/bg/admin_tab_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/admin_tab_back.png -------------------------------------------------------------------------------- /public/images/admin/bg/grid_header_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/grid_header_back.png -------------------------------------------------------------------------------- /public/images/admin/bg/subnav-divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/subnav-divider.png -------------------------------------------------------------------------------- /public/images/admin/icons/exclamation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/icons/exclamation.png -------------------------------------------------------------------------------- /public/images/buttons/bg-button-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/bg-button-hover.png -------------------------------------------------------------------------------- /public/images/buttons/bg-button-pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/bg-button-pressed.png -------------------------------------------------------------------------------- /public/images/buttons/button-dark-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/button-dark-hover.png -------------------------------------------------------------------------------- /public/images/buttons/drag-handle-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/drag-handle-green.png -------------------------------------------------------------------------------- /public/images/buttons/orange/right_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/buttons/orange/right_03.png -------------------------------------------------------------------------------- /db/seeds.rb: -------------------------------------------------------------------------------- 1 | # Loads seed data out of default dir 2 | Rake::Task["db:load_dir"].invoke( "default" ) 3 | puts "Default data has been loaded" -------------------------------------------------------------------------------- /public/images/admin/bg/content-back-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/content-back-blue.png -------------------------------------------------------------------------------- /public/images/admin/bg/content-back-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/content-back-green.png -------------------------------------------------------------------------------- /public/images/admin/buttons/blue/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/blue/left_01.png -------------------------------------------------------------------------------- /public/images/admin/buttons/blue/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/blue/right_01.png -------------------------------------------------------------------------------- /public/images/admin/buttons/green/left_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/green/left_01.png -------------------------------------------------------------------------------- /public/images/admin/buttons/left_01_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/left_01_small.png -------------------------------------------------------------------------------- /public/images/step-progress/current-first.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/step-progress/current-first.gif -------------------------------------------------------------------------------- /public/images/step-progress/current-right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/step-progress/current-right.gif -------------------------------------------------------------------------------- /public/javascripts/jsTree/themes/apple/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/jsTree/themes/apple/bg.jpg -------------------------------------------------------------------------------- /public/javascripts/jsTree/themes/apple/d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/jsTree/themes/apple/d.png -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'active_support' 3 | require 'active_support/test_case' -------------------------------------------------------------------------------- /public/images/admin/buttons/green/right_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/green/right_01.png -------------------------------------------------------------------------------- /public/images/admin/buttons/orange/left_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/orange/left_03.png -------------------------------------------------------------------------------- /public/images/admin/buttons/orange/right_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/orange/right_03.png -------------------------------------------------------------------------------- /public/images/admin/buttons/right_01_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/right_01_small.png -------------------------------------------------------------------------------- /public/images/calendar_date_select/calendar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/calendar_date_select/calendar.gif -------------------------------------------------------------------------------- /public/images/step-progress/completed-first.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/step-progress/completed-first.gif -------------------------------------------------------------------------------- /public/images/step-progress/incomplete-right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/step-progress/incomplete-right.gif -------------------------------------------------------------------------------- /public/images/tree-nav-icons/treeview-sprite.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tree-nav-icons/treeview-sprite.gif -------------------------------------------------------------------------------- /public/images/yui-menuitem_checkbox_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/yui-menuitem_checkbox_disabled.png -------------------------------------------------------------------------------- /public/images/yui-menuitem_submenuindicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/yui-menuitem_submenuindicator.png -------------------------------------------------------------------------------- /public/javascripts/jquery.alerts/images/help.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/jquery.alerts/images/help.gif -------------------------------------------------------------------------------- /public/javascripts/jquery.alerts/images/info.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/jquery.alerts/images/info.gif -------------------------------------------------------------------------------- /public/images/admin/bg/admin_tab_selected_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/admin_tab_selected_back.png -------------------------------------------------------------------------------- /public/images/admin/bg/grid_header_back_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/bg/grid_header_back_green.png -------------------------------------------------------------------------------- /public/images/admin/buttons/drag-handle-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/admin/buttons/drag-handle-green.png -------------------------------------------------------------------------------- /public/images/step-progress/completed-current.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/step-progress/completed-current.gif -------------------------------------------------------------------------------- /public/images/step-progress/current-incomplete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/step-progress/current-incomplete.gif -------------------------------------------------------------------------------- /public/images/tree-nav-icons/treeview-loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/tree-nav-icons/treeview-loading.gif -------------------------------------------------------------------------------- /public/images/yui-menubaritem_submenuindicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/yui-menubaritem_submenuindicator.png -------------------------------------------------------------------------------- /public/javascripts/jquery.alerts/images/title.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/jquery.alerts/images/title.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/example/langs/en.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.example',{ 2 | desc : 'This is just a template button' 3 | }); 4 | -------------------------------------------------------------------------------- /public/javascripts/wymeditor/plugins/tidy/wand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/plugins/tidy/wand.png -------------------------------------------------------------------------------- /public/images/datepicker/gradient-e5e5e5-ffffff.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/datepicker/gradient-e5e5e5-ffffff.gif -------------------------------------------------------------------------------- /public/images/step-progress/completed-completed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/step-progress/completed-completed.gif -------------------------------------------------------------------------------- /public/images/step-progress/incomplete-incomplete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/step-progress/incomplete-incomplete.gif -------------------------------------------------------------------------------- /public/javascripts/jquery.alerts/images/important.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/jquery.alerts/images/important.gif -------------------------------------------------------------------------------- /public/javascripts/jsTree/themes/apple/dot_for_ie.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/jsTree/themes/apple/dot_for_ie.gif -------------------------------------------------------------------------------- /public/javascripts/jsTree/themes/apple/throbber.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/jsTree/themes/apple/throbber.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/example/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.example_dlg',{ 2 | title : 'This is just a example title' 3 | }); 4 | -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-p.png -------------------------------------------------------------------------------- /public/javascripts/wymeditor/skins/compact/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/skins/compact/icons.png -------------------------------------------------------------------------------- /public/javascripts/wymeditor/skins/wymeditor_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/skins/wymeditor_icon.png -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/media/img/flash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/media/img/flash.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/media/img/trans.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/media/img/trans.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/simple/img/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/simple/img/icons.gif -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-h1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-h1.png -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-h2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-h2.png -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-h3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-h3.png -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-h4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-h4.png -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-h5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-h5.png -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-h6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-h6.png -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-pre.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-pre.png -------------------------------------------------------------------------------- /public/images/yui-menuitem_submenuindicator_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/yui-menuitem_submenuindicator_disabled.png -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/advhr/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.advhr_dlg',{ 2 | width:"Width", 3 | size:"Height", 4 | noshade:"No shadow" 5 | }); -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/advimage/img/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/advimage/img/sample.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/example/img/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/example/img/example.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/media/img/quicktime.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/media/img/quicktime.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/media/img/realmedia.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/media/img/realmedia.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/media/img/shockwave.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/media/img/shockwave.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/pagebreak/img/trans.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/pagebreak/img/trans.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/img/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/img/icons.gif -------------------------------------------------------------------------------- /public/images/yui-menubaritem_submenuindicator_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/images/yui-menubaritem_submenuindicator_disabled.png -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/media/img/flv_player.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/media/img/flv_player.swf -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/spellchecker/css/content.css: -------------------------------------------------------------------------------- 1 | .mceItemHiddenSpellWord {background:url(../img/wline.gif) repeat-x bottom left; cursor:default;} 2 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/media/img/windowsmedia.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/media/img/windowsmedia.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/pagebreak/img/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/pagebreak/img/pagebreak.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/spellchecker/img/wline.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/spellchecker/img/wline.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/wordcount/editor_plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/wordcount/editor_plugin.js -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/img/colorpicker.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/img/colorpicker.jpg -------------------------------------------------------------------------------- /public/javascripts/wymeditor/iframe/default/lbl-blockquote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/iframe/default/lbl-blockquote.png -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/spellchecker/editor_plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/spellchecker/editor_plugin.js -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/tasks/partial_renderer_tasks.rake: -------------------------------------------------------------------------------- 1 | # desc "Explaining what the task does" 2 | # task :partial_renderer do 3 | # # Task goes here 4 | # end 5 | -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require ::File.expand_path('../config/environment', __FILE__) 4 | run Shop::Application 5 | -------------------------------------------------------------------------------- /public/fonts/andantino_script_regular_wwww.font-cat.com-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/andantino_script_regular_wwww.font-cat.com-webfont.eot -------------------------------------------------------------------------------- /public/fonts/andantino_script_regular_wwww.font-cat.com-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/andantino_script_regular_wwww.font-cat.com-webfont.ttf -------------------------------------------------------------------------------- /public/fonts/andantino_script_regular_wwww.font-cat.com-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/fonts/andantino_script_regular_wwww.font-cat.com-webfont.woff -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js -------------------------------------------------------------------------------- /public/javascripts/wymeditor/plugins/fullscreen/icon_fullscreen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/wymeditor/plugins/fullscreen/icon_fullscreen.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/default/img/items.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/default/img/items.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- 1 | # Load the rails application 2 | require File.expand_path('../application', __FILE__) 3 | 4 | # Initialize the rails application 5 | Shop::Application.initialize! 6 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif -------------------------------------------------------------------------------- /db/migrate/20101026185022_update_order_state.rb: -------------------------------------------------------------------------------- 1 | class UpdateOrderState < ActiveRecord::Migration 2 | def self.up 3 | Order.all.map(&:update!) 4 | end 5 | 6 | def self.down 7 | end 8 | end -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif -------------------------------------------------------------------------------- /app/views/common/articles.haml: -------------------------------------------------------------------------------- 1 | - @articles = Page.sidebar_links.find(:all) 2 | - if @articles.empty? 3 | Статьи отсутствуют 4 | - else 5 | - @articles.each do |item| 6 | = link_to item.title, item.link 7 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/shop/master/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif -------------------------------------------------------------------------------- /db/default/zones.yml: -------------------------------------------------------------------------------- 1 | --- 2 | zones_001: 3 | name: "РФ" 4 | created_at: <%= Time.zone.now.to_s(:db) %> 5 | updated_at: <%= Time.zone.now.to_s(:db) %> 6 | id: "1" 7 | description: "Российская Федерация" 8 | 9 | -------------------------------------------------------------------------------- /config/boot.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | 3 | # Set up gems listed in the Gemfile. 4 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) 5 | 6 | require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) 7 | -------------------------------------------------------------------------------- /db/default/zone_members.yml: -------------------------------------------------------------------------------- 1 | --- 2 | zone_members_01: 3 | zoneable_id: "168" 4 | created_at: <%= Time.zone.now.to_s(:db) %> 5 | updated_at: <%= Time.zone.now.to_s(:db) %> 6 | zone_id: "1" 7 | zoneable_type: Country 8 | -------------------------------------------------------------------------------- /db/migrate/20100929151905_rename_frozen_to_locked.rb: -------------------------------------------------------------------------------- 1 | class RenameFrozenToLocked < ActiveRecord::Migration 2 | def self.up 3 | rename_column :adjustments, :frozen, :locked 4 | end 5 | 6 | def self.down 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /db/migrate/20101103212716_drop_anonymous_field_for_user.rb: -------------------------------------------------------------------------------- 1 | class DropAnonymousFieldForUser < ActiveRecord::Migration 2 | def self.up 3 | remove_column :users, :anonymous 4 | end 5 | 6 | def self.down 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/advhr/langs/ru_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('ru.advhr_dlg',{size:"\u0412\u044b\u0441\u043e\u0442\u0430",noshade:"\u0411\u0435\u0437 \u0442\u0435\u043d\u0438",width:"\u0428\u0438\u0440\u0438\u043d\u0430"}); -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/pagebreak/css/content.css: -------------------------------------------------------------------------------- 1 | .mcePageBreak {display:block;border:0;width:100%;height:12px;border-top:1px dotted #ccc;margin-top:15px;background:#fff url(../img/pagebreak.gif) no-repeat center top;} 2 | -------------------------------------------------------------------------------- /db/migrate/20100624175547_rename_preferences_field.rb: -------------------------------------------------------------------------------- 1 | class RenamePreferencesField < ActiveRecord::Migration 2 | def self.up 3 | rename_column(:preferences, :attribute, :name) 4 | end 5 | 6 | def self.down 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /doc/README_FOR_APP: -------------------------------------------------------------------------------- 1 | Use this README file to introduce your application and point to useful places in the API for learning more. 2 | Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. 3 | -------------------------------------------------------------------------------- /app/views/shared/_head.html.erb: -------------------------------------------------------------------------------- 1 | <%= title %> 2 | 3 | <%== meta_data_tags %> 4 | <%#== stylesheet_tags %> 5 | <%= csrf_meta_tag %> 6 | <%= yield :head %> 7 | -------------------------------------------------------------------------------- /db/migrate/20100204105222_add_layout_to_pages.rb: -------------------------------------------------------------------------------- 1 | class AddLayoutToPages < ActiveRecord::Migration 2 | def self.up 3 | add_column :pages, :layout, :string 4 | end 5 | 6 | def self.down 7 | remove_column :pages, :layout 8 | end 9 | end -------------------------------------------------------------------------------- /app/views/_breadcrumbs.haml: -------------------------------------------------------------------------------- 1 | - if defined?(Breadcrumbs) 2 | - last = Breadcrumbs.breadcrumbs.last 3 | - Breadcrumbs.breadcrumbs.each do |bc| 4 | = link_to bc[:title], bc[:link] 5 | - if bc != last 6 | = image_tag '/images/bc_marker.png' 7 | -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | # Mime::Type.register_alias "text/html", :iphone 6 | -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- 1 | # Sample localization file for English. Add more files in this directory for other locales. 2 | # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. 3 | 4 | en: 5 | hello: "Hello world" 6 | -------------------------------------------------------------------------------- /db/migrate/20090829000527_add_index_for_page.rb: -------------------------------------------------------------------------------- 1 | class AddIndexForPage < ActiveRecord::Migration 2 | def self.up 3 | add_index(:pages, :slug) 4 | end 5 | 6 | def self.down 7 | remove_index(:pages, :slug) 8 | end 9 | end 10 | 11 | -------------------------------------------------------------------------------- /db/migrate/20100306153445_fix_by_popularity.rb: -------------------------------------------------------------------------------- 1 | class FixByPopularity < ActiveRecord::Migration 2 | def self.up 3 | ProductScope.update_all("name='descend_by_popularity'", "name='by_popularity'") 4 | end 5 | 6 | def self.down 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /db/sample/shipping_methods.yml: -------------------------------------------------------------------------------- 1 | ups_ground: 2 | name: "Почта России (наложным платежём)" 3 | zone_id: 1 4 | ups_two_day: 5 | name: "Почта России (по предоплате)" 6 | zone_id: 1 7 | ups_one_day: 8 | name: "Курьером" 9 | zone_id: 1 10 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/test/partial_renderer_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class PartialRendererTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /db/migrate/20100317120946_add_alt_text_to_images.rb: -------------------------------------------------------------------------------- 1 | class AddAltTextToImages < ActiveRecord::Migration 2 | def self.up 3 | add_column :assets, :alt, :text 4 | end 5 | 6 | def self.down 7 | remove_column :assets, :alt 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100502163939_name_for_promotions.rb: -------------------------------------------------------------------------------- 1 | class NameForPromotions < ActiveRecord::Migration 2 | def self.up 3 | add_column "promotions", "name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "promotions", "name" 8 | end 9 | end -------------------------------------------------------------------------------- /db/migrate/20100903203949_email_for_orders.rb: -------------------------------------------------------------------------------- 1 | class EmailForOrders < ActiveRecord::Migration 2 | def self.up 3 | add_column :orders, :email, :string 4 | end 5 | 6 | def self.down 7 | remove_column :orders, :email 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090814142845_add_default_true_to_visible_for_page.rb: -------------------------------------------------------------------------------- 1 | class AddDefaultTrueToVisibleForPage < ActiveRecord::Migration 2 | def self.up 3 | change_column :pages, :visible, :boolean, :default=> true 4 | end 5 | 6 | def self.down 7 | end 8 | end -------------------------------------------------------------------------------- /db/migrate/20100107141738_add_api_key_to_users.rb: -------------------------------------------------------------------------------- 1 | class AddApiKeyToUsers < ActiveRecord::Migration 2 | def self.up 3 | add_column "users", "api_key", :string, :limit => 40 4 | end 5 | 6 | def self.down 7 | remove_column "users", "api_key" 8 | end 9 | end -------------------------------------------------------------------------------- /db/migrate/20101026184916_prevent_nil_payment_total.rb: -------------------------------------------------------------------------------- 1 | class PreventNilPaymentTotal < ActiveRecord::Migration 2 | def self.up 3 | execute("update orders set payment_total = 0.0 where payment_total is null") 4 | end 5 | 6 | def self.down 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css: -------------------------------------------------------------------------------- 1 | .panel_wrapper {height:85px;} 2 | .panel_wrapper div.current {height:85px;} 3 | 4 | /* IE */ 5 | * html .panel_wrapper {height:100px;} 6 | * html .panel_wrapper div.current {height:100px;} 7 | -------------------------------------------------------------------------------- /db/migrate/20091209153045_state_for_shipments.rb: -------------------------------------------------------------------------------- 1 | class StateForShipments < ActiveRecord::Migration 2 | def self.up 3 | add_column "shipments", "state", :string 4 | end 5 | 6 | def self.down 7 | remove_column "shipments", "state" 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100528155333_index_for_shipments_number.rb: -------------------------------------------------------------------------------- 1 | class IndexForShipmentsNumber < ActiveRecord::Migration 2 | def self.up 3 | add_index :shipments, :number 4 | end 5 | 6 | def self.down 7 | remove_index :shipments, :number 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100811205836_drop_order_token.rb: -------------------------------------------------------------------------------- 1 | class DropOrderToken < ActiveRecord::Migration 2 | def self.up 3 | change_table :orders do |t| 4 | t.remove :token 5 | end 6 | end 7 | 8 | def self.down 9 | # no going back 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20100301163454_add_adjustments_index.rb: -------------------------------------------------------------------------------- 1 | class AddAdjustmentsIndex < ActiveRecord::Migration 2 | def self.up 3 | add_index(:adjustments, :order_id) 4 | end 5 | 6 | def self.down 7 | remove_index(:adjustments, :order_id) 8 | end 9 | end 10 | 11 | -------------------------------------------------------------------------------- /db/migrate/20100825095803_add_sku_to_option_values.rb: -------------------------------------------------------------------------------- 1 | class AddSkuToOptionValues < ActiveRecord::Migration 2 | def self.up 3 | add_column :option_values, :sku, :string 4 | end 5 | 6 | def self.down 7 | remove_column :option_values, :sku 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20101223215658_add_position_to_variants.rb: -------------------------------------------------------------------------------- 1 | class AddPositionToVariants < ActiveRecord::Migration 2 | def self.up 3 | add_column :variants, :position, :integer 4 | end 5 | 6 | def self.down 7 | remove_column :variants, :position 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /public/javascripts/admin/payments/new.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | $("#card_new").radioControlsVisibilityOfElement('#card_form'); 4 | 5 | $('select.jump_menu').change(function(){ 6 | window.location = this.options[this.selectedIndex].value; 7 | }); 8 | 9 | }); -------------------------------------------------------------------------------- /db/migrate/20110110130847_add_next_state_to_state_events.rb: -------------------------------------------------------------------------------- 1 | class AddNextStateToStateEvents < ActiveRecord::Migration 2 | def self.up 3 | add_column :state_events, :next_state, :string 4 | end 5 | 6 | def self.down 7 | remove_column :state_events, :next_state 8 | end 9 | end -------------------------------------------------------------------------------- /lib/spree_site.rb: -------------------------------------------------------------------------------- 1 | module SpreeSite 2 | class Engine < Rails::Engine 3 | def self.activate 4 | # Add your custom site logic here 5 | end 6 | 7 | def load_tasks 8 | end 9 | 10 | config.to_prepare &method(:activate).to_proc 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/table/css/table.css: -------------------------------------------------------------------------------- 1 | /* CSS file for table dialog in the table plugin */ 2 | 3 | .panel_wrapper div.current { 4 | height: 245px; 5 | } 6 | 7 | .advfield { 8 | width: 200px; 9 | } 10 | 11 | #class { 12 | width: 150px; 13 | } 14 | -------------------------------------------------------------------------------- /db/migrate/20091219021134_add_meta_fields_to_pages.rb: -------------------------------------------------------------------------------- 1 | class AddMetaFieldsToPages < ActiveRecord::Migration 2 | def self.up 3 | add_column :pages, :meta_keywords, :string 4 | add_column :pages, :meta_description, :string 5 | end 6 | 7 | def self.down 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20101019122221_add_amount_to_option_value.rb: -------------------------------------------------------------------------------- 1 | class AddAmountToOptionValue < ActiveRecord::Migration 2 | def self.up 3 | add_column :option_values, :amount, :decimal 4 | end 5 | 6 | def self.down 7 | remove_column :option_values, :amount 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require File.expand_path('../config/application', __FILE__) 5 | require 'rake' 6 | 7 | Shop::Application.load_tasks 8 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/paste/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.paste_dlg',{ 2 | text_title:"Use CTRL+V on your keyboard to paste the text into the window.", 3 | text_linebreaks:"Keep linebreaks", 4 | word_title:"Use CTRL+V on your keyboard to paste the text into the window." 5 | }); -------------------------------------------------------------------------------- /app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Shop 5 | <%= stylesheet_link_tag :all %> 6 | <%= javascript_include_tag :defaults %> 7 | <%= csrf_meta_tag %> 8 | 9 | 10 | 11 | <%= yield %> 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /db/migrate/20090814113100_add_visible_to_pages.rb: -------------------------------------------------------------------------------- 1 | class AddVisibleToPages < ActiveRecord::Migration 2 | def self.up 3 | add_column :pages, :visible, :boolean 4 | Page.update_all :visible => true 5 | end 6 | 7 | def self.down 8 | remove_column :pages, :visible 9 | end 10 | end -------------------------------------------------------------------------------- /db/migrate/20090827180351_add_secondname_to_addresses.rb: -------------------------------------------------------------------------------- 1 | class AddSecondnameToAddresses < ActiveRecord::Migration 2 | def self.up 3 | add_column :addresses, :secondname, :string 4 | end 5 | 6 | def self.down 7 | remove_column :addresses, :secondname 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100528185820_add_index_on_users_persistence_token.rb: -------------------------------------------------------------------------------- 1 | class AddIndexOnUsersPersistenceToken < ActiveRecord::Migration 2 | def self.up 3 | add_index :users, :persistence_token 4 | end 5 | 6 | def self.down 7 | remove_index :users, :persistence_token 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100501084722_match_policy_for_promotions.rb: -------------------------------------------------------------------------------- 1 | class MatchPolicyForPromotions < ActiveRecord::Migration 2 | def self.up 3 | add_column "promotions", "match_policy", :string, :default => 'all' 4 | end 5 | 6 | def self.down 7 | remove_column "promotions", "match_policy" 8 | end 9 | end -------------------------------------------------------------------------------- /db/migrate/20100624123336_rename_payment_method_display.rb: -------------------------------------------------------------------------------- 1 | class RenamePaymentMethodDisplay < ActiveRecord::Migration 2 | def self.up 3 | rename_column :payment_methods, :display, :display_on 4 | end 5 | 6 | def self.down 7 | rename_column :payment_methods, :display_on, :display 8 | end 9 | end -------------------------------------------------------------------------------- /db/migrate/20100816212146_shipping_method_id_for_orders.rb: -------------------------------------------------------------------------------- 1 | class ShippingMethodIdForOrders < ActiveRecord::Migration 2 | def self.up 3 | add_column :orders, :shipping_method_id, :integer 4 | end 5 | 6 | def self.down 7 | remove_column :orders, :shipping_method_id 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20091211203813_ship_address_id_for_checkouts.rb: -------------------------------------------------------------------------------- 1 | class ShipAddressIdForCheckouts < ActiveRecord::Migration 2 | def self.up 3 | add_column "checkouts", "ship_address_id", :integer 4 | end 5 | 6 | def self.down 7 | remove_column "checkouts", "ship_address_id" 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100605152042_add_default_to_tax_categories.rb: -------------------------------------------------------------------------------- 1 | class AddDefaultToTaxCategories < ActiveRecord::Migration 2 | def self.up 3 | add_column :tax_categories, :is_default, :boolean, :default => false 4 | end 5 | 6 | def self.down 7 | remove_column :tax_categories, :is_default 8 | end 9 | end -------------------------------------------------------------------------------- /db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb: -------------------------------------------------------------------------------- 1 | class RemoveNumberAndCvvFromCredicard < ActiveRecord::Migration 2 | def self.up 3 | remove_column :creditcards, :number 4 | remove_column :creditcards, :verification_value 5 | end 6 | 7 | def self.down 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/advhr/css/advhr.css: -------------------------------------------------------------------------------- 1 | input.radio {border:1px none #000; background:transparent; vertical-align:middle;} 2 | .panel_wrapper div.current {height:80px;} 3 | #width {width:50px; vertical-align:middle;} 4 | #width2 {width:50px; vertical-align:middle;} 5 | #size {width:100px;} 6 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css: -------------------------------------------------------------------------------- 1 | .panel_wrapper div.current { 2 | height: 290px; 3 | } 4 | 5 | #id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey { 6 | width: 200px; 7 | } 8 | 9 | #events_panel input { 10 | width: 200px; 11 | } 12 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/autosave/langs/en.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.autosave',{ 2 | restore_content: "Restore auto-saved content", 3 | warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?" 4 | }); -------------------------------------------------------------------------------- /db/migrate/20091212161118_shipping_method_id_for_checkouts.rb: -------------------------------------------------------------------------------- 1 | class ShippingMethodIdForCheckouts < ActiveRecord::Migration 2 | def self.up 3 | add_column "checkouts", "shipping_method_id", :integer 4 | end 5 | 6 | def self.down 7 | remove_column "checkouts", "shipping_method_id" 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100427121301_add_display_to_payment_methods.rb: -------------------------------------------------------------------------------- 1 | class AddDisplayToPaymentMethods < ActiveRecord::Migration 2 | def self.up 3 | add_column :payment_methods, :display, :string, :default => nil 4 | end 5 | 6 | def self.down 7 | remove_column :payment_methods, :display 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100811163637_add_guest_flag.rb: -------------------------------------------------------------------------------- 1 | class AddGuestFlag < ActiveRecord::Migration 2 | def self.up 3 | change_table :users do |t| 4 | t.boolean :guest 5 | end 6 | end 7 | 8 | def self.down 9 | change_table :users do |t| 10 | t.remove :guest 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20100105090147_add_cost_price.rb: -------------------------------------------------------------------------------- 1 | class AddCostPrice < ActiveRecord::Migration 2 | def self.up 3 | add_column :variants, :cost_price, :decimal, :null => true, :default => nil, :precision => 8, :scale => 2 4 | end 5 | 6 | def self.down 7 | remove_column :variants, :cost_price 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb: -------------------------------------------------------------------------------- 1 | class CreditcardIdForCreditcardTxns < ActiveRecord::Migration 2 | def self.up 3 | add_column "creditcard_txns", "creditcard_id", :integer 4 | end 5 | 6 | def self.down 7 | remove_column "creditcard_txns", "creditcard_id" 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb: -------------------------------------------------------------------------------- 1 | class AddShowInSidebarOptionToPages < ActiveRecord::Migration 2 | def self.up 3 | add_column :pages, :show_in_sidebar, :boolean, :default=> false, :null=>false 4 | end 5 | 6 | def self.down 7 | remove_column :pages, :show_in_sidebar 8 | end 9 | end -------------------------------------------------------------------------------- /db/migrate/20100419190933_rename_coupons_to_promotions.rb: -------------------------------------------------------------------------------- 1 | class RenameCouponsToPromotions < ActiveRecord::Migration 2 | def self.up 3 | execute "DROP TABLE IF EXISTS promotions" 4 | rename_table :coupons, :promotions 5 | end 6 | 7 | def self.down 8 | rename_table :promotions, :coupons 9 | end 10 | end -------------------------------------------------------------------------------- /db/migrate/20110111122537_add_position_to_option_types.rb: -------------------------------------------------------------------------------- 1 | class AddPositionToOptionTypes < ActiveRecord::Migration 2 | def self.up 3 | add_column :option_types, :position, :integer, :null => false, :default => 0 4 | end 5 | 6 | def self.down 7 | remove_column :option_types, :position 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /script/rails: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. 3 | 4 | APP_PATH = File.expand_path('../../config/application', __FILE__) 5 | require File.expand_path('../../config/boot', __FILE__) 6 | require 'rails/commands' 7 | -------------------------------------------------------------------------------- /db/migrate/20100624110730_add_display_to_shipping_methods.rb: -------------------------------------------------------------------------------- 1 | class AddDisplayToShippingMethods < ActiveRecord::Migration 2 | def self.up 3 | add_column :shipping_methods, :display_on, :string, :default => nil 4 | end 5 | 6 | def self.down 7 | remove_column :shipping_methods, :display_on 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100813185745_payment_total_for_orders.rb: -------------------------------------------------------------------------------- 1 | class PaymentTotalForOrders < ActiveRecord::Migration 2 | def self.up 3 | add_column :orders, :payment_total, :decimal, :precision => 8, :scale => 2, :default => 0.0 4 | end 5 | 6 | def self.down 7 | remove_column :orders, :payment_total 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20101026184833_migrate_adjustments.rb: -------------------------------------------------------------------------------- 1 | class MigrateAdjustments < ActiveRecord::Migration 2 | def self.up 3 | execute("update adjustments set amount = 0.0 where amount is null") 4 | execute("update adjustments set mandatory = 'true', locked = 'true'") 5 | end 6 | 7 | def self.down 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100923162011_create_mail_methods.rb: -------------------------------------------------------------------------------- 1 | class CreateMailMethods < ActiveRecord::Migration 2 | def self.up 3 | create_table :mail_methods do |t| 4 | t.string :environment 5 | t.boolean :active, :default => true 6 | t.timestamps 7 | end 8 | end 9 | 10 | def self.down 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/table/css/cell.css: -------------------------------------------------------------------------------- 1 | /* CSS file for cell dialog in the table plugin */ 2 | 3 | .panel_wrapper div.current { 4 | height: 200px; 5 | } 6 | 7 | .advfield { 8 | width: 200px; 9 | } 10 | 11 | #action { 12 | margin-bottom: 3px; 13 | } 14 | 15 | #class { 16 | width: 150px; 17 | } -------------------------------------------------------------------------------- /db/migrate/20091126190904_checkout_state_machine.rb: -------------------------------------------------------------------------------- 1 | class CheckoutStateMachine < ActiveRecord::Migration 2 | def self.up 3 | change_table :checkouts do |t| 4 | t.string :state 5 | end 6 | end 7 | 8 | def self.down 9 | change_table :checkouts do |t| 10 | t.remove :state 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20101026184932_prevent_nil_email.rb: -------------------------------------------------------------------------------- 1 | class PreventNilEmail < ActiveRecord::Migration 2 | def self.up 3 | execute("update orders set email = 'guest@example.com' where email is null") 4 | execute("update orders set email = 'guest@example.com' where email = ''") 5 | end 6 | 7 | def self.down 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20110110094042_add_export_flag_to_product.rb: -------------------------------------------------------------------------------- 1 | class AddExportFlagToProduct < ActiveRecord::Migration 2 | def self.up 3 | add_column :products, :export_to_yandex_market, :boolean, :default=>true, :null=>false 4 | end 5 | 6 | def self.down 7 | remove_column :products, :export_to_yandex_market 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20081216193152_create_pages.rb: -------------------------------------------------------------------------------- 1 | class CreatePages < ActiveRecord::Migration 2 | def self.up 3 | create_table :pages do |t| 4 | t.string :title 5 | t.text :body 6 | t.string :slug 7 | 8 | t.timestamps 9 | end 10 | end 11 | 12 | def self.down 13 | drop_table :pages 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /db/migrate/20101111133551_renamed_rma_cancelled_state.rb: -------------------------------------------------------------------------------- 1 | class RenamedRmaCancelledState < ActiveRecord::Migration 2 | def self.up 3 | ReturnAuthorization.where(:state => 'cancelled').each do |rma| 4 | rma.update_attribute_without_callbacks(:state, 'canceled') 5 | end 6 | end 7 | 8 | def self.down 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /db/migrate/20101019122559_add_position_to_option_type_prototype.rb: -------------------------------------------------------------------------------- 1 | class AddPositionToOptionTypePrototype < ActiveRecord::Migration 2 | def self.up 3 | add_column :option_types_prototypes, :position, :integer, :default => 1 4 | end 5 | 6 | def self.down 7 | remove_column :option_types_prototypes, :position 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20101026192225_cleanup_legacy_tables.rb: -------------------------------------------------------------------------------- 1 | class CleanupLegacyTables < ActiveRecord::Migration 2 | def self.up 3 | drop_table :checkouts 4 | drop_table :transactions 5 | drop_table :open_id_authentication_associations 6 | drop_table :open_id_authentication_nonces 7 | end 8 | 9 | def self.down 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb: -------------------------------------------------------------------------------- 1 | class AddReturnAuthorizationToInventoryUnits < ActiveRecord::Migration 2 | def self.up 3 | add_column :inventory_units, :return_authorization_id, :integer 4 | end 5 | 6 | def self.down 7 | remove_column :inventory_units, :return_authorization_id 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20101019122611_set_default_for_option_value_amount.rb: -------------------------------------------------------------------------------- 1 | class SetDefaultForOptionValueAmount < ActiveRecord::Migration 2 | def self.up 3 | change_column :option_values, :amount, :decimal, :precision => 10, :scale => 2, :default => 0 4 | end 5 | 6 | def self.down 7 | change_column :option_values, :amount, :string 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100901171814_change_guest_flag_to_anonymous.rb: -------------------------------------------------------------------------------- 1 | class ChangeGuestFlagToAnonymous < ActiveRecord::Migration 2 | def self.up 3 | change_table :users do |t| 4 | t.rename :guest, :anonymous 5 | end 6 | end 7 | 8 | def self.down 9 | change_table :users do |t| 10 | t.rename :anonymous, :guest 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb: -------------------------------------------------------------------------------- 1 | class OriginalCreditcardTxnIdForCreditcardTxns < ActiveRecord::Migration 2 | def self.up 3 | add_column "creditcard_txns", "original_creditcard_txn_id", :integer 4 | end 5 | 6 | def self.down 7 | remove_column "creditcard_txns", "original_creditcard_txn_id" 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100419194457_fix_existing_coupon_credits.rb: -------------------------------------------------------------------------------- 1 | class FixExistingCouponCredits < ActiveRecord::Migration 2 | def self.up 3 | execute("UPDATE adjustments SET type='PromotionCredit' WHERE type='CouponCredit'") 4 | execute("UPDATE adjustments SET adjustment_source_type='Promotion' WHERE adjustment_source_type='Coupon'") 5 | end 6 | 7 | def self.down 8 | end 9 | end -------------------------------------------------------------------------------- /db/migrate/20101026184700_create_log_entries.rb: -------------------------------------------------------------------------------- 1 | class CreateLogEntries < ActiveRecord::Migration 2 | def self.up 3 | create_table :log_entries do |t| 4 | t.integer :source_id 5 | t.string :source_type 6 | t.text :details 7 | 8 | t.timestamps 9 | end 10 | end 11 | 12 | def self.down 13 | drop_table :log_entries 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /db/migrate/20100113203104_create_trackers.rb: -------------------------------------------------------------------------------- 1 | class CreateTrackers < ActiveRecord::Migration 2 | def self.up 3 | create_table :trackers do |t| 4 | t.string :environment 5 | t.string :analytics_id 6 | t.boolean :active, :default => true 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :trackers 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20100224153127_deleted_at_for_payment_methods.rb: -------------------------------------------------------------------------------- 1 | class DeletedAtForPaymentMethods < ActiveRecord::Migration 2 | def self.up 3 | change_table :payment_methods do |t| 4 | t.timestamp :deleted_at, :default => nil 5 | end 6 | end 7 | 8 | def self.down 9 | change_table :payment_methods do |t| 10 | t.remove :deleted_at 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20100923095305_update_calculable_type_for_promotions.rb: -------------------------------------------------------------------------------- 1 | class UpdateCalculableTypeForPromotions < ActiveRecord::Migration 2 | def self.up 3 | Calculator.update_all("calculable_type = 'Promotion'", "calculable_type = 'Coupon'") 4 | end 5 | 6 | def self.down 7 | Calculator.update_all("calculable_type = 'Coupon'", "calculable_type = 'Promotion'") 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20091016174634_change_preference_value_type.rb: -------------------------------------------------------------------------------- 1 | class ChangePreferenceValueType < ActiveRecord::Migration 2 | def self.up 3 | remove_index :preferences, :name => 'index_preferences_on_owner_and_attribute_and_preference' 4 | change_column :preferences, :value, :text 5 | end 6 | 7 | def self.down 8 | change_column :preferences, :value, :string 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /db/migrate/20101214150824_convert_user_remember_field.rb: -------------------------------------------------------------------------------- 1 | class ConvertUserRememberField < ActiveRecord::Migration 2 | def self.up 3 | remove_column :users, :remember_created_at 4 | add_column :users, :remember_created_at, :datetime 5 | end 6 | 7 | def self.down 8 | remove_column :users, :remember_created_at 9 | add_column :users, :remember_created_at, :string 10 | end 11 | end -------------------------------------------------------------------------------- /db/migrate/20090904192342_create_indexes_for_inventory_units.rb: -------------------------------------------------------------------------------- 1 | class CreateIndexesForInventoryUnits < ActiveRecord::Migration 2 | def self.up 3 | add_index(:inventory_units, :variant_id) 4 | add_index(:inventory_units, :order_id) 5 | end 6 | 7 | def self.down 8 | remove_index(:inventory_units, :variant_id) 9 | remove_index(:inventory_units, :order_id) 10 | end 11 | end 12 | 13 | -------------------------------------------------------------------------------- /db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb: -------------------------------------------------------------------------------- 1 | class PaymentsStateAndAssignedToOrderOnly < ActiveRecord::Migration 2 | def self.up 3 | # TODO: migrate existing payments 4 | rename_column :payments, :payable_id, :order_id 5 | remove_column :payments, :payable_type 6 | add_column :payments, :state, :string 7 | end 8 | 9 | def self.down 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20101026184959_generate_anonymous_users.rb: -------------------------------------------------------------------------------- 1 | class GenerateAnonymousUsers < ActiveRecord::Migration 2 | def self.up 3 | User.reset_column_information 4 | Order.where(:user_id => nil).each do |order| 5 | user = User.anonymous! 6 | user.email ||= order.email 7 | order.user = user 8 | order.save! 9 | end 10 | end 11 | 12 | def self.down 13 | end 14 | end -------------------------------------------------------------------------------- /db/migrate/20100126103714_create_products_product_groups.rb: -------------------------------------------------------------------------------- 1 | class CreateProductsProductGroups < ActiveRecord::Migration 2 | def self.up 3 | create_table :product_groups_products, :id => false do |t| 4 | t.references :product 5 | t.references :product_group 6 | end 7 | end 8 | #product_group_memberships 9 | def self.down 10 | drop_table :product_groups_products 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/simple/langs/en.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.simple',{ 2 | bold_desc:"Bold (Ctrl+B)", 3 | italic_desc:"Italic (Ctrl+I)", 4 | underline_desc:"Underline (Ctrl+U)", 5 | striketrough_desc:"Strikethrough", 6 | bullist_desc:"Unordered list", 7 | numlist_desc:"Ordered list", 8 | undo_desc:"Undo (Ctrl+Z)", 9 | redo_desc:"Redo (Ctrl+Y)", 10 | cleanup_desc:"Cleanup messy code" 11 | }); -------------------------------------------------------------------------------- /db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb: -------------------------------------------------------------------------------- 1 | class ResponseCodeAndAvsResponseForPayments < ActiveRecord::Migration 2 | def self.up 3 | add_column :payments, :response_code, :string 4 | add_column :payments, :avs_response, :string 5 | end 6 | 7 | def self.down 8 | remove_column :payments, :response_code 9 | remove_column :payments, :avs_response 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20100817152723_add_shipment_and_payment_state.rb: -------------------------------------------------------------------------------- 1 | class AddShipmentAndPaymentState < ActiveRecord::Migration 2 | def self.up 3 | change_table :orders do |t| 4 | t.string :shipment_state 5 | t.string :payment_state 6 | end 7 | end 8 | 9 | def self.down 10 | change_table :orders do |t| 11 | t.remove :shipment_state 12 | t.remove :payment_state 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /app/views/_left_menu.html.erb: -------------------------------------------------------------------------------- 1 | <% @categories = Taxon.find_by_name(Spree::Config[:product_categories_taxon]) %> 2 | <% if @categories %> 3 | <% @categories.children.each do |taxon| %> 4 |
  • <%= taxon.name %>
  • 5 | <% end %> 6 | <% else %> 7 | Пожалуйста установите опцию product_categories_taxon в значение соответствующее родительскому taxon 8 | <% end %> 9 | 10 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/template/blank.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | blank_page 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /db/migrate/20100813023502_create_address_keys_for_order.rb: -------------------------------------------------------------------------------- 1 | class CreateAddressKeysForOrder < ActiveRecord::Migration 2 | def self.up 3 | change_table :orders do |t| 4 | t.integer :bill_address_id 5 | t.integer :ship_address_id 6 | end 7 | end 8 | 9 | def self.down 10 | change_table :orders do |t| 11 | t.remove :bill_address_id 12 | t.remove :ship_address_id 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /db/migrate/20101026184855_remove_shipped_state.rb: -------------------------------------------------------------------------------- 1 | class RemoveShippedState < ActiveRecord::Migration 2 | def self.up 3 | Order.where(:state => 'shipped').each do |order| 4 | order.update_attribute_without_callbacks("state", "complete") 5 | order.shipments.each do |shipment| 6 | shipment.state = 'shipped' 7 | shipment.save 8 | end 9 | end 10 | end 11 | 12 | def self.down 13 | end 14 | end -------------------------------------------------------------------------------- /db/migrate/20101219201531_tokens_for_legacy_orders.rb: -------------------------------------------------------------------------------- 1 | class TokensForLegacyOrders < ActiveRecord::Migration 2 | def self.up 3 | # add token permissions for legacy orders (stop relying on user persistence token) 4 | Order.all.each do |order| 5 | next unless order.user 6 | order.create_tokenized_permission(:token => order.user.persistence_token) 7 | end 8 | end 9 | 10 | def self.down 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20110302102208_add_user_id_and_deleted_at_to_addresses.rb: -------------------------------------------------------------------------------- 1 | class AddUserIdAndDeletedAtToAddresses < ActiveRecord::Migration 2 | def self.up 3 | change_table :addresses do |t| 4 | t.integer :user_id 5 | t.datetime :deleted_at 6 | end 7 | end 8 | 9 | def self.down 10 | change_table :addresses do |t| 11 | t.remove :deleted_at 12 | t.remove :user_id 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /public/javascripts/application.js: -------------------------------------------------------------------------------- 1 | (function($){ 2 | $(document).ready(function(){ 3 | 4 | // Remove an item from the cart by setting its quantity to zero and posting the update form 5 | $('form#updatecart a.delete').show().click(function(){ 6 | $(this).parents('tr').find('input.line_item_quantity').val(0); 7 | $(this).parents('form').submit(); 8 | return false; 9 | }); 10 | 11 | }); 12 | })(jQuery); 13 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/template/css/template.css: -------------------------------------------------------------------------------- 1 | #frmbody { 2 | padding: 10px; 3 | background-color: #FFF; 4 | border: 1px solid #CCC; 5 | } 6 | 7 | .frmRow { 8 | margin-bottom: 10px; 9 | } 10 | 11 | #templatesrc { 12 | border: none; 13 | width: 320px; 14 | height: 240px; 15 | } 16 | 17 | .title { 18 | padding-bottom: 5px; 19 | } 20 | 21 | .mceActionPanel { 22 | padding-top: 5px; 23 | } 24 | -------------------------------------------------------------------------------- /db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb: -------------------------------------------------------------------------------- 1 | class ChangePaymentsPaymentMethodToBelongsTo < ActiveRecord::Migration 2 | def self.up 3 | remove_column "payments", "payment_method" 4 | add_column "payments", "payment_method_id", :integer 5 | end 6 | 7 | def self.down 8 | add_column "payments", "payment_method", :string 9 | remove_column "payments", "payment_method_id" 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20100506185838_add_description_to_taxons.rb: -------------------------------------------------------------------------------- 1 | class AddDescriptionToTaxons < ActiveRecord::Migration 2 | def self.up 3 | # skip this migration if the attribute already exists because of advanced taxon extension 4 | return if column_exists?(:taxons, :description) 5 | add_column :taxons, :description, :text 6 | end 7 | 8 | def self.down 9 | remove_column :taxons, :description 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /config/initializers/inflections.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new inflection rules using the following format 4 | # (all these examples are active by default): 5 | # ActiveSupport::Inflector.inflections do |inflect| 6 | # inflect.plural /^(ox)$/i, '\1en' 7 | # inflect.singular /^(ox)en/i, '\1' 8 | # inflect.irregular 'person', 'people' 9 | # inflect.uncountable %w( fish sheep ) 10 | # end 11 | -------------------------------------------------------------------------------- /config/initializers/spree_initializer.rb: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | Spree::Config.set(:logo => '/images/logo.gif') 3 | Spree::Config.set(:product_categories_taxon => 'Тип') 4 | Spree::Config.set(:product_manufacturers_taxon => 'Производитель') 5 | Spree::Config.set(:products_per_page => 8) 6 | Spree::Config.set(:default_country_id => 211) 7 | Spree::Config.set(:address_requires_state => false) 8 | Spree::Config.set(:disable_bill_address => true) 9 | 10 | -------------------------------------------------------------------------------- /public/stylesheets/admin/inline_help.css: -------------------------------------------------------------------------------- 1 | .tooltip{ 2 | position: absolute; 3 | padding: 10px 12px; 4 | z-index: 2; 5 | 6 | color: #303030; 7 | background-color: #f5f5b5; 8 | border: 1px solid #DECA7E; 9 | 10 | font-family: sans-serif; 11 | font-size: 12px; 12 | line-height: 18px; 13 | text-align: center; 14 | } 15 | 16 | .tooltip h3{ 17 | margin: 0 0 5px; 18 | text-align: left; 19 | } 20 | 21 | .help { cursor: help; } 22 | -------------------------------------------------------------------------------- /config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. 4 | # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } 5 | 6 | # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. 7 | # Rails.backtrace_cleaner.remove_silencers! 8 | -------------------------------------------------------------------------------- /config/initializers/session_store.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | Shop::Application.config.session_store :cookie_store, :key => '_shop_session' 4 | 5 | # Use the database for sessions instead of the cookie-based default, 6 | # which shouldn't be used to store highly confidential information 7 | # (create the session table with "rails generate session_migration") 8 | # Shop::Application.config.session_store :active_record_store 9 | -------------------------------------------------------------------------------- /db/migrate/20100111205525_cim_fields_for_creditcards.rb: -------------------------------------------------------------------------------- 1 | class CimFieldsForCreditcards < ActiveRecord::Migration 2 | def self.up 3 | add_column "creditcards", "gateway_customer_profile_id", :string 4 | add_column "creditcards", "gateway_payment_profile_id", :string 5 | end 6 | 7 | def self.down 8 | remove_column "creditcards", "gateway_customer_profile_id" 9 | remove_column "creditcards", "gateway_payment_profile_id" 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20100125145351_add_test_mode_to_billing_integration.rb: -------------------------------------------------------------------------------- 1 | class AddTestModeToBillingIntegration < ActiveRecord::Migration 2 | def self.up 3 | add_column :billing_integrations, :test_mode, :boolean, :default => true 4 | add_column :billing_integrations, :server, :string, :default => "test" 5 | end 6 | 7 | def self.down 8 | remove_column :billing_integrations, :test_mode 9 | remove_column :billing_integrations, :server 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/table/css/row.css: -------------------------------------------------------------------------------- 1 | /* CSS file for row dialog in the table plugin */ 2 | 3 | .panel_wrapper div.current { 4 | height: 200px; 5 | } 6 | 7 | .advfield { 8 | width: 200px; 9 | } 10 | 11 | #action { 12 | margin-bottom: 3px; 13 | } 14 | 15 | #rowtype,#align,#valign,#class,#height { 16 | width: 150px; 17 | } 18 | 19 | #height { 20 | width: 50px; 21 | } 22 | 23 | .col2 { 24 | padding-left: 20px; 25 | } 26 | -------------------------------------------------------------------------------- /app/views/_left_menu_for_manufacturer.html.erb: -------------------------------------------------------------------------------- 1 | <% @categories = Taxon.find_by_name(Spree::Config[:product_categories_taxon]) %> 2 | <% if @categories %> 3 | <% @categories.children.each do |taxon| %> 4 |
  • <%= taxon.name %>
  • 5 | <% end %> 6 | <% else %> 7 | Пожалуйста установите опцию product_categories_taxon в значение соответствующее родительскому taxon 8 | <% end %> 9 | 10 | -------------------------------------------------------------------------------- /db/migrate/20091209202200_make_state_events_polymorphic.rb: -------------------------------------------------------------------------------- 1 | class MakeStateEventsPolymorphic < ActiveRecord::Migration 2 | def self.up 3 | rename_column :state_events, :order_id, :stateful_id 4 | add_column :state_events, :stateful_type, :string 5 | StateEvent.update_all(:stateful_type => 'Order') 6 | end 7 | 8 | def self.down 9 | rename_column :state_events, :stateful_id, :order_id 10 | remove_column :state_events, :stateful_type 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20101008190536_move_special_instructions_to_orders.rb: -------------------------------------------------------------------------------- 1 | class MoveSpecialInstructionsToOrders < ActiveRecord::Migration 2 | def self.up 3 | add_column :orders, :special_instructions, :text 4 | 5 | ActiveRecord::Base.connection.execute("update orders set special_instructions = (select special_instructions from checkouts where order_id = orders.id)") 6 | end 7 | 8 | def self.down 9 | remove_column :orders, :special_instructions, :text 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/generators/partial_renderer/templates/pagination.haml: -------------------------------------------------------------------------------- 1 | - if previous_page 2 | = link_to options[:previous_label], url_for_page(previous_page) 3 | - else 4 | = options[:previous_label] 5 | 6 | - for i in first_page.upto(last_page) 7 | - if i == current_page 8 | = i 9 | - else 10 | = link_to i, url_for_page(i) 11 | 12 | - if next_page 13 | = link_to options[:next_label], url_for_page(next_page) 14 | - else 15 | = options[:next_label] 16 | -------------------------------------------------------------------------------- /db/migrate/20100223183812_drop_billing_integrations.rb: -------------------------------------------------------------------------------- 1 | class DropBillingIntegrations < ActiveRecord::Migration 2 | def self.up 3 | drop_table :billing_integrations 4 | end 5 | 6 | def self.down 7 | create_table :billing_integrations do |t| 8 | t.string :type 9 | t.string :name 10 | t.text :description 11 | t.boolean :active, :default => true 12 | t.string :environment, :default => "development" 13 | t.timestamps 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /db/sample/preferences.yml: -------------------------------------------------------------------------------- 1 | flat_rate_ground: 2 | name: amount 3 | owner: ups_ground 4 | owner_type: Calculator 5 | value: 5 6 | flat_rate_two_day: 7 | name: amount 8 | owner: ups_two_day 9 | owner_type: Calculator 10 | value: 10 11 | flat_rate_one_day: 12 | name: amount 13 | owner: ups_one_day 14 | owner_type: Calculator 15 | value: 15 16 | flat_rate_five_dollars: 17 | name: amount 18 | owner: flat_rate_coupon_calculator 19 | owner_type: Calculator 20 | value: 5 21 | -------------------------------------------------------------------------------- /db/migrate/20091017175558_create_billing_integrations.rb: -------------------------------------------------------------------------------- 1 | class CreateBillingIntegrations < ActiveRecord::Migration 2 | def self.up 3 | create_table :billing_integrations do |t| 4 | t.string :type 5 | t.string :name 6 | t.text :description 7 | t.boolean :active, :default => true 8 | t.string :environment, :default => "development" 9 | t.timestamps 10 | end 11 | end 12 | 13 | def self.down 14 | drop_table :billing_integrations 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /db/migrate/20100501095202_create_promotion_rules_users.rb: -------------------------------------------------------------------------------- 1 | class CreatePromotionRulesUsers < ActiveRecord::Migration 2 | def self.up 3 | create_table :promotion_rules_users do |t| 4 | t.integer :user_id, :promotion_rule_id 5 | end 6 | remove_column :promotion_rules_users, :id 7 | add_index :promotion_rules_users, :user_id 8 | add_index :promotion_rules_users, :promotion_rule_id 9 | end 10 | 11 | def self.down 12 | drop_table :promotion_rules_users 13 | end 14 | end -------------------------------------------------------------------------------- /lib/spree_address_book_fix.rb: -------------------------------------------------------------------------------- 1 | require 'spree_core' 2 | require 'spree_address_book_hooks' 3 | 4 | module SpreeAddressBook 5 | class Engine < Rails::Engine 6 | 7 | config.autoload_paths += %W(#{config.root}/lib) 8 | 9 | def self.activate 10 | Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| 11 | Rails.env.production? ? require(c) : load(c) 12 | end 13 | end 14 | 15 | config.to_prepare &method(:activate).to_proc 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /db/sample/calculators.yml: -------------------------------------------------------------------------------- 1 | ups_ground: 2 | calculable: ups_ground 3 | calculable_type: ShippingMethod 4 | type: Calculator::FlatRate 5 | ups_two_day: 6 | calculable: ups_two_day 7 | calculable_type: ShippingMethod 8 | type: Calculator::FlatRate 9 | ups_one_day: 10 | calculable: ups_one_day 11 | calculable_type: ShippingMethod 12 | type: Calculator::FlatRate 13 | flat_rate_coupon_calculator: 14 | calculable: spree_coupon 15 | calculable_type: Promotion 16 | type: Calculator::FlatRate 17 | -------------------------------------------------------------------------------- /db/migrate/20091214183826_populate_legacy_shipment_state.rb: -------------------------------------------------------------------------------- 1 | class PopulateLegacyShipmentState < ActiveRecord::Migration 2 | # Hack to allow for legacy migrations 3 | class Shipment < ActiveRecord::Base 4 | end 5 | 6 | def self.up 7 | Shipment.all.each do |shipment| 8 | if shipment.shipped_at 9 | shipment.state = "shipped" 10 | else 11 | shipment.state = "pending" 12 | end 13 | shipment.save 14 | end 15 | end 16 | 17 | def self.down 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /db/migrate/20100112151511_create_return_authorizations.rb: -------------------------------------------------------------------------------- 1 | class CreateReturnAuthorizations < ActiveRecord::Migration 2 | def self.up 3 | create_table :return_authorizations do |t| 4 | t.string :number 5 | t.decimal :amount, :precision => 8, :scale => 2, :default => 0.0, :null => false 6 | t.references :order 7 | t.text :reason 8 | t.string :state 9 | t.timestamps 10 | end 11 | end 12 | 13 | def self.down 14 | drop_table :return_authorizations 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /db/migrate/20101117031806_fix_problematic_index_names.rb: -------------------------------------------------------------------------------- 1 | class FixProblematicIndexNames < ActiveRecord::Migration 2 | def self.up 3 | begin 4 | remove_index("preferences", "index_preferences_on_owner_and_attribute_and_preference") 5 | rescue ArgumentError 6 | # ignore - already remove then 7 | end 8 | add_index "preferences", ["owner_id", "owner_type", "name", "group_id", "group_type"], :name => "ix_prefs_on_owner_attr_pref", :unique => true 9 | end 10 | 11 | def self.down 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-Agent: * 5 | # Disallow: / 6 | User-agent: * 7 | Disallow: /checkouts 8 | Disallow: /orders 9 | Disallow: /countries 10 | Disallow: /line_items 11 | Disallow: /password_resets 12 | Disallow: /states 13 | Disallow: /user_sessions 14 | Disallow: /users 15 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/print/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.create("tinymce.plugins.Print",{init:function(a,b){a.addCommand("mcePrint",function(){a.getWin().print()});a.addButton("print",{title:"print.print_desc",cmd:"mcePrint"})},getInfo:function(){return{longname:"Print",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("print",tinymce.plugins.Print)})(); -------------------------------------------------------------------------------- /config/initializers/secret_token.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Your secret key for verifying the integrity of signed cookies. 4 | # If you change this key, all old signed cookies will become invalid! 5 | # Make sure the secret is at least 30 characters and all random, 6 | # no regular words or you'll be exposed to dictionary attacks. 7 | Shop::Application.config.secret_token = 'cb241506876decf4007fd441faea3cf423d0c9d4ef6f324ed7145a6cac5730c6f614fe33e0181e8d007026fea2426137c02af6cb813c58155b8e6b6e12dbdf67' 8 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.emotions_dlg',{ 2 | title:"Insert emotion", 3 | desc:"Emotions", 4 | cool:"Cool", 5 | cry:"Cry", 6 | embarassed:"Embarassed", 7 | foot_in_mouth:"Foot in mouth", 8 | frown:"Frown", 9 | innocent:"Innocent", 10 | kiss:"Kiss", 11 | laughing:"Laughing", 12 | money_mouth:"Money mouth", 13 | sealed:"Sealed", 14 | smile:"Smile", 15 | surprised:"Surprised", 16 | tongue_out:"Tongue out", 17 | undecided:"Undecided", 18 | wink:"Wink", 19 | yell:"Yell" 20 | }); -------------------------------------------------------------------------------- /app/views/admin/shared/_product_sub_menu.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :sub_menu do %> 2 | 12 | <% end %> 13 | -------------------------------------------------------------------------------- /db/migrate/20100504142133_add_addresses_checkouts_indexes.rb: -------------------------------------------------------------------------------- 1 | class AddAddressesCheckoutsIndexes < ActiveRecord::Migration 2 | def self.up 3 | add_index :addresses, :firstname 4 | add_index :addresses, :lastname 5 | add_index :checkouts, :order_id 6 | add_index :checkouts, :bill_address_id 7 | end 8 | 9 | def self.down 10 | remove_index :checkouts, :bill_address_id 11 | remove_index :checkouts, :order_id 12 | remove_index :addresses, :lastname 13 | remove_index :addresses, :firstname 14 | end 15 | end 16 | 17 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/langs/ru_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('ru.emotions_dlg',{cry:"Cry",cool:"Cool",desc:"\u0421\u043c\u0430\u0439\u043b\u044b",title:"\u0412\u044b\u0431\u043e\u0440 \u0441\u043c\u0430\u0439\u043b\u0430",yell:"Yell",wink:"Wink",undecided:"Undecided","tongue_out":"Tongue out",surprised:"Surprised",smile:"Smile",sealed:"Sealed","money_mouth":"Money mouth",laughing:"Laughing",kiss:"Kiss",innocent:"Innocent",frown:"Frown","foot_in_mouth":"\u0412 \u0440\u043e\u0442 \u043c\u043d\u0435 \u043d\u043e\u0433\u0443",embarassed:"Embarassed"}); -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/advlink/css/advlink.css: -------------------------------------------------------------------------------- 1 | .mceLinkList, .mceAnchorList, #targetlist {width:280px;} 2 | .mceActionPanel {margin-top:7px;} 3 | .panel_wrapper div.current {height:320px;} 4 | #classlist, #title, #href {width:280px;} 5 | #popupurl, #popupname {width:200px;} 6 | #popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;} 7 | #id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;} 8 | #events_panel input {width:200px;} 9 | -------------------------------------------------------------------------------- /db/migrate/20101217012656_create_tokenized_permissions.rb: -------------------------------------------------------------------------------- 1 | class CreateTokenizedPermissions < ActiveRecord::Migration 2 | 3 | def self.up 4 | 5 | create_table :tokenized_permissions do |t| 6 | t.integer :permissable_id 7 | t.string :permissable_type 8 | t.string :token 9 | t.timestamps 10 | end 11 | 12 | add_index "tokenized_permissions", ["permissable_id", "permissable_type"], :name => "index_tokenized_name_and_type" 13 | end 14 | 15 | def self.down 16 | drop_table :tokenized_permissions 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /db/migrate/20100223170312_sti_for_transactions.rb: -------------------------------------------------------------------------------- 1 | class StiForTransactions < ActiveRecord::Migration 2 | def self.up 3 | rename_table "creditcard_txns", "transactions" 4 | add_column "transactions", "type", :string 5 | remove_column "transactions", "creditcard_id" 6 | Transaction.update_all(:type => 'CreditcardTxn') if defined? Transaction 7 | end 8 | 9 | def self.down 10 | rename_table "transactions", "creditcard_txns" 11 | remove_column "transactions", "type" 12 | add_column "transactions", "creditcard_id", :integer 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /public/javascripts/gateway.js: -------------------------------------------------------------------------------- 1 | $j(function() { 2 | var original_gtwy_type = $j('#gtwy-type').attr('value'); 3 | $j('div#gateway-settings-warning').hide(); 4 | $j('#gtwy-type').change(function() { 5 | if ($j('#gtwy-type').attr('value') == original_gtwy_type) { 6 | $j('div.gateway-settings').show(); 7 | $j('div#gateway-settings-warning').hide(); 8 | } else { 9 | $j('div.gateway-settings').hide(); 10 | $j('div#gateway-settings-warning').show(); 11 | } 12 | }); 13 | }) -------------------------------------------------------------------------------- /public/css/reset.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | 3 | html, body{margin:0px auto} 4 | div, span, applet, object, iframe, 5 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 6 | a, abbr, acronym, address, big, cite, code, 7 | del, dfn, em, font, img, ins, kbd, q, s, samp, 8 | small, strike, strong, sub, sup, tt, var, 9 | b, u, i, center, 10 | dl, dt, dd, ol, ul, li, 11 | fieldset, form, label, legend, 12 | table, caption, tbody, tfoot, thead, tr, th, td { 13 | margin: 0px; 14 | padding: 0px; 15 | border: 0px; 16 | outline: 0px; 17 | font-size: 100%; 18 | } 19 | -------------------------------------------------------------------------------- /db/migrate/20100819170125_refactor_adjustments.rb: -------------------------------------------------------------------------------- 1 | class RefactorAdjustments < ActiveRecord::Migration 2 | def self.up 3 | change_table :adjustments do |t| 4 | t.boolean :mandatory 5 | t.boolean :frozen 6 | t.rename :adjustment_source_id, :source_id 7 | t.rename :adjustment_source_type, :source_type 8 | t.references :originator 9 | t.string :originator_type 10 | t.remove :type 11 | t.rename :description, :label 12 | t.remove :position 13 | end 14 | end 15 | 16 | def self.down 17 | # no going back 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/media/css/content.css: -------------------------------------------------------------------------------- 1 | .mceItemFlash, .mceItemShockWave, .mceItemQuickTime, .mceItemWindowsMedia, .mceItemRealMedia {border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc;} 2 | .mceItemShockWave {background-image: url(../img/shockwave.gif);} 3 | .mceItemFlash {background-image:url(../img/flash.gif);} 4 | .mceItemQuickTime {background-image:url(../img/quicktime.gif);} 5 | .mceItemWindowsMedia {background-image:url(../img/windowsmedia.gif);} 6 | .mceItemRealMedia {background-image:url(../img/realmedia.gif);} 7 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.searchreplace_dlg',{ 2 | searchnext_desc:"Find again", 3 | notfound:"The search has been completed. The search string could not be found.", 4 | search_title:"Find", 5 | replace_title:"Find/Replace", 6 | allreplaced:"All occurrences of the search string were replaced.", 7 | findwhat:"Find what", 8 | replacewith:"Replace with", 9 | direction:"Direction", 10 | up:"Up", 11 | down:"Down", 12 | mcase:"Match case", 13 | findnext:"Find next", 14 | replace:"Replace", 15 | replaceall:"Replace all" 16 | }); -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/simple/skins/o2k7/content.css: -------------------------------------------------------------------------------- 1 | body, td, pre {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} 2 | 3 | body {background: #FFF;} 4 | .mceVisualAid {border: 1px dashed #BBB;} 5 | 6 | /* IE */ 7 | 8 | * html body { 9 | scrollbar-3dlight-color: #F0F0EE; 10 | scrollbar-arrow-color: #676662; 11 | scrollbar-base-color: #F0F0EE; 12 | scrollbar-darkshadow-color: #DDDDDD; 13 | scrollbar-face-color: #E0E0DD; 14 | scrollbar-highlight-color: #F0F0EE; 15 | scrollbar-shadow-color: #F0F0EE; 16 | scrollbar-track-color: #F5F5F5; 17 | } 18 | -------------------------------------------------------------------------------- /db/migrate/20101026184746_delete_in_progress_orders.rb: -------------------------------------------------------------------------------- 1 | class DeleteInProgressOrders < ActiveRecord::Migration 2 | def self.up 3 | Order.delete_all(:state=>'in_progress') 4 | delete_orphans('adjustments') 5 | delete_orphans('checkouts') 6 | delete_orphans('shipments') 7 | delete_orphans('payments') 8 | delete_orphans('line_items') 9 | delete_orphans('inventory_units') 10 | end 11 | 12 | def self.delete_orphans(table_name) 13 | execute("delete from #{table_name} where order_id not in (select id from orders)") 14 | end 15 | 16 | def self.down 17 | end 18 | end -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css: -------------------------------------------------------------------------------- 1 | input.field, select.field {width:200px;} 2 | input.picker {width:179px; margin-left: 5px;} 3 | input.disabled {border-color:#F2F2F2;} 4 | img.picker {vertical-align:text-bottom; cursor:pointer;} 5 | h1 {padding: 0 0 5px 0;} 6 | .panel_wrapper div.current {height:160px;} 7 | #xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current {height: 230px;} 8 | a.browse span {display:block; width:20px; height:20px; background:url('../../../themes/advanced/img/icons.gif') -140px -20px;} 9 | #datetime {width:180px;} 10 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/generators/partial_renderer/templates/pagination.erb: -------------------------------------------------------------------------------- 1 | <% if previous_page %> 2 | <%= link_to options[:previous_label], url_for_page(previous_page) %> 3 | <% else %> 4 | <% = options[:previous_label] %> 5 | <% end %> 6 | 7 | <% for i in first_page.upto(last_page) %> 8 | <% if i == current_page %> 9 | <%= i %> 10 | <% else %> 11 | <%= link_to i, url_for_page(i) %> 12 | <% end %> 13 | <% end %> 14 | 15 | <% if next_page %> 16 | <%= link_to options[:next_label], url_for_page(next_page) %> 17 | <% else %> 18 | <%= options[:next_label] %> 19 | <% end %> 20 | -------------------------------------------------------------------------------- /db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb: -------------------------------------------------------------------------------- 1 | class RemoveTrailingSlashesInTaxonPermalinks < ActiveRecord::Migration 2 | def self.up 3 | Taxon.find_each(:conditions => {}) do |t| 4 | if t.permalink && t.permalink[-1..-1] == '/' 5 | t.update_attribute(:permalink, t.permalink[0...-1]) 6 | end 7 | end 8 | end 9 | 10 | def self.down 11 | Taxon.find_each(:conditions => {}) do |t| 12 | if t.permalink && t.permalink[-1..-1] != '/' 13 | t.update_attribute(:permalink, t.permalink + '/') 14 | end 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /config/database.yml: -------------------------------------------------------------------------------- 1 | # SQLite version 3.x 2 | # gem install sqlite3 3 | development: 4 | adapter: sqlite3 5 | database: db/development.sqlite3 6 | pool: 5 7 | timeout: 5000 8 | 9 | # Warning: The database defined as "test" will be erased and 10 | # re-generated from your development database when you run "rake". 11 | # Do not set this db to the same as development or production. 12 | test: 13 | adapter: sqlite3 14 | database: db/test.sqlite3 15 | pool: 5 16 | timeout: 5000 17 | 18 | production: 19 | adapter: sqlite3 20 | database: db/production.sqlite3 21 | pool: 5 22 | timeout: 5000 23 | -------------------------------------------------------------------------------- /app/views/orders/show.html.erb: -------------------------------------------------------------------------------- 1 | <% Breadcrumbs.set_controller @controller %> 2 | <% Breadcrumbs.add_main.add_order_show(@order) %> 3 |
    4 | <%= link_to t('back_to_store'), products_path %> 5 | 6 | <% if params.has_key? :checkout_complete %> 7 |

    8 |

    <%= t('thank_you_for_your_order') %>

    9 | <% else %> 10 | | <%= link_to t('my_account'), account_path if current_user%> 11 | <% end %> 12 |

    13 | 14 | <%= render :partial => 'shared/order_details', :locals => {:order => @order} %> 15 | 16 |
    17 | <%= link_to t('back_to_store'), products_path %> 18 |
    19 | -------------------------------------------------------------------------------- /db/migrate/20091213222815_creditcard_last_four_digits.rb: -------------------------------------------------------------------------------- 1 | class CreditcardLastFourDigits < ActiveRecord::Migration 2 | 3 | # Hack to allow for legacy migrations 4 | class Creditcard < ActiveRecord::Base 5 | end 6 | 7 | def self.up 8 | rename_column :creditcards, :display_number, :last_digits 9 | 10 | Creditcard.reset_column_information 11 | Creditcard.all.each do |card| 12 | card.update_attribute(:last_digits, card.last_digits.gsub("XXXX-XXXX-XXXX-", "")) if card.last_digits.present? 13 | end 14 | end 15 | 16 | def self.down 17 | rename_column :creditcards, :last_digits, :display_number 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /public/javascripts/open_id.js: -------------------------------------------------------------------------------- 1 | $('#enable_login_via_openid a').click(function(){ 2 | $('#enable_login_via_openid').hide(); 3 | $('#enable_login_via_login_password').show(); 4 | $('div#openid-credentials').show(); 5 | $('div#openid-credentials input').removeAttr("disabled"); 6 | $('div#password-credentials').hide(); 7 | }) 8 | 9 | $('#enable_login_via_login_password a').click(function(){ 10 | $('#enable_login_via_openid').show(); 11 | $('#enable_login_via_login_password').hide(); 12 | $('div#openid-credentials').hide(); 13 | $('div#openid-credentials input').attr("disabled", true); 14 | $('div#password-credentials').show(); 15 | }) 16 | -------------------------------------------------------------------------------- /public/javascripts/admin/orders/edit_form.js: -------------------------------------------------------------------------------- 1 | $.each($('td.qty input'), function(i, inpt){ 2 | 3 | $(inpt).delayedObserver(function() { 4 | 5 | var id = $(this).attr('id').replace("order_line_items_attributes_", "").replace("_quantity", ""); 6 | id = "#order_line_items_attributes_" + id + "_id"; 7 | 8 | jQuery.ajax({ 9 | type: "POST", 10 | url: "/admin/orders/" + $('input#order_number').val() + "/line_items/" + $(id).val(), 11 | data: ({_method: "put", "line_item[quantity]": $(this).val()}), 12 | success: function(html){ $('#order-form-wrapper').html(html)} 13 | }); 14 | 15 | }, 0,5); 16 | }); 17 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/paste/langs/ru_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('ru.paste_dlg',{"word_title":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 CTRL+V \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u043e\u043a\u043d\u043e.","text_linebreaks":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044b \u0441\u0442\u0440\u043e\u043a","text_title":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 CTRL+V \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u043e\u043a\u043d\u043e."}); -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/simple/skins/default/content.css: -------------------------------------------------------------------------------- 1 | body, td, pre { 2 | font-family: Verdana, Arial, Helvetica, sans-serif; 3 | font-size: 10px; 4 | } 5 | 6 | body { 7 | background-color: #FFFFFF; 8 | } 9 | 10 | .mceVisualAid { 11 | border: 1px dashed #BBBBBB; 12 | } 13 | 14 | /* MSIE specific */ 15 | 16 | * html body { 17 | scrollbar-3dlight-color: #F0F0EE; 18 | scrollbar-arrow-color: #676662; 19 | scrollbar-base-color: #F0F0EE; 20 | scrollbar-darkshadow-color: #DDDDDD; 21 | scrollbar-face-color: #E0E0DD; 22 | scrollbar-highlight-color: #F0F0EE; 23 | scrollbar-shadow-color: #F0F0EE; 24 | scrollbar-track-color: #F5F5F5; 25 | } 26 | -------------------------------------------------------------------------------- /app/views/common/production_by_type.haml: -------------------------------------------------------------------------------- 1 | - content_for :body_class do 2 | servizy 3 | - if @products.empty? 4 | Нет продуктов в данной категории 5 | - else 6 | - @products.each do |product| 7 | .fotoblock{ :class => cycle('','secondcol') } 8 | .name 9 | = product.name 10 | .clear 11 | = product_price product 12 | .image 13 | %a{:href => product_by_type_path(@taxon.name, product.id) } 14 | = display_product_image_for_list product 15 | - if @products.respond_to? :total_pages 16 | - paginate_items @products 17 | - else 18 | - content_for :main_uzor_bottom do 19 | :plain 20 | style="overflow-y: scroll" 21 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/js/emotions.js: -------------------------------------------------------------------------------- 1 | tinyMCEPopup.requireLangPack(); 2 | 3 | var EmotionsDialog = { 4 | init : function(ed) { 5 | tinyMCEPopup.resizeToInnerSize(); 6 | }, 7 | 8 | insert : function(file, title) { 9 | var ed = tinyMCEPopup.editor, dom = ed.dom; 10 | 11 | tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { 12 | src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, 13 | alt : ed.getLang(title), 14 | title : ed.getLang(title), 15 | border : 0 16 | })); 17 | 18 | tinyMCEPopup.close(); 19 | } 20 | }; 21 | 22 | tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); 23 | -------------------------------------------------------------------------------- /app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | module ApplicationHelper 4 | def paginate_items(items) 5 | content_for :pagination do 6 | will_paginate items 7 | end 8 | end 9 | 10 | def display_product_image_for_list(product) 11 | image = product.images.first 12 | if image 13 | image_tag image.attachment.url(:product_list), :title => image.alt, :alt => image.alt 14 | else 15 | image_tag Image.new.attachment.url 16 | end 17 | end 18 | 19 | def display_product_image_for_item(product) 20 | image = product.images.first 21 | image_tag image.attachment.url(:product_view), :title => image.alt, :alt => image.alt 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /public/javascripts/jquery.alerts/jquery.alerts.spree.css: -------------------------------------------------------------------------------- 1 | /* Spree Custom dialog styles */ 2 | #popup_container.spree { 3 | 4 | color: #fff; 5 | background: #005294; 6 | border-color: #113F66; 7 | } 8 | 9 | #popup_container.spree #popup_title { 10 | color: #FFF; 11 | font-weight: normal; 12 | text-align: left; 13 | background: #76A5CC; 14 | border: solid 1px #005294; 15 | padding-left: 1em; 16 | } 17 | 18 | #popup_container.spree #popup_content { 19 | background: none; 20 | } 21 | 22 | #popup_container.spree #popup_message { 23 | padding-left: 0em; 24 | } 25 | 26 | #popup_container.spree INPUT[type='button'] { 27 | border: outset 2px #76A5CC; 28 | color: #fff; 29 | background: #3778AE; 30 | } -------------------------------------------------------------------------------- /app/views/products/index.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :sidebar do %> 2 | <%= hook :homepage_sidebar_navigation do %> 3 | <% if "products" == @current_controller && @taxon %> 4 | <%= render "shared/filters" %> 5 | <% else %> 6 | <%= render "shared/taxonomies" %> 7 | <% end %> 8 | <% end %> 9 | <% end %> 10 | 11 | 12 | <% if params[:keywords] %> 13 | 14 | <%= hook :search_results do %> 15 | <%= render "shared/products", :products => @products, :taxon => @taxon %> 16 | <% end %> 17 | 18 | <% else %> 19 | 20 | <%= hook :homepage_products do %> 21 | <%= render "shared/products", :products => @products, :taxon => @taxon %> 22 | <% end %> 23 | 24 | 25 | <% end %> 26 | 27 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/emotions/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js: -------------------------------------------------------------------------------- 1 | /** 2 | * abbr.js 3 | * 4 | * Copyright 2009, Moxiecode Systems AB 5 | * Released under LGPL License. 6 | * 7 | * License: http://tinymce.moxiecode.com/license 8 | * Contributing: http://tinymce.moxiecode.com/contributing 9 | */ 10 | 11 | function init() { 12 | SXE.initElementDialog('abbr'); 13 | if (SXE.currentAction == "update") { 14 | SXE.showRemoveButton(); 15 | } 16 | } 17 | 18 | function insertAbbr() { 19 | SXE.insertElement('abbr'); 20 | tinyMCEPopup.close(); 21 | } 22 | 23 | function removeAbbr() { 24 | SXE.removeElement('abbr'); 25 | tinyMCEPopup.close(); 26 | } 27 | 28 | tinyMCEPopup.onInit.add(init); 29 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js: -------------------------------------------------------------------------------- 1 | /** 2 | * cite.js 3 | * 4 | * Copyright 2009, Moxiecode Systems AB 5 | * Released under LGPL License. 6 | * 7 | * License: http://tinymce.moxiecode.com/license 8 | * Contributing: http://tinymce.moxiecode.com/contributing 9 | */ 10 | 11 | function init() { 12 | SXE.initElementDialog('cite'); 13 | if (SXE.currentAction == "update") { 14 | SXE.showRemoveButton(); 15 | } 16 | } 17 | 18 | function insertCite() { 19 | SXE.insertElement('cite'); 20 | tinyMCEPopup.close(); 21 | } 22 | 23 | function removeCite() { 24 | SXE.removeElement('cite'); 25 | tinyMCEPopup.close(); 26 | } 27 | 28 | tinyMCEPopup.onInit.add(init); 29 | -------------------------------------------------------------------------------- /db/migrate/20100105132138_shipment_id_for_inventory_units.rb: -------------------------------------------------------------------------------- 1 | class ShipmentIdForInventoryUnits < ActiveRecord::Migration 2 | def self.up 3 | add_column "inventory_units", "shipment_id", :integer 4 | add_index(:inventory_units, :shipment_id) 5 | 6 | # migrate legacy shipments 7 | Shipment.all.each do |shipment| 8 | unless shipment.order 9 | puts "Warning: shipment has invalid order - #{shipment.id}" 10 | next 11 | end 12 | shipment.order.inventory_units.each do |unit| 13 | unit.update_attribute("shipment_id", shipment.id) 14 | end 15 | end 16 | end 17 | 18 | def self.down 19 | remove_column "inventory_units", "shipment_id" 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rake' 2 | require 'rake/testtask' 3 | require 'rake/rdoctask' 4 | 5 | desc 'Default: run unit tests.' 6 | task :default => :test 7 | 8 | desc 'Test the partial_renderer plugin.' 9 | Rake::TestTask.new(:test) do |t| 10 | t.libs << 'lib' 11 | t.libs << 'test' 12 | t.pattern = 'test/**/*_test.rb' 13 | t.verbose = true 14 | end 15 | 16 | desc 'Generate documentation for the partial_renderer plugin.' 17 | Rake::RDocTask.new(:rdoc) do |rdoc| 18 | rdoc.rdoc_dir = 'rdoc' 19 | rdoc.title = 'PartialRenderer' 20 | rdoc.options << '--line-numbers' << '--inline-source' 21 | rdoc.rdoc_files.include('README') 22 | rdoc.rdoc_files.include('lib/**/*.rb') 23 | end 24 | -------------------------------------------------------------------------------- /config/locales/ru.yml: -------------------------------------------------------------------------------- 1 | --- 2 | ru: 3 | all_products: Все товары на одной странице 4 | number: 5 | currency: 6 | format: 7 | unit: грн. 8 | activerecord: 9 | attributes: 10 | address: 11 | firstname: ФИО 12 | address1: Комментарии 13 | address2: Адрес 14 | errors: 15 | models: 16 | user: 17 | attributes: 18 | email: 19 | taken: уже используется кем-то 20 | address: 21 | attributes: 22 | phone: 23 | blank: не может быть пустым 24 | firstname: 25 | blank: не может быть пустым 26 | city: 27 | blank: не может быть пустым 28 | -------------------------------------------------------------------------------- /public/javascripts/admin/inline_help.js: -------------------------------------------------------------------------------- 1 | fields = { 2 | product_available_on: "Укажите начиная с какой даты товар станет
    доступен в публичной части магазина", 3 | product_permalink: "Постоянная ссылка на товар (SEO-аттрибут)" 4 | 5 | } 6 | 7 | function register_help() { 8 | jQuery.each(fields, function(element_id, help_msg) { 9 | jQuery('label[for='+element_id+']').after(" help"); 10 | jQuery('#help_'+element_id).simpletip({ position: 'right', offset: [-10, -230], content: help_msg}); 11 | }); 12 | } 13 | 14 | $(document).ajaxSuccess(register_help); 15 | $(document).ready(register_help); 16 | 17 | -------------------------------------------------------------------------------- /public/javascripts/wymeditor/plugins/tidy/README: -------------------------------------------------------------------------------- 1 | WYMeditor : what you see is What You Mean web-based editor 2 | Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/ 3 | Dual licensed under the MIT (MIT-license.txt) 4 | and GPL (GPL-license.txt) licenses. 5 | 6 | For further information visit: 7 | http://www.wymeditor.org/ 8 | 9 | File Name: 10 | README - HTML Tidy plugin for WYMeditor 11 | 12 | File Authors: 13 | Jean-François Hovinne (jf.hovinne a-t wymeditor dotorg) 14 | 15 | Credits: 16 | 'HTML Tidy' by Dave Ragget - http://tidy.sourceforge.net/ 17 | Icon 'wand' by Mark James - http://famfamfam.com/ 18 | 19 | WYMeditor documentation is available online at http://www.wymeditor.org/ 20 | -------------------------------------------------------------------------------- /app/views/common/main.html.erb: -------------------------------------------------------------------------------- 1 | <% @taxonomy = Taxon.find_by_name(Spree::Config[:product_manufacturers_taxon]) %> 2 | <% if @taxonomy %> 3 | <% i = 0 %> 4 | <% @taxonomy.children.each do |item| %> 5 | <% i+= 1%> 6 |
    7 |
    8 | <%= item.name %> 9 |
    10 |
    11 | 12 |
    13 |
    14 | <% end %> 15 | <% else %> 16 | Не найдено элементов в категории 17 | "<%= Spree::Config[:product_manufacturers_taxon] %>" 18 |
    19 | (опция конфигурации product_manufacturers_taxon) 20 | <% end %> 21 | -------------------------------------------------------------------------------- /public/javascripts/calculator.js: -------------------------------------------------------------------------------- 1 | $j(function() { 2 | var original_calc_type = $j('#calc-type').attr('value'); 3 | $j('div#calculator-settings-warning').hide(); 4 | $j('#calc-type').change(function() { 5 | if ($j('#calc-type').attr('value') == original_calc_type) { 6 | $j('div.calculator-settings').show(); 7 | $j('div#calculator-settings-warning').hide(); 8 | $j('.calculator-settings input').removeAttr('disabled'); 9 | } else { 10 | $j('div.calculator-settings').hide(); 11 | $j('div#calculator-settings-warning').show(); 12 | $j('.calculator-settings input').attr('disabled', 'disabled'); 13 | } 14 | }); 15 | }) 16 | -------------------------------------------------------------------------------- /db/migrate/20090625125735_extend_pages.rb: -------------------------------------------------------------------------------- 1 | class ExtendPages < ActiveRecord::Migration 2 | def self.up 3 | change_table :pages do |t| 4 | t.boolean :show_in_header, :default => false, :null => false 5 | t.boolean :show_in_footer, :default => false, :null => false 6 | t.string :foreign_link 7 | t.integer :position, :default => 1, :null => false 8 | Page.all(:order => "updated_at ASC").each_with_index{|page,x| page.update_attribute(:position, x+1)} 9 | 10 | end 11 | end 12 | 13 | def self.down 14 | change_table :pages do |t| 15 | t.remove :show_in_header 16 | t.remove :show_in_footer 17 | t.remove :foreign_link 18 | t.remove :position 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/example/js/dialog.js: -------------------------------------------------------------------------------- 1 | tinyMCEPopup.requireLangPack(); 2 | 3 | var ExampleDialog = { 4 | init : function() { 5 | var f = document.forms[0]; 6 | 7 | // Get the selected contents as text and place it in the input 8 | f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); 9 | f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); 10 | }, 11 | 12 | insert : function() { 13 | // Insert the contents from the input into the document 14 | tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); 15 | tinyMCEPopup.close(); 16 | } 17 | }; 18 | 19 | tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); 20 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/table/js/merge_cells.js: -------------------------------------------------------------------------------- 1 | tinyMCEPopup.requireLangPack(); 2 | 3 | var MergeCellsDialog = { 4 | init : function() { 5 | var f = document.forms[0]; 6 | 7 | f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1); 8 | f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1); 9 | }, 10 | 11 | merge : function() { 12 | var func, f = document.forms[0]; 13 | 14 | tinyMCEPopup.restoreSelection(); 15 | 16 | func = tinyMCEPopup.getWindowArg('onaction'); 17 | 18 | func({ 19 | cols : f.numcols.value, 20 | rows : f.numrows.value 21 | }); 22 | 23 | tinyMCEPopup.close(); 24 | } 25 | }; 26 | 27 | tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog); 28 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js: -------------------------------------------------------------------------------- 1 | /** 2 | * acronym.js 3 | * 4 | * Copyright 2009, Moxiecode Systems AB 5 | * Released under LGPL License. 6 | * 7 | * License: http://tinymce.moxiecode.com/license 8 | * Contributing: http://tinymce.moxiecode.com/contributing 9 | */ 10 | 11 | function init() { 12 | SXE.initElementDialog('acronym'); 13 | if (SXE.currentAction == "update") { 14 | SXE.showRemoveButton(); 15 | } 16 | } 17 | 18 | function insertAcronym() { 19 | SXE.insertElement('acronym'); 20 | tinyMCEPopup.close(); 21 | } 22 | 23 | function removeAcronym() { 24 | SXE.removeElement('acronym'); 25 | tinyMCEPopup.close(); 26 | } 27 | 28 | tinyMCEPopup.onInit.add(init); 29 | -------------------------------------------------------------------------------- /db/migrate/20091015110842_add_open_id_authentication_tables.rb: -------------------------------------------------------------------------------- 1 | class AddOpenIdAuthenticationTables < ActiveRecord::Migration 2 | def self.up 3 | create_table :open_id_authentication_associations, :force => true do |t| 4 | t.integer :issued, :lifetime 5 | t.string :handle, :assoc_type 6 | t.binary :server_url, :secret 7 | end 8 | 9 | create_table :open_id_authentication_nonces, :force => true do |t| 10 | t.integer :timestamp, :null => false 11 | t.string :server_url, :null => true 12 | t.string :salt, :null => false 13 | end 14 | end 15 | 16 | def self.down 17 | drop_table :open_id_authentication_associations 18 | drop_table :open_id_authentication_nonces 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /public/javascripts/lang/it.js: -------------------------------------------------------------------------------- 1 | // italian translation by raf 2 | 3 | var fdLocale = { 4 | months:[ "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre" ], 5 | fullDay:[ "Luned\u00ec", "Marted\u00ec", "Mercoled\u00ec", "Gioved\u00ec", "Venerd\u00ec", "Sabato", "Domenica" ], 6 | /* 7 | Only stipulate the dayAbbr should the first letter of the fullDay not suffice 8 | dayAbbr:[], 9 | Only stipulate the firstDayOfWeek should the first day not be Monday 10 | firstDayOfWeek:0, 11 | */ 12 | titles:[ "Mese Precedente", "Mese Successivo", "Anno Precedente", "Anno Successivo", "Oggi" ] 13 | }; 14 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/preview/preview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | {#preview.preview_desc} 11 | 12 | 13 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/template/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.template_dlg',{ 2 | title:"Templates", 3 | label:"Template", 4 | desc_label:"Description", 5 | desc:"Insert predefined template content", 6 | select:"Select a template", 7 | preview:"Preview", 8 | warning:"Warning: Updating a template with a different one may cause data loss.", 9 | mdate_format:"%Y-%m-%d %H:%M:%S", 10 | cdate_format:"%Y-%m-%d %H:%M:%S", 11 | months_long:"January,February,March,April,May,June,July,August,September,October,November,December", 12 | months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", 13 | day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday", 14 | day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun" 15 | }); -------------------------------------------------------------------------------- /db/migrate/20101026184808_migrate_checkout_to_orders.rb: -------------------------------------------------------------------------------- 1 | class MigrateCheckoutToOrders < ActiveRecord::Migration 2 | 3 | class Checkout < ActiveRecord::Base 4 | end 5 | 6 | def self.up 7 | Order.find_each do |order| 8 | checkout = update_order(order) 9 | checkout.destroy if checkout 10 | end 11 | end 12 | 13 | def self.update_order(order) 14 | checkout = Checkout.find_by_order_id(order.id) 15 | if checkout 16 | order.update_attributes_without_callbacks({ 17 | :email => checkout.email, 18 | :bill_address_id => checkout.bill_address_id, 19 | :ship_address_id => checkout.ship_address_id 20 | }) 21 | end 22 | checkout 23 | end 24 | 25 | def self.down 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /db/migrate/20100506180619_add_icon_to_taxons.rb: -------------------------------------------------------------------------------- 1 | class AddIconToTaxons < ActiveRecord::Migration 2 | def self.up 3 | # skip this migration if the attribute already exists because of advanced taxon extension 4 | return if Taxon.new.respond_to? :icon_file_name 5 | add_column :taxons, :icon_file_name, :string 6 | add_column :taxons, :icon_content_type, :string 7 | add_column :taxons, :icon_file_size, :integer 8 | add_column :taxons, :icon_updated_at, :datetime 9 | end 10 | 11 | def self.down 12 | remove_column :taxons, :icon_file_name 13 | remove_column :taxons, :icon_content_type 14 | remove_column :taxons, :icon_file_size 15 | remove_column :taxons, :icon_updated_at 16 | end 17 | 18 | end 19 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/advimage/css/advimage.css: -------------------------------------------------------------------------------- 1 | #src_list, #over_list, #out_list {width:280px;} 2 | .mceActionPanel {margin-top:7px;} 3 | .alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} 4 | .checkbox {border:0;} 5 | .panel_wrapper div.current {height:305px;} 6 | #prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} 7 | #align, #classlist {width:150px;} 8 | #width, #height {vertical-align:middle; width:50px; text-align:center;} 9 | #vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} 10 | #class_list {width:180px;} 11 | input {width: 280px;} 12 | #constrain, #onmousemovecheck {width:auto;} 13 | #id, #dir, #lang, #usemap, #longdesc {width:200px;} 14 | -------------------------------------------------------------------------------- /app/views/common/_order_form.haml: -------------------------------------------------------------------------------- 1 | = hook :cart_form do 2 | - form_for :order, :url => populate_orders_url do |f| 3 | #order 4 | %div{ :style=> "float:left;padding: 10px;" } 5 | = text_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"), 1, :class => "title", :size => 3 6 | %div{ :style=> "float:left" } 7 | %a#add.submit{:href => 'javascript:;' } 8 | Добавить 9 | %br/ 10 | в корзину 11 | %a.submit{:href => "javascript:;"} 12 | %img{:alt => "", :src => "/images/order.png"}/ 13 | %input{ :type => "submit", :style => "display:none" } 14 | :javascript 15 | $('.submit').click(function(){ 16 | $('input[type=submit]').click(); 17 | }); 18 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/generators/partial_renderer/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Partial renderer generates view partial for use with WillPaginate::PartialRenderer class. 3 | Partial can be in haml(default) or erb format. 4 | You can specify the name of partial, default is 'pagination' ('app/views/_pagination.haml') 5 | 6 | Example: 7 | ./script/generate partial_renderer go 8 | 9 | This will create: 10 | app/views/_partial.haml 11 | 12 | With partial name arg 13 | ./script/generate partial_renderer pages 14 | 15 | This will create: 16 | app/views/_pages.haml 17 | 18 | With partial name and format args 19 | ./script/generate partial_renderer pages --format=erb 20 | 21 | This will create: 22 | app/views/_pages.erb 23 | -------------------------------------------------------------------------------- /db/migrate/20100209025806_create_payment_methods.rb: -------------------------------------------------------------------------------- 1 | class CreatePaymentMethods < ActiveRecord::Migration 2 | def self.up 3 | create_table :payment_methods do |t| 4 | t.string :type 5 | t.string :name 6 | t.text :description 7 | t.boolean :active, :default => true 8 | t.string :environment, :default => "development" 9 | t.timestamps 10 | end 11 | # TODO - also migrate any legacy configurations for gateways and billing integrations before dropping the old tables 12 | # we probably also need to do this inside the payment_gateway extension b/c table won't exist yet in fresh bootstrap 13 | #drop_table :billing_integrations 14 | #drop_table :gateways 15 | end 16 | 17 | def self.down 18 | drop_table :payment_methods 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb: -------------------------------------------------------------------------------- 1 | class AssignCreditcardTxnsToPayment < ActiveRecord::Migration 2 | def self.up 3 | add_column "creditcard_txns", "payment_id", :integer 4 | ActiveRecord::Base.connection.select_all("SELECT * FROM creditcard_txns").each do |txn_attrs| 5 | if creditcard = Creditcard.find_by_id(txn_attrs["creditcard_id"]) and creditcard.payments.first 6 | execute "UPDATE creditcard_txns SET payment_id = #{creditcard.payments.first.id} WHERE id = #{txn_attrs['id']}" 7 | end 8 | end 9 | remove_column "creditcard_txns", "creditcard_payment_id" 10 | end 11 | 12 | def self.down 13 | remove_column "creditcard_txns", "payment_id" 14 | add_column "creditcard_txns", "creditcard_payment_id", :integer 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /db/migrate/20091012120519_product_groups_and_scopes.rb: -------------------------------------------------------------------------------- 1 | class ProductGroupsAndScopes < ActiveRecord::Migration 2 | def self.up 3 | create_table(:product_groups) do |t| 4 | t.column :name, :string 5 | t.column :permalink, :string 6 | t.column :order, :string 7 | end 8 | 9 | create_table(:product_scopes) do |t| 10 | t.column :product_group_id, :integer 11 | t.column :name, :string 12 | t.column :arguments, :text 13 | end 14 | 15 | add_index :product_groups, :name 16 | add_index :product_groups, :permalink 17 | add_index :product_scopes, :name 18 | add_index :product_scopes, :product_group_id 19 | end 20 | 21 | def self.down 22 | drop_table :product_groups 23 | drop_table :product_scopes 24 | end 25 | end 26 | -------------------------------------------------------------------------------- /db/migrate/20100426100726_create_promotion_rules.rb: -------------------------------------------------------------------------------- 1 | class CreatePromotionRules < ActiveRecord::Migration 2 | def self.up 3 | create_table :promotion_rules do |t| 4 | t.references :promotion, :user, :product_group 5 | t.timestamps 6 | t.string :type 7 | end 8 | add_index :promotion_rules, :product_group_id 9 | add_index :promotion_rules, :user_id 10 | 11 | create_table :products_promotion_rules do |t| 12 | t.integer :product_id, :promotion_rule_id 13 | end 14 | remove_column :products_promotion_rules, :id 15 | add_index :products_promotion_rules, :product_id 16 | add_index :products_promotion_rules, :promotion_rule_id 17 | 18 | end 19 | 20 | def self.down 21 | drop_table :promotion_rules 22 | drop_table :products_promotion_rules 23 | end 24 | end 25 | -------------------------------------------------------------------------------- /public/javascripts/nested-attribute.js: -------------------------------------------------------------------------------- 1 | //On page load 2 | // TODO - remove nonconflict stuff once prototype is gone for good 3 | var $j = jQuery.noConflict(); 4 | 5 | replace_ids = function(s){ 6 | var new_id = new Date().getTime(); 7 | return s.replace(/NEW_RECORD/g, new_id); 8 | } 9 | 10 | $j(function() { 11 | $j('a[id*=nested]').click(function() { 12 | var template = $j(this).attr('href').replace(/.*#/, ''); 13 | html = replace_ids(eval(template)); 14 | $j('#ul-' + $j(this).attr('id')).append(html); 15 | update_remove_links(); 16 | }); 17 | update_remove_links(); 18 | }) 19 | 20 | var update_remove_links = function() { 21 | $j('.remove').click(function() { 22 | $j(this).prevAll(':first').val(1); 23 | $j(this).parent().hide(); 24 | return false; 25 | }); 26 | }; 27 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/advimage/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); -------------------------------------------------------------------------------- /public/422.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The change you wanted was rejected (422) 5 | 17 | 18 | 19 | 20 | 21 |
    22 |

    The change you wanted was rejected.

    23 |

    Maybe you tried to change something you didn't have access to.

    24 |
    25 | 26 | 27 | -------------------------------------------------------------------------------- /public/javascripts/admin/orders/edit.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function(){ 2 | 3 | $("#add_product_name").product_autocomplete(); 4 | 5 | $("#add_line_item_to_order").live("click", function(){ 6 | if($('#add_variant_id').val() == ''){ return false; } 7 | update_target = jQuery(this).attr("data-update"); 8 | jQuery.ajax({ dataType: 'script', url: this.href, type: "POST", 9 | data: {"line_item[variant_id]": $('#add_variant_id').val(), 10 | "line_item[quantity]": $('#add_quantity').val()}, 11 | success: function(data){ 12 | $("#"+update_target).html(data); 13 | $('#add_product_name').val(''); 14 | $('#add_variant_id').val(''); 15 | $('#add_quantity').val(1) 16 | } 17 | }); 18 | return false; 19 | }); 20 | 21 | }); 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/views/static_content/show.html.erb: -------------------------------------------------------------------------------- 1 | <% Breadcrumbs.set_controller(@controller) %> 2 | <% Breadcrumbs.add_main.add_articles.add_article(@page) %> 3 | <% content_for :head do -%> 4 | 5 | <% if @page.attribute_present? :meta_keywords -%> 6 | 7 | <% end -%> 8 | <% if @page.attribute_present? :meta_description -%> 9 | 10 | <% end -%> 11 | <% end -%> 12 | <% content_for :sidebar do %> 13 | <% if "products" == @current_controller && @taxon %> 14 | <%= render :partial => "shared/filters" %> 15 | <% else %> 16 | <%= render :partial => "shared/taxonomies" %> 17 | <% end %> 18 | <% end %> 19 |

    <%= @page.title %>

    20 | <%= raw @page.body %> 21 | -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The page you were looking for doesn't exist (404) 5 | 17 | 18 | 19 | 20 | 21 |
    22 |

    The page you were looking for doesn't exist.

    23 |

    You may have mistyped the address or the page may have moved.

    24 |
    25 | 26 | 27 | -------------------------------------------------------------------------------- /public/500.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | We're sorry, but something went wrong (500) 5 | 17 | 18 | 19 | 20 | 21 |
    22 |

    We're sorry, but something went wrong.

    23 |

    We've been notified about this issue and we'll take a look at it shortly.

    24 |
    25 | 26 | 27 | -------------------------------------------------------------------------------- /db/migrate/20091104151730_add_some_indexes.rb: -------------------------------------------------------------------------------- 1 | class AddSomeIndexes < ActiveRecord::Migration 2 | def self.up 3 | add_index(:taxons, :permalink) 4 | add_index(:taxons, :parent_id) 5 | add_index(:taxons, :taxonomy_id) 6 | add_index(:assets, :viewable_id) 7 | add_index(:assets, [:viewable_type, :type]) 8 | add_index(:product_properties, :product_id) 9 | add_index(:option_values_variants, [:variant_id, :option_value_id]) 10 | end 11 | 12 | def self.down 13 | remove_index(:taxons, :permalink) 14 | remove_index(:taxons, :parent_id) 15 | remove_index(:taxons, :taxonomy_id) 16 | remove_index(:assets, :viewable_id) 17 | remove_index(:assets, [:viewable_type, :type]) 18 | remove_index(:product_properties, :product_id) 19 | remove_index(:option_values_variants, [:variant_id, :option_value_id]) 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/advhr/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css: -------------------------------------------------------------------------------- 1 | /* Silver */ 2 | .o2k7SkinSilver .mceToolbar .mceToolbarStart span, .o2k7SkinSilver .mceButton, .o2k7SkinSilver .mceSplitButton, .o2k7SkinSilver .mceSeparator, .o2k7SkinSilver .mceSplitButton a.mceOpen, .o2k7SkinSilver .mceListBox a.mceOpen {background-image:url(img/button_bg_silver.png)} 3 | .o2k7SkinSilver table, .o2k7SkinSilver .mceMenuItemTitle a {background:#eee} 4 | .o2k7SkinSilver .mceListBox .mceText {background:#FFF} 5 | .o2k7SkinSilver .mceExternalToolbar, .o2k7SkinSilver .mceListBox .mceText, .o2k7SkinSilver div.mceMenu, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceFirst td, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceLast td, .o2k7SkinSilver .mceIframeContainer {border-color: #bbb} 6 | -------------------------------------------------------------------------------- /public/javascripts/admin/address_states.js: -------------------------------------------------------------------------------- 1 | var update_state = function(region) { 2 | var country = $('span#' + region + 'country :only-child').val(); 3 | var states = state_mapper[country]; 4 | 5 | var state_select = $('span#' + region + 'state select'); 6 | var state_input = $('span#' + region + 'state input'); 7 | 8 | if(states) { 9 | state_select.html(''); 10 | var states_with_blank = [["",""]].concat(states); 11 | $.each(states_with_blank, function(pos,id_nm) { 12 | var opt = $(document.createElement('option')) 13 | .attr('value', id_nm[0]) 14 | .html(id_nm[1]); 15 | state_select.append(opt); 16 | }); 17 | state_select.enable().show();; 18 | state_input.hide().disable(); 19 | 20 | } else { 21 | state_input.enable().show(); 22 | state_select.hide().disable(); 23 | } 24 | 25 | }; -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/README: -------------------------------------------------------------------------------- 1 | PartialRenderer 2 | =============== 3 | 4 | PartialRenderer let's you to use view partials for displaying pagination. 5 | Default generated partial's look is similar to those LinkRenderer renders 6 | 7 | 8 | To install use command 9 | ./script/plugin install git://github.com/html/partial_renderer.git 10 | 11 | or 12 | 13 | git submodule add git://github.com/html/partial_renderer.git vendor/plugins/partial_renderer/ 14 | 15 | 16 | and generate simple view partial 17 | 18 | ./script/generate partial_renderer go 19 | 20 | Example 21 | ======= 22 | 23 | ./script/generate partial_renderer go 24 | 25 | create app/views/_pagination.haml 26 | 27 | Now you have pagination like with WillPaginate::LinkRenderer, but you can change it's look and feel in your view partial 28 | 29 | Copyright (c) 2009 Olexiy Zamkoviy, released under the MIT license 30 | -------------------------------------------------------------------------------- /db/migrate/20091015153048_add_openid_field_to_users.rb: -------------------------------------------------------------------------------- 1 | class AddOpenidFieldToUsers < ActiveRecord::Migration 2 | def self.up 3 | add_column :users, :openid_identifier, :string 4 | add_index :users, :openid_identifier 5 | 6 | change_column :users, :login, :string, :default => nil, :null => true 7 | change_column :users, :crypted_password, :string, :default => nil, :null => true 8 | change_column :users, :salt, :string, :default => nil, :null => true 9 | end 10 | 11 | def self.down 12 | remove_column :users, :openid_identifier 13 | 14 | [:login, :crypted_password, :salt].each do |field| 15 | User.all(:conditions => "#{field} is NULL").each { |user| user.update_attribute(field, "") if user.send(field).nil? } 16 | change_column :users, field, :string, :default => "", :null => false 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/example/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); -------------------------------------------------------------------------------- /public/javascripts/admin/promotions.js: -------------------------------------------------------------------------------- 1 | var initProductRuleSourceField = function(){ 2 | 3 | $products_source_field = jQuery('.products_rule_products_source_field input'); 4 | $products_source_field.click(function() { 5 | $rule_container = jQuery(this).parents('.promotion-rule'); 6 | if(this.checked){ 7 | if(this.value == 'manual'){ 8 | $rule_container.find('.products_rule_products').show(); 9 | $rule_container.find('.products_rule_product_group').hide(); 10 | } else { 11 | $rule_container.find('.products_rule_products').hide(); 12 | $rule_container.find('.products_rule_product_group').show(); 13 | } 14 | } 15 | }); 16 | $products_source_field.each(function() { 17 | $(this).triggerHandler('click'); 18 | }); 19 | 20 | }; 21 | 22 | 23 | jQuery(document).ready(function() { 24 | initProductRuleSourceField(); 25 | }); 26 | 27 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/preview/example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 18 | Example of a custom preview page 19 | 20 | 21 | 22 | Editor contents:
    23 |
    24 | 25 |
    26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/views/common/production_by_manufacturer_and_type.haml: -------------------------------------------------------------------------------- 1 | - content_for :body_class do 2 | servizy 3 | - if @products.empty? 4 | Нет продуктов для данного производителя 5 | - else 6 | - @products.each do |product| 7 | .fotoblock{ :class => cycle('','secondcol') } 8 | .name 9 | = product.name 10 | .clear 11 | = product_price product 12 | .image 13 | %a{:href => product_by_manufacturer_and_type_path(@manufacturer.name, @type.name, product.id) } 14 | = display_product_image_for_list product 15 | - if @products.respond_to? :total_pages 16 | - paginate_items @products 17 | - else 18 | - content_for :main_uzor_bottom do 19 | :plain 20 | style="overflow-y: scroll" 21 | 22 | - content_for :left_menu do 23 | - @taxon = @manufacturer 24 | = render :partial => '/left_menu_for_manufacturer', :manufacturer => @manufacturer 25 | -------------------------------------------------------------------------------- /lib/paperclip/extent.rb: -------------------------------------------------------------------------------- 1 | # lib/paperclip_processors/transparent.rb 2 | module Paperclip 3 | class Extent < Processor 4 | 5 | class InstanceNotGiven < ArgumentError; end 6 | 7 | def initialize(file, options = {},attachment = nil) 8 | super 9 | @file = file 10 | @current_format = File.extname(@file.path) 11 | @basename = File.basename(@file.path, @current_format) 12 | end 13 | 14 | def make 15 | dst = Tempfile.new([@basename, @format].compact.join(".")) 16 | command = "#{@file.path} -gravity center -extent 280x220 #{dst.path}" 17 | 18 | begin 19 | success = Paperclip.run("convert", command.gsub(/\s+/, " ")) 20 | rescue PaperclipCommandLineError 21 | raise PaperclipError, "There was an error processing the watermark for #{@basename}" if @whiny_thumbnails 22 | end 23 | 24 | dst 25 | end 26 | 27 | end 28 | end # 29 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/paste/pasteword.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | {#paste.paste_word_desc} 4 | 5 | 6 | 7 | 8 |
    9 |
    {#paste.paste_word_desc}
    10 | 11 |
    {#paste_dlg.word_title}
    12 | 13 |
    14 | 15 |
    16 | 17 | 18 |
    19 |
    20 | 21 | 22 | -------------------------------------------------------------------------------- /public/javascripts/tinymce/themes/simple/langs/ru.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('ru.simple',{"cleanup_desc":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0439 \u043a\u043e\u0434","redo_desc":"\u0412\u0435\u0440\u043d\u0443\u0442\u044c (Ctrl+Y)","undo_desc":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c (Ctrl+Z)","numlist_desc":"\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a","bullist_desc":"\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a","striketrough_desc":"\u0417\u0430\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0439","underline_desc":"\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0439 (Ctrl+U)","italic_desc":"\u041a\u0443\u0440\u0441\u0438\u0432 (Ctrl+I)","bold_desc":"\u041f\u043e\u043b\u0443\u0436\u0438\u0440\u043d\u044b\u0439 (Ctrl+B)"}); -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/iespell/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})(); -------------------------------------------------------------------------------- /app/views/common/product_by_type.haml: -------------------------------------------------------------------------------- 1 | - # Similar to app/views/products/show.haml 2 | - content_for :body_class do 3 | izdeliya 4 | .name 5 | = @product.name 6 | 7 | = javascript_include_tag 'product' 8 | #product-images 9 | = hook :product_images do 10 | #main-image 11 | = render 'products/image' 12 | #thumbnails 13 | = render 'products/thumbnails', :product => @product 14 | .clear 15 | 16 | #desc 17 | %table{ :style => "border: 1px solid white", :width => "100%", :cellspacing => 0, :cellpadding => 0 } 18 | - @product.product_properties(:include => :properties).each do |prop| 19 | %tr 20 | %td 21 | = prop.property.name 22 | \: 23 | %td 24 | = raw prop.value.gsub("\n", "
    ") 25 | %tr 26 | %td Номенклатурный номер 27 | %td= @product.sku 28 | %br 29 | Цена: 30 | = product_price @product 31 | 32 | = render :partial => 'order_form' 33 | -------------------------------------------------------------------------------- /public/javascripts/localization/messages_tw.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Language: TW (Taiwan - Traditional Chinese) 4 | * Author: Mr.BB 5 | */ 6 | jQuery.extend(jQuery.validator.messages, { 7 | required: "必填", 8 | remote: "請修正此欄位", 9 | email: "請輸入正確的電子信箱", 10 | url: "請輸入合法的URL", 11 | date: "請輸入合法的日期", 12 | dateISO: "請輸入合法的日期 (ISO).", 13 | number: "請輸入數字", 14 | digits: "請輸入整數", 15 | creditcard: "請輸入合法的信用卡號碼", 16 | equalTo: "請重複輸入一次", 17 | accept: "請輸入有效的後缀字串", 18 | maxlength: jQuery.validator.format("請輸入長度不大於{0} 的字串"), 19 | minlength: jQuery.validator.format("請輸入長度不小於 {0} 的字串"), 20 | rangelength: jQuery.validator.format("請輸入長度介於 {0} 和 {1} 之間的字串"), 21 | range: jQuery.validator.format("請輸入介於 {0} 和 {1} 之間的數值"), 22 | max: jQuery.validator.format("請輸入不大於 {0} 的數值"), 23 | min: jQuery.validator.format("請輸入不小於 {0} 的數值") 24 | }); -------------------------------------------------------------------------------- /public/javascripts/tinymce/plugins/style/css/props.css: -------------------------------------------------------------------------------- 1 | #text_font {width:250px;} 2 | #text_size {width:70px;} 3 | .mceAddSelectValue {background:#DDD;} 4 | select, #block_text_indent, #box_width, #box_height, #box_padding_top, #box_padding_right, #box_padding_bottom, #box_padding_left {width:70px;} 5 | #box_margin_top, #box_margin_right, #box_margin_bottom, #box_margin_left, #positioning_width, #positioning_height, #positioning_zindex {width:70px;} 6 | #positioning_placement_top, #positioning_placement_right, #positioning_placement_bottom, #positioning_placement_left {width:70px;} 7 | #positioning_clip_top, #positioning_clip_right, #positioning_clip_bottom, #positioning_clip_left {width:70px;} 8 | .panel_wrapper div.current {padding-top:10px;height:230px;} 9 | .delim {border-left:1px solid gray;} 10 | .tdelim {border-bottom:1px solid gray;} 11 | #block_display {width:145px;} 12 | #list_type {width:115px;} 13 | .disabled {background:#EEE;} 14 | -------------------------------------------------------------------------------- /public/javascripts/localization/messages_cn.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Language: CN 4 | * Author: Fayland Lam 5 | */ 6 | jQuery.extend(jQuery.validator.messages, { 7 | required: "必选字段", 8 | remote: "请修正该字段", 9 | email: "请输入正确格式的电子邮件", 10 | url: "请输入合法的网址", 11 | date: "请输入合法的日期", 12 | dateISO: "请输入合法的日期 (ISO).", 13 | number: "请输入合法的数字", 14 | digits: "只能输入整数", 15 | creditcard: "请输入合法的信用卡号", 16 | equalTo: "请再次输入相同的值", 17 | accept: "请输入拥有合法后缀名的字符串", 18 | maxlength: jQuery.validator.format("请输入一个长度最多是 {0} 的字符串"), 19 | minlength: jQuery.validator.format("请输入一个长度最少是 {0} 的字符串"), 20 | rangelength: jQuery.validator.format("请输入一个长度介于 {0} 和 {1} 之间的字符串"), 21 | range: jQuery.validator.format("请输入一个介于 {0} 和 {1} 之间的值"), 22 | max: jQuery.validator.format("请输入一个最大为 {0} 的值"), 23 | min: jQuery.validator.format("请输入一个最小为 {0} 的值") 24 | }); -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/generators/partial_renderer/partial_renderer_generator.rb: -------------------------------------------------------------------------------- 1 | class PartialRendererGenerator < Rails::Generator::NamedBase 2 | 3 | def initialize(runtime_args, runtime_options = {}) 4 | super 5 | 6 | if runtime_args[0] == 'go' 7 | options[:file_name] = 'pagination' 8 | else 9 | options[:file_name] = runtime_args[0] 10 | end 11 | 12 | if options[:format].nil? 13 | options[:format] = 'haml' 14 | end 15 | 16 | end 17 | 18 | def manifest 19 | 20 | record do |m| 21 | m.file "pagination.#{options[:format]}", "app/views/_#{options[:file_name]}.#{options[:format]}" 22 | end 23 | end 24 | 25 | def add_options!(opt) 26 | opt.separator '' 27 | opt.separator 'Options:' 28 | opt.on("--haml", "Generate haml template") { |v| options[:format] = "haml"; } 29 | opt.on("--erb", "Generate erb template") { |v| options[:format] = "erb"; } 30 | 31 | end 32 | end 33 | --------------------------------------------------------------------------------