spree_core 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/app/assets/images/creditcards/icons/american_express.png +0 -0
  2. data/app/assets/images/creditcards/icons/cirrus.png +0 -0
  3. data/app/assets/images/creditcards/icons/delta.png +0 -0
  4. data/app/assets/images/creditcards/icons/dinersclub.png +0 -0
  5. data/app/assets/images/creditcards/icons/directdebit.png +0 -0
  6. data/app/assets/images/creditcards/icons/discover.png +0 -0
  7. data/app/assets/images/creditcards/icons/egold.png +0 -0
  8. data/app/assets/images/creditcards/icons/maestro.png +0 -0
  9. data/app/assets/images/creditcards/icons/master.png +0 -0
  10. data/app/assets/images/creditcards/icons/paypal.png +0 -0
  11. data/app/assets/images/creditcards/icons/solo.png +0 -0
  12. data/app/assets/images/creditcards/icons/switch.png +0 -0
  13. data/app/assets/images/creditcards/icons/visa.png +0 -0
  14. data/app/assets/images/creditcards/icons/visaelectron.png +0 -0
  15. data/app/assets/images/creditcards/icons/westernunion.png +0 -0
  16. data/app/assets/images/creditcards/icons/wirecard.png +0 -0
  17. data/app/assets/images/creditcards/icons/worldpay.png +0 -0
  18. data/app/assets/images/store/cart.png +0 -0
  19. data/app/assets/images/store/select_arrow.gif +0 -0
  20. data/app/assets/javascripts/admin/admin.js.erb +42 -40
  21. data/app/assets/javascripts/admin/orders/edit.js +1 -6
  22. data/app/assets/javascripts/admin/spree_core.js +1 -0
  23. data/app/assets/javascripts/store/cart.js +2 -2
  24. data/app/assets/javascripts/store/helpers.js.erb +2 -0
  25. data/app/assets/javascripts/store/spree_core.js +2 -0
  26. data/app/assets/stylesheets/store/base.css +387 -0
  27. data/app/assets/stylesheets/store/screen.css.scss +988 -0
  28. data/app/assets/stylesheets/store/spree_core.css +3 -2
  29. data/app/controllers/spree/admin/general_settings_controller.rb +2 -1
  30. data/app/controllers/spree/admin/orders_controller.rb +1 -1
  31. data/app/helpers/spree/base_helper.rb +9 -6
  32. data/app/models/spree/activator.rb +0 -1
  33. data/app/models/spree/adjustment.rb +7 -3
  34. data/app/models/spree/app_configuration.rb +34 -33
  35. data/app/models/spree/calculator/flexi_rate.rb +4 -4
  36. data/app/models/spree/order.rb +6 -1
  37. data/app/models/spree/payment.rb +7 -4
  38. data/app/models/spree/preferences/store.rb +3 -0
  39. data/app/models/spree/product.rb +8 -2
  40. data/app/views/spree/admin/general_settings/edit.html.erb +1 -1
  41. data/app/views/spree/admin/option_types/index.html.erb +1 -1
  42. data/app/views/spree/admin/shared/_order_details.html.erb +50 -2
  43. data/app/views/spree/admin/shared/_product_tabs.html.erb +1 -1
  44. data/app/views/spree/checkout/_address.html.erb +15 -13
  45. data/app/views/spree/checkout/_confirm.html.erb +1 -1
  46. data/app/views/spree/checkout/_delivery.html.erb +3 -1
  47. data/app/views/spree/checkout/_payment.html.erb +2 -1
  48. data/app/views/spree/checkout/_summary.html.erb +1 -0
  49. data/app/views/spree/checkout/edit.html.erb +22 -12
  50. data/app/views/spree/checkout/payment/_gateway.html.erb +1 -3
  51. data/app/views/spree/checkout/registration.html.erb +2 -2
  52. data/app/views/spree/layouts/spree_application.html.erb +57 -26
  53. data/app/views/spree/orders/_line_item.html.erb +1 -1
  54. data/app/views/spree/orders/edit.html.erb +8 -8
  55. data/app/views/spree/orders/show.html.erb +11 -3
  56. data/app/views/spree/products/_cart_form.html.erb +27 -22
  57. data/app/views/spree/products/_image.html.erb +2 -2
  58. data/app/views/spree/products/_properties.html.erb +13 -8
  59. data/app/views/spree/products/_taxons.html.erb +2 -2
  60. data/app/views/spree/products/_thumbnails.html.erb +1 -1
  61. data/app/views/spree/products/index.html.erb +1 -1
  62. data/app/views/spree/products/show.html.erb +38 -17
  63. data/app/views/spree/shared/_head.html.erb +17 -1
  64. data/app/views/spree/shared/_nav_bar.html.erb +1 -4
  65. data/app/views/spree/shared/_order_details.html.erb +85 -26
  66. data/app/views/spree/shared/_products.html.erb +10 -9
  67. data/app/views/spree/shared/_store_menu.html.erb +1 -2
  68. data/app/views/spree/shared/_taxonomies.html.erb +3 -3
  69. data/app/views/spree/taxons/_taxon.html.erb +1 -1
  70. data/app/views/spree/taxons/show.html.erb +1 -1
  71. data/config/locales/en.yml +2 -0
  72. data/config/routes.rb +2 -1
  73. data/db/migrate/{20111128153359_new_preferences.rb → 20120119024710_new_preferences.rb} +11 -9
  74. data/lib/generators/spree/install/install_generator.rb +13 -3
  75. data/lib/generators/spree/install/templates/config/initializers/spree.rb +5 -2
  76. data/lib/spree/core/controller_helpers.rb +3 -2
  77. data/lib/spree/core/engine.rb +1 -0
  78. data/lib/spree/core/permalinks.rb +4 -1
  79. data/lib/spree/core/testing_support/common_rake.rb +1 -1
  80. data/lib/spree/core/version.rb +1 -1
  81. data/vendor/assets/javascripts/jquery.formalize.min.js +1 -0
  82. data/vendor/assets/stylesheets/jquery.formalize.css +364 -0
  83. metadata +54 -32
  84. data/app/assets/stylesheets/store/reset.css +0 -175
  85. data/app/assets/stylesheets/store/screen.css +0 -127
