X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fproducts%2Findex.html.erb;h=3e068e6697479b9aa50cf8223096c4bb23567a05;hb=f9d45398338f9e5b2dabd768fcd793c4f81934f2;hp=ef89bd927117f73562e3811e38a1fa5e7205230e;hpb=09cd438e77dd418b03b67e3e6a4b48ec95b72d1d;p=depot.git diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb index ef89bd9..3e068e6 100644 --- a/app/views/products/index.html.erb +++ b/app/views/products/index.html.erb @@ -12,7 +12,7 @@
<%=h product.title %>
<%=h truncate(product.description.gsub(/<.*?>/, '|'), :length => 80) %>
-
<%=number_to_currency product.price, :unit => "£" %> +
<%=number_to_currency product.price, :unit => "£" %> <% if product.date_available.past? %>
Available since <%= product.date_available %>
<% else %>