refinerycms-stores 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +12 -12
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/app/assets/stylesheets/refinery/refinerycms-stores.sass +10 -0
- data/app/controllers/refinery/customers/customers_controller.rb +76 -0
- data/app/controllers/refinery/orders/orders_controller.rb +1 -0
- data/app/controllers/refinery/stores/stores_controller.rb +1 -0
- data/app/helpers/refinery/stores/stores_helper.rb +27 -0
- data/app/models/refinery/addresses/address.rb +3 -0
- data/app/models/refinery/customers/customer.rb +17 -0
- data/app/models/refinery/orders/order.rb +2 -1
- data/app/views/refinery/customers/edit.html.haml +17 -0
- data/app/views/refinery/customers/new.html.haml +17 -0
- data/app/views/refinery/products/products/show.html.haml +38 -0
- data/app/views/refinery/stores/stores/_cart.html.haml +20 -0
- data/app/views/refinery/stores/stores/_cart_item.html.haml +9 -0
- data/app/views/refinery/stores/stores/_customer_head.html.haml +12 -0
- data/app/views/refinery/stores/stores/_list_product.html.haml +11 -0
- data/app/views/refinery/stores/stores/index.html.haml +6 -0
- data/app/views/refinery/stores/stores/show.html.haml +14 -0
- data/config/locales/en.yml +23 -0
- data/config/locales/es.yml +24 -0
- data/config/locales/fr.yml +23 -0
- data/config/locales/nb.yml +24 -0
- data/config/locales/nl.yml +24 -0
- data/config/routes.rb +17 -11
- data/db/migrate/6_create_customers_customers.rb +22 -0
- data/lib/refinery/customers.rb +21 -0
- data/lib/refinery/customers/engine.rb +31 -0
- data/lib/refinerycms-stores.rb +1 -0
- data/refinerycms-stores.gemspec +21 -445
- metadata +37 -1612
- data/Gemfile.lock +0 -338
- data/app/views/refinery/products/products/show.html.erb +0 -76
- data/app/views/refinery/stores/stores/_cart.html.erb +0 -22
- data/app/views/refinery/stores/stores/_cart_item.html.erb +0 -9
- data/app/views/refinery/stores/stores/_list_product.html.erb +0 -16
- data/app/views/refinery/stores/stores/index.html.erb +0 -11
- data/app/views/refinery/stores/stores/show.html.erb +0 -29
@@ -1,16 +0,0 @@
|
|
1
|
-
<dl>
|
2
|
-
<dt>
|
3
|
-
<% if list_product.main_pic_id -%>
|
4
|
-
<%= image_fu list_product.main_pic, Refinery::Images.user_image_sizes[:small], :class => "catalog-pic", :alt => list_product.name %>
|
5
|
-
<% else -%>
|
6
|
-
|
7
|
-
<% end %>
|
8
|
-
</dt>
|
9
|
-
<dd>
|
10
|
-
<%= link_to( ( truncate( list_product.name, :length => 60 ) + " »" ).html_safe, refinery.products_product_path( list_product ) ) %>
|
11
|
-
<br/>
|
12
|
-
<%= number_to_currency(list_product.price) %>
|
13
|
-
<% # = button_to( "add to cart", refinery.add_to_cart_stores_stores_path(:id => list_product), :class => "add-to-cart" ) %>
|
14
|
-
|
15
|
-
</dd>
|
16
|
-
</dl>
|
@@ -1,29 +0,0 @@
|
|
1
|
-
<% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-stores')%>
|
2
|
-
|
3
|
-
|
4
|
-
<% content_for :body_content_title do %>
|
5
|
-
<%= @store.name %>
|
6
|
-
<% end %>
|
7
|
-
|
8
|
-
<% content_for :body_content_left do %>
|
9
|
-
<section>
|
10
|
-
<h1>
|
11
|
-
<%= @store.name %>
|
12
|
-
</h1>
|
13
|
-
<%=raw @store.description %>
|
14
|
-
</section>
|
15
|
-
|
16
|
-
<section class='catalog-brief-list' >
|
17
|
-
<%= render :partial => "list_product", :collection => @store.active_products %>
|
18
|
-
</section>
|
19
|
-
|
20
|
-
<% end %>
|
21
|
-
|
22
|
-
<% content_for :body_content_right do %>
|
23
|
-
<aside>
|
24
|
-
<%= render( :partial => "cart", :object => @cart ) %>
|
25
|
-
</aside>
|
26
|
-
<% end %>
|
27
|
-
|
28
|
-
<%= render "/refinery/content_page" %>
|
29
|
-
|