@@ -4,7 +4,7 @@
4
4
  <%= render :partial => 'spree/shared/order_details', :locals => { :order => @order } %>
5
5
  </fieldset>
6
6
 
7
- <hr />
7
+ <br />
8
8
 
9
9
  <div class="form-buttons" data-hook="buttons">
10
10
  <%= submit_tag t(:place_order), :class => 'continue button primary' %>
@@ -11,7 +11,7 @@
11
11
  <% else %>
12
12
  <%= shipping_method[:name] %> <%= number_to_currency shipping_method[:cost] %>
13
13
  <% end %>
14
- </label><br />
14
+ </label>
15
15
  <% end %>
16
16
  </p>
17
17
  </div>
@@ -24,6 +24,8 @@
24
24
  </div>
25
25
  </fieldset>
26
26
 
27
+ <br />
28
+
27
29
  <div class="form-buttons" data-hook="buttons">
28
30
  <%= submit_tag t(:save_and_continue), :class => 'continue button primary' %>
29
31
  </div>
@@ -24,7 +24,8 @@
24
24
  </div>
25
25
  </fieldset>
26
26
 
27
- <hr class="space" />
27
+ <br class="space" />
28
+
28
29
  <div class="form-buttons" data-hook="buttons">
29
30
  <%= submit_tag t(:save_and_continue), :class => 'continue button primary' %>
30
31
  <script>disableSaveOnClick();</script>
@@ -1,4 +1,5 @@
1
1
  <h3><%= t(:order_summary) %></h3>
2
+
2
3
  <table data-hook="order_summary">
3
4
  <tbody>
4
5
  <tr data-hook="item_total">
@@ -1,18 +1,28 @@
1
1
  <% content_for :head do %>
2
2
  <%= javascript_include_tag states_path %>
3
3
  <% end %>
4
- <div id="checkout" data-hook>
5
- <h1><%= t(:checkout) %></h1>
6
- <%= checkout_progress %>
7
- <br clear="left" />
4
+ <div id="checkout" data-hook>
8
5
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
9
- <% if @order.state != 'confirm' %>
10
- <div id="checkout-summary" data-hook="checkout_summary_box">
11
- <%= render :partial => 'summary', :locals => { :order => @order } %>
6
+
7
+ <div class="row">
8
+ <h3 class="columns three alpha"><%= t(:checkout) %></h3>
9
+ <div class="columns thirteen omega"><%= checkout_progress %></div>
10
+ </div>
11
+
12
+ <div class="row">
13
+ <div class="columns <%= if @order.state != 'confirm' then 'alpha twelve' else 'alpha omega sixteen' end %>">
14
+ <%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
15
+ <%= render @order.state, :form => form %>
16
+ <%= submit_tag nil, :id => 'post-final', :style => 'display:none;' %>
17
+ <% end %>
12
18
  </div>
13
- <% end %>
14
- <%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
15
- <%= render @order.state, :form => form %>
16
- <%= submit_tag nil, :id => 'post-final', :style => 'display:none;' %>
17
- <% end %>
19
+ <div class="columns omega four">
20
+ <% if @order.state != 'confirm' %>
21
+ <div id="checkout-summary" data-hook="checkout_summary_box" class="columns omega four">
22
+ <%= render :partial => 'summary', :locals => { :order => @order } %>
23
+ </div>
24
+ <% end %>
25
+ </div>
26
+ </div>
27
+
18
28
  </div>
@@ -23,9 +23,7 @@
23
23
  <%= label_tag nil, t(:card_code) %><br />
24
24
  <%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(:id => 'card_code', :class => 'required', :size => 5) %>
25
25
  <span class="req">*</span>
26
- <a href="/content/cvv" target="_blank" onclick="window.open(this.href,'cvv_info','left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1');return false" data-hook="ccv_link">
27
- (<%= t(:whats_this) %>)
28
- </a>
26
+ <%= link_to "(#{t(:whats_this)})", spree.content_path('cvv'), :target => '_blank', :onclick => "window.open(this.href,'cvv_info','left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1');return false", "data-hook" => "cvv_link" %>
29
27
  </p>
30
28
  <%= hidden_field param_prefix, 'first_name', :value => @order.billing_firstname %>
31
29
  <%= hidden_field param_prefix, 'last_name', :value => @order.billing_lastname %>
@@ -1,11 +1,11 @@
1
1
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @user } %>
2
2
  <h2><%= t(:registration) %></h2>
3
- <div id="registration" data-hook>
3
+ <div id="registration" data-hook class="columns alpha eight">
4
4
  <div id="account">
5
5
  <!-- TODO: add partial with registration form -->
6
6
  </div>
7
7
  <% if Spree::Config[:allow_guest_checkout] %>
8
- <div id="guest_checkout" data-hook>
8
+ <div id="guest_checkout" data-hook class="columns omega eight">
9
9
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
10
10
  <h2><%= t(:guest_user_account) %></h2>
11
11
  <%= form_for @order, :url => update_checkout_registration_path, :method => :put, :html => { :id => 'checkout_form_registration' } do |f| %>
@@ -1,38 +1,69 @@
1
- <!DOCTYPE HTML>
2
- <html>
1
+ <!doctype html>
2
+
3
+ <!--[if lt IE 7 ]> <html class="ie ie6" lang="en"> <![endif]-->
4
+ <!--[if IE 7 ]> <html class="ie ie7" lang="en"> <![endif]-->
5
+ <!--[if IE 8 ]> <html class="ie ie8" lang="en"> <![endif]-->
6
+ <!--[if IE 9 ]> <html class="ie ie9" lang="en"> <![endif]-->
7
+ <!--[if gt IE 9]><!--><html lang="en"><!--<![endif]-->
8
+
9
+
3
10
  <head data-hook="inside_head">
4
11
  <%= render :partial => 'spree/shared/head' %>
5
12
  </head>
13
+
6
14
  <body class="<%= body_class %>" id="<%= @body_id || 'default' %>" data-hook="body">
7
- <div id="header" data-hook>
8
- <ul id="nav-bar" data-hook>
9
- <%= render :partial => 'spree/shared/nav_bar' %>
10
- </ul>
11
- <div id="logo" data-hook>
12
- <%= logo %>
13
- </div>
14
- </div>
15
+
16
+ <div class="container">
17
+
18
+ <header id="header" class="row" data-hook>
19
+
20
+ <figure id="logo" class="columns alpha six" data-hook>
21
+ <%= logo %>
22
+ </figure>
23
+
24
+ <nav id="top-nav-bar" class="columns omega ten">
25
+ <ul id="nav-bar" class="inline" data-hook>
26
+ <%= render :partial => 'spree/shared/nav_bar' %>
27
+ </ul>
28
+ </nav>
29
+
30
+ <% if store_menu? %>
31
+ <nav class="columns alpha omega sixteen">
32
+ <ul id="main-nav-bar" class="inline" data-hook>
33
+ <%= render :partial => 'spree/shared/store_menu' %>
34
+ </ul>
35
+ </nav>
36
+ <% end %>
37
+
38
+ </header>
15
39
 
