X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fproducts%2Findex.html.erb;h=ca7fb6a809cd53c83ec2491a40f59f13fcb21e19;hb=HEAD;hp=3e068e6697479b9aa50cf8223096c4bb23567a05;hpb=94adcb93b1eac6b07408de9db7f12d46e9e7d390;p=depot.git diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb index 3e068e6..ca7fb6a 100644 --- a/app/views/products/index.html.erb +++ b/app/views/products/index.html.erb @@ -1,4 +1,4 @@ -
+

Listing products

@@ -18,6 +18,13 @@ <% else %>
Available from <%= product.date_available %>
<% end %> + <% if not product.date_available_until.nil? %> + <% if product.date_available_until.future? %> +
Available until <%= product.date_available_until %>
+ <% else %> +
Unavailable since <%= product.date_available_until %>
+ <% end %> + <% end %>