Created
February 7, 2014 14:55
-
-
Save felipecabargas/8864161 to your computer and use it in GitHub Desktop.
Bootstrap an Spree extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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