Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Work in progress converting to use Deface DSL

  • Loading branch information...
commit 6dac574fce28cd05744bc00a215b184e2ffb5fb8 1 parent e43601b
@BDQ BDQ authored
View
1  .gitignore
@@ -0,0 +1 @@
+*.swp
View
7 app/overrides/add_taxonomies_to_product_show.rb
@@ -1,7 +0,0 @@
-Deface::Override.new(:virtual_path => %q{spree/products/show},
- :name => %q{add_taxonomies_to_product_show},
- :insert_after => %q{[data-hook='product_show']},
- :sequence => {:after => 'add_recently_viewed_products_to_products_show'},
- :text => %q{<%= content_for :sidebar do %>
- <%= render 'spree/shared/all_products' %>
-<% end %>})
View
4 app/overrides/add_to_head.rb
@@ -1,4 +0,0 @@
-Deface::Override.new(:virtual_path => %q{spree/shared/_head},
- :name => %q{add_to_head},
- :insert_after => %q{code[erb-loud]:contains('stylesheet_link_tag')},
- :text => %q{<link href="<%=request.protocol%>fonts.googleapis.com/css?family=Arvo:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">})
View
5 app/overrides/drop_icon_from_add_to_wishlist.rb
@@ -1,5 +0,0 @@
-Deface::Override.new(:virtual_path => 'spree/products/show',
- :name => 'drop_icon_from_add_to_wishlist',
- :replace => "code[erb-loud]:contains('icons/add-to-cart')",
- :text => %q{<%= t('add_to_wishlist') %>},
- :sequence => {:after => 'add_wish_to_cart_form'})
View
4 app/overrides/remvove_address_buttons.rb
@@ -1,4 +0,0 @@
-Deface::Override.new(:virtual_path => %q{spree/checkout/_address},
- :name => %q{remove_address_buttons},
- :remove => %q{[data-hook='buttons']},
- :closing_selector => %q{})
View
95 app/overrides/replace_body.rb
@@ -1,95 +0,0 @@
-Deface::Override.new(:virtual_path => %q{spree/layouts/spree_application},
- :name => %q{replace_body},
- :replace => %q{[data-hook='body']},
- :closing_selector => %q{},
- :text => %q{<body id="<%= (@body_id == 'signup' ? 'checkout' : @body_id) || controller.controller_name %>">
- <div id="container">
- <header>
- <%= link_to image_tag("store/logo.png", :width => "300", :height => "58", :alt => "Rails Dog Radio", :id => "logo"), root_url %>
- <form action="#" >
- </form>
- <%= form_tag products_url, :method => :get do %>
- <input type="search" id="s1" class="empty" name="keywords" placeholder="Search Railsdog Radio">
- <% end %>
- <nav>
- <%= link_to "products", products_path %>
- <% if current_user %>
- <%= link_to t('my_account'), account_path, :class => "cart" %>
- <%= link_to t('logout'), destroy_user_session_path, :class => "cart" %>
- <% else %>
- <%= link_to t('log_in'), login_path, :class => "cart" %>
- <% end %>
- <%= link_to_cart %>
- </nav>
- </header>
-
- <% if content_for?(:banner) %>
- <div id="banner" role="banner">
- <%= yield :banner %>
- </div>
- <% end %>
-
- <div id="main" role="main">
- <% if flash.notice %>
- <div class="flash notice"><%= flash.notice %></div>
- <% end %>
- <% if flash[:error] %>
- <div class="flash errors"><%= flash[:error] %></div>
- <% end %>
-
- <%= yield %>
- </div>
-
- <% if content_for?(:sidebar) %>
- <div id="sidebar" role="sidebar">
- <%= yield :sidebar %>
- </div>
- <% end %>
-
- </div>
-
- <footer data-hook="footer">
- <div class="inner">
- <%= image_tag "store/kid.jpg", :width => "204", :height => "413", :alt => "RailsDog Radio Kid", :id => "kid" %>
-
- <div id="about-railsdog-radio">
- <div>
- <p>
- <strong>Railsdog Radio</strong> is NOT a real satellite radio store, it's a fully working demo application
- for <a href="http://www.spreecommerce.com">Spree Commerce</a>. Please feel free to play around, but don't submit any information you would not consider public!</p>
- <p id="more-about-railsdog-radio">
- <a href="/about">More about Railsdog Radio ></a>
- </p>
- </div>
- </div>
-
- <div id="contact-us">
- <h3>Contact Us</h3>
- <p>
- (301)560-2000<br>
- <a href="mailto:sales@railsdogradio.com">sales@railsdogradio.com</a>
- </p>
- </div>
-
- <div id="social">
- <h3>Social</h3>
- <p>
- <a href="http://facebook.com/spreecommerce" id="facebook"><span>Facebook</span></a>
- <a href="http://feeds2.feedburner.com/spreehq" id="rss"><span>RSS</span></a>
- <a href="http://twitter.com/spreecommerce" id="twitter"><span>Twitter</span></a>
- </p>
- </div>
-
- <div id="menu">
- <h3>Menu</h3>
- <p>
- <a href="/about">About us</a><br />
- <a href="/privacy">Privacy policy</a>
- </p>
- </div>
-
- <p id="copyright">&copy; Copyright <%= Time.zone.now.year %> Railsdog Radio. All rights reserved</p>
-
- </div>
- </footer>
-</body>})
View
1  app/overrides/spree/checkout/_address/remove_address_buttons.html.erb.deface
@@ -0,0 +1 @@
+<!-- remove "[data-hook='buttons']" -->
View
92 app/overrides/spree/layouts/spree_application/replace_body.html.erb.deface
@@ -0,0 +1,92 @@
+<!-- replace "[data-hook='body']" -->
+<body id="<%= (@body_id == 'signup' ? 'checkout' : @body_id) || controller.controller_name %>">
+ <div id="container">
+ <header>
+ <%= link_to image_tag("store/logo.png", :width => "300", :height => "58", :alt => "Rails Dog Radio", :id => "logo"), root_url %>
+ <form action="#" >
+ </form>
+ <%= form_tag products_url, :method => :get do %>
+ <input type="search" id="s1" class="empty" name="keywords" placeholder="Search Railsdog Radio">
+ <% end %>
+ <nav>
+ <%= link_to "products", products_path %>
+ <% if current_user %>
+ <%= link_to t('my_account'), account_path, :class => "cart" %>
+ <%= link_to t('logout'), destroy_user_session_path, :class => "cart" %>
+ <% else %>
+ <%= link_to t('log_in'), login_path, :class => "cart" %>
+ <% end %>
+ <%= link_to_cart %>
+ </nav>
+ </header>
+
+ <% if content_for?(:banner) %>
+ <div id="banner" role="banner">
+ <%= yield :banner %>
+ </div>
+ <% end %>
+
+ <div id="main" role="main">
+ <% if flash.notice %>
+ <div class="flash notice"><%= flash.notice %></div>
+ <% end %>
+ <% if flash[:error] %>
+ <div class="flash errors"><%= flash[:error] %></div>
+ <% end %>
+
+ <%= yield %>
+ </div>
+
+ <% if content_for?(:sidebar) %>
+ <div id="sidebar" role="sidebar">
+ <%= yield :sidebar %>
+ </div>
+ <% end %>
+
+ </div>
+
+ <footer data-hook="footer">
+ <div class="inner">
+ <%= image_tag "store/kid.jpg", :width => "204", :height => "413", :alt => "RailsDog Radio Kid", :id => "kid" %>
+
+ <div id="about-railsdog-radio">
+ <div>
+ <p>
+ <strong>Railsdog Radio</strong> is NOT a real satellite radio store, it's a fully working demo application
+ for <a href="http://www.spreecommerce.com">Spree Commerce</a>. Please feel free to play around, but don't submit any information you would not consider public!</p>
+ <p id="more-about-railsdog-radio">
+ <a href="/about">More about Railsdog Radio ></a>
+ </p>
+ </div>
+ </div>
+
+ <div id="contact-us">
+ <h3>Contact Us</h3>
+ <p>
+ (301)560-2000<br>
+ <a href="mailto:sales@railsdogradio.com">sales@railsdogradio.com</a>
+ </p>
+ </div>
+
+ <div id="social">
+ <h3>Social</h3>
+ <p>
+ <a href="http://facebook.com/spreecommerce" id="facebook"><span>Facebook</span></a>
+ <a href="http://feeds2.feedburner.com/spreehq" id="rss"><span>RSS</span></a>
+ <a href="http://twitter.com/spreecommerce" id="twitter"><span>Twitter</span></a>
+ </p>
+ </div>
+
+ <div id="menu">
+ <h3>Menu</h3>
+ <p>
+ <a href="/about">About us</a><br />
+ <a href="/privacy">Privacy policy</a>
+ </p>
+ </div>
+
+ <p id="copyright">&copy; Copyright <%= Time.zone.now.year %> Railsdog Radio. All rights reserved</p>
+
+ </div>
+ </footer>
+</body>
View
2  app/overrides/spree/shared/_head/add_to_head.html.erb.deface
@@ -0,0 +1,2 @@
+<!-- insert_after "code[erb-loud]:contains('stylesheet_link_tag')" -->
+<link href="<%=request.protocol%>fonts.googleapis.com/css?family=Arvo:regular,italic" rel="stylesheet" type="text/css">
View
5 app/views/spree/products/show/drop_icon_from_add_to_wishlist.html.erb.deface
@@ -0,0 +1,5 @@
+<!--
+ replace "code[erb-loud]:contains('icons/add-to-cart')"
+ sequence {:after => 'add_wish_to_cart_form'}
+-->
+BDQ <%= t('add_to_wishlist') %>
Please sign in to comment.
Something went wrong with that request. Please try again.