16
- <div id="wrapper" data-hook>
17
- <% if content_for?(:sidebar) %>
18
- <div id="sidebar" data-hook>
19
- <%= yield :sidebar %>
40
+ <div id="wrapper" class="row" data-hook>
41
+
42
+ <% if content_for?(:sidebar) %>
43
+ <aside id="sidebar" class="columns alpha four" data-hook>
44
+ <%= yield :sidebar %>
45
+ </aside>
46
+ <% end %>
47
+
48
+ <div id="content" class="columns omega <% if !content_for?(:sidebar) %> sixteen alpha <% else %> twelve <% end %>" data-hook>
49
+ <%= breadcrumbs(@taxon) %>
50
+ <%= flash_messages %>
51
+ <%= yield %>
20
52
  </div>
21
- <% end %>
22
53
 
23
- <div id="content" data-hook>
24
- <%= breadcrumbs(@taxon) %>
25
- <%= flash_messages %>
26
- <%= yield %>
27
54
  </div>
28
- </div>
29
55
 
30
- <div id="footer" data-hook>
31
- <div id="footer-left" data-hook>
32
- <p><%= t(:powered_by) %> <%= link_to 'Spree', 'http://spreecommerce.com/' %></p>
33
- </div>
34
- <div id="footer-right" data-hook></div>
56
+ <footer id="footer" class="row" data-hook>
57
+ <div id="footer-left" class="columns alpha eight" data-hook>
58
+ <p><%= t(:powered_by) %> <%= link_to 'Spree', 'http://spreecommerce.com/' %></p>
59
+ </div>
60
+ <div id="footer-right" class="columns omega eight" data-hook></div>
61
+ </footer>
62
+
35
63
  </div>
64
+
36
65
  <%= render :partial => 'spree/shared/google_analytics' %>
66
+
37
67
  </body>
38
- </html>
68
+
69
+ </html>
@@ -20,7 +20,7 @@
20
20
  <%= number_to_currency line_item.variant.price %>
21
21
  </td>
22
22
  <td data-hook="cart_item_quantity">
23
- <%= item_form.number_field :quantity, :min => 0, :class => "line_item_quantity" %>
23
+ <%= item_form.number_field :quantity, :min => 0, :class => "line_item_quantity", :size => 5 %>
24
24
  </td>
25
25
  <td data-hook="cart_item_total">
26
26
  <%= number_to_currency(line_item.variant.price * line_item.quantity) unless line_item.quantity.nil? %>
@@ -18,15 +18,15 @@
18
18
  <%= render :partial => 'form', :locals => { :order_form => order_form } %>
19
19
  </div>
20
20
 
21
- <div id="subtotal" data-hook>
22
- <h3><%= t(:subtotal) %>: <%= order_subtotal(@order) %></h3>
21
+ <div class="links columns ten alpha" data-hook="cart_buttons">
22
+ <%= button_tag :class => 'primary', :id => 'update-button' do %>
23
+ <%= t(:update) %>
24
+ <% end %>
25
+ <%= link_to t(:checkout), checkout_path, :class => 'button checkout primary', :id => 'checkout-link' %>
23
26
  </div>
24
27
 
25
- <div class="links" data-hook="cart_buttons">
26
- <%= button_tag :class => 'large primary', :id => 'update-button' do %>
27
- <%= image_tag('icons/update.png') + t(:update) %>
28
- <% end %>
29
- <%= link_to image_tag('icons/checkout.png') + t(:checkout), checkout_path, :class => 'button checkout primary', :id => 'checkout-link' %>
28
+ <div id="subtotal" data-hook class="columns six omega">
29
+ <h5><%= t(:subtotal) %>: <span class="order-total"><%= order_subtotal(@order) %></span></h5>
30
30
  </div>
31
31
 
32
32
  </div>
@@ -37,7 +37,7 @@
37
37
  <p id="clear_cart_link" data-hook>
38
38
  <%= submit_tag t(:empty_cart), :class => 'button' %>
39
39
  <%= t(:or) %>
40
- <%= link_to t(:continue_shopping), products_path, :class => 'continue' %>
40
+ <%= link_to t(:continue_shopping), products_path, :class => 'continue button' %>
41
41
  </p>
42
42
  <% end %>
43
43
  </div>
@@ -1,14 +1,22 @@
1
- <h1><%= accurate_title %></h1>
1
+ <fieldset id="order_summary" data-hook>
2
+ <legend><%= t(:order) + " #" + @order.number %></legend>
3
+ <h1><%= accurate_title %></h1>
2
4
 
