Skip to content

Instantly share code, notes, and snippets.

@felipecabargas
Created February 7, 2014 14:55
Show Gist options
  • Save felipecabargas/8864161 to your computer and use it in GitHub Desktop.
Save felipecabargas/8864161 to your computer and use it in GitHub Desktop.
Bootstrap an Spree extension
<div class="row widgets">
<div class="col-md-12 col-xs-12">
<% @items.each do |item| %>
<div class="col-md-4 col-xs-4">
<%= image_tag(item.marketing_image) %>
<p><%= item.description %></p>
<p><%= link_to "Ver más", spree.root_path, :class => "cmr-link"%></p>
</div>
<% end %>
</div>
</div>
Deface::Override.new( :virtual_path => "spree/home/landing",
:replace => "div.widgets",
:partial => "partials/bootstrap_item_widget",
:name => "add_bootstrap_item_widget")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment