Sha256: be8339682b2135da54d496d63ee20fc013783b6ad8f43eb122f9e4de94d154dd

Contents?: true

Size: 489 Bytes

Versions: 9

Compression:

Stored size: 489 Bytes

Contents

<%
style = square_image(product.featured_image)
arr = product.price_range
price = arr[0] == arr[1] ? number_to_currency(arr[0]) : "#{number_to_currency(arr[0])}-#{number_to_currency(arr[1])}"
price << " Out of stock" if !product.in_stock
%>
<li class="thumb">
	<a href="/products/<%= product.id %>">
		<figure class="thumb-image" style="<%= style %>"></figure>
		<div class="thumb-title"><%= product.title %></div>
		<div class="thumb-price"><%= price %></div>
	</a>
</li> <!-- .thumb -->

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
caboose-store-0.0.10 app/views/caboose_store/application/_product_thumb.html.erb
caboose-store-0.0.9 app/views/caboose_store/application/_product_thumb.html.erb
caboose-store-0.0.8 app/views/caboose_store/application/_product_thumb.html.erb
caboose-store-0.0.7 app/views/caboose_store/application/_product_thumb.html.erb
caboose-store-0.0.6 app/views/caboose_store/application/_product_thumb.html.erb
caboose-store-0.0.5 app/views/caboose_store/application/_product_thumb.html.erb
caboose-store-0.0.4 app/views/caboose_store/application/_product_thumb.html.erb
caboose-store-0.0.3 app/views/caboose_store/application/_product_thumb.html.erb
caboose-store-0.0.2 app/views/caboose_store/application/_product_thumb.html.erb