3
5
  <div id="order" data-hook>
4
6
  <% if params.has_key? :checkout_complete %>
5
7
  <h3><%= t(:thank_you_for_your_order) %></h3>
6
8
  <% end %>
7
9
  <%= render :partial => 'spree/shared/order_details', :locals => { :order => @order } %>
10
+
11
+ <br class="clear" />
12
+
8
13
  <p data-hook="links">
9
- <%= link_to t(:back_to_store), spree.root_path %>
14
+ <%= link_to t(:back_to_store), spree.root_path, :class => "button" %>
10
15
  <% unless params.has_key? :checkout_complete %>
11
- | <%= link_to t(:my_account), spree.account_path if current_user%>
16
+ <% if current_user %>
17
+ <%= link_to t(:my_account), spree.account_path, :class => "button" %>
18
+ <% end %>
12
19
  <% end %>
13
20
  </p>
14
21
  </div>
22
+ </fieldset>
@@ -1,18 +1,9 @@
1
1
  <%= form_for :order, :url => populate_orders_url do |f| %>
2
- <div data-hook="inside_product_cart_form">
3
-
4
- <% if @product.price %>
5
- <div data-hook="product_price">
6
- <dl id="product-price">
7
- <dt><%= t(:price) %></dt>
8
- <dd><span class="price selling"><%= number_to_currency @product.price %></span></dd>
9
- </dl>
10
- </div>
11
- <% end %>
2
+ <div data-hook="inside_product_cart_form" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
12
3
 
13
4
  <% if @product.has_variants? %>
14
- <div id="product-variants">
15
- <h2><%= t(:variants) %></h2>
5
+ <div id="product-variants" class="columns five alpha">
6
+ <h6 class="product-section-title"><%= t(:variants) %></h6>
16
7
  <ul>
17
8
  <% has_checked = false
18
9
  @product.variants.active.each_with_index do |v,index|
@@ -34,16 +25,30 @@
34
25
  </ul>
35
26
  </div>
36
27
  <% end%>
37
- <% if @product.has_stock? || Spree::Config[:allow_backorders] %>
38
- <%= number_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"),
39
- 1, :class => 'title', :in => 1..@product.on_hand %>
40
- &nbsp;
41
- <%= button_tag :class => 'large primary', :id => 'add-to-cart-button' do %>
42
- <%= image_tag('icons/add-to-cart.png') + t(:add_to_cart) %>
43
- <% end %>
44
- <% else %>
45
- <%= content_tag('strong', t(:out_of_stock)) %>
46
- <% end %>
28
+
29
+ <% if @product.price %>
30
+ <div data-hook="product_price" class="columns five <% if !@product.has_variants? %> alpha <% else %> omega <% end %>">
31
+
32
+ <div id="product-price">
33
+ <h6 class="product-section-title"><%= t(:price) %></h6>
34
+ <div><span class="price selling" itemprop="price"><%= number_to_currency @product.price %></span></div>
35
+ </div>
36
+
37
+ <div class="add-to-cart">
38
+ <% if @product.has_stock? || Spree::Config[:allow_backorders] %>
39
+ <%= number_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"),
40
+ 1, :class => 'title', :in => 1..@product.on_hand %>
41
+ &nbsp;
42
+ <%= button_tag :class => 'large primary', :id => 'add-to-cart-button' do %>
43
+ <%= t(:add_to_cart) %>
44
+ <% end %>
45
+ <% else %>
46
+ <%= content_tag('strong', t(:out_of_stock)) %>
47
+ <% end %>
48
+ </div>
49
+
50
+ </div>
51
+ <% end %>
47
52
 
48
53
  </div>
49
54
  <% end %>
@@ -1,5 +1,5 @@
1
1
  <% if image %>
2
- <%= image_tag image.attachment.url(:product) %>
2
+ <%= image_tag image.attachment.url(:product), :itemprop => "description" %>
3
3
  <% else %>
4
- <%= product_image(@product) %>
4
+ <%= product_image(@product, :itemprop => "image") %>
5
5
  <% end %>
