X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fproducts%2Findex.html.erb;h=6bb547aa96d8023ebc9d510494ba5354c34bb5c2;hb=3b424e341e1dda1f67b4461de089b76eb69bbc70;hp=1db53b8ae0b6cd45edcbf1a908b3dbc492abb82f;hpb=cf29841dca2a4ba6313a99576d56e238b700a158;p=depot.git diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb index 1db53b8..6bb547a 100644 --- a/app/views/products/index.html.erb +++ b/app/views/products/index.html.erb @@ -14,6 +14,11 @@
<%= h product.title %>
<%= h truncate(product.description.gsub(/<.*?>/, ''), :length => 80) %>
+ <% if product.date_available.past? %> +
Available since <%= product.date_available %>
+ <% else %> +
Available from <%= product.date_available %>
+ <% end %>