@@ -1,9 +1,14 @@
1
- <% unless @product_properties.empty? %>
2
- <dl id="product-properties" class="table-display" data-hook>
3
- <% for product_property in @product_properties
4
- css_class = cycle('even', 'odd') %>
5
- <dt class="<%= css_class %>"><%= product_property.property.presentation %></dt>
6
- <dd class="<%= css_class %>"><%= product_property.value %></dd>
7
- <% end %>
8
- </dl>
1
+ <% unless @product_properties.empty? %>
2
+ <h6 class="product-section-title"><%= t('properties')%></h6>
3
+ <table id="product-properties" class="table-display" data-hook width="100%">
4
+ <tbody>
5
+ <% for product_property in @product_properties
6
+ css_class = cycle('even', 'odd') %>
7
+ <tr class="<%= css_class %>">
8
+ <td><strong><%= product_property.property.presentation %></strong></td>
9
+ <td><%= product_property.value %></td>
10
+ </tr>
11
+ <% end %>
12
+ </tbody>
13
+ </table>
9
14
  <% end %>
@@ -1,6 +1,6 @@
1
1
  <% if !@product.taxons.blank? %>
2
- <div id="taxon-crumbs" data-hook>
3
- <h3><%= t(:look_for_similar_items) %></h3>
2
+ <div id="taxon-crumbs" data-hook class="columns five omega">
3
+ <h6 class="product-section-title"><%= t(:look_for_similar_items) %></h6>
4
4
 
5
5
  <div data-hook="product_taxons">
6
6
  <ul id="similar_items_by_taxon" data-hook>
@@ -1,6 +1,6 @@
1
1
  <!-- no need for thumnails unless there is more then one image -->
2
2
  <% if product.images.size > 1 %>
3
- <ul id="product-thumbnails" class="thumbnails" data-hook>
3
+ <ul id="product-thumbnails" class="thumbnails inline" data-hook>
4
4
  <% product.images.each do |i| %>
5
5
  <li class="tmb-all" id="tmb-<%= i.id.to_s %>"><%= link_to image_tag(i.attachment.url(:mini)), i.attachment.url(:product) %></li>
6
6
  <% end %>
@@ -13,7 +13,7 @@
13
13
 
14
14
  <div data-hook="search_results">
15
15
  <% if @products.empty? %>
16
- <%= t(:no_products_found) %>
16
+ <h6 class="search-results-title"><%= t(:no_products_found) %></h6>
17
17
  <% else %>
18
18
  <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
19
19
  <% end %>
@@ -1,26 +1,47 @@
1
- <div data-hook="product_show">
1
+ <div data-hook="product_show" itemscope itemtype="http://schema.org/Product">
2
2
  <% @body_id = 'product-details' %>
3
- <h1><%= accurate_title %></h1>
4
3
 
5
- <div id="product-images" data-hook="product_images">
6
- <div id="main-image" data-hook>
7
- <%= render :partial => 'image' %>
8
- </div>
9
- <div id="thumbnails" data-hook>
10
- <%= render :partial => 'thumbnails', :locals => { :product => @product } %>
4
+ <div class="columns six alpha">
5
+ <div class="row">
6
+
7
+ <div id="product-images" data-hook="product_images">
8
+ <div id="main-image" data-hook>
9
+ <%= render :partial => 'image' %>
10
+ </div>
11
+ <div id="thumbnails" data-hook>
12
+ <%= render :partial => 'thumbnails', :locals => { :product => @product } %>
13
+ </div>
14
+ </div>
15
+
16
+ <div data-hook="product_properties">
17
+ <%= render :partial => 'properties' %>
18
+ </div>
19
+
11
20
  </div>
12
21
  </div>
13
22
 
14
- <div id="cart-form" data-hook="cart_form">
15
- <%= render :partial => 'cart_form' %>
16
- </div>
23
+ <div class="columns ten omega">
24
+ <div class="row">
25
+
26
+ <div id="product-description" data-hook="product_description">
27
+
28
+ <h1 class="product-title" itemprop="name"><%= accurate_title %></h1>
29
+
30
+ <div itemprop="description">
31
+ <%= product_description(@product) rescue t(:product_has_no_description) %>
32
+ </div>
33
+
34
+ <div id="cart-form" data-hook="cart_form">
35
+ <%= render :partial => 'cart_form' %>
36
+ </div>
37
+
38
+ </div>
39
+
40
+
41
+
42
+ <%= render :partial => 'taxons' %>
17
43
 
18
- <div id="product-description" data-hook="product_description">
19
- <%= product_description(@product) rescue t(:product_has_no_description) %>
20
- <div data-hook="product_properties">
21
- <%= render :partial => 'properties' %>
22
44
  </div>
23
45
  </div>
24
- </div>
25
46
 
26
- <%= render :partial => 'taxons' %>
47
+ </div>