X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fproducts%2Findex.html.erb;h=1bed0399ad8347e978c810128e7d7cea163b02d5;hb=c445da2b4dc5097fcfddf5e40d74c2965573fc1c;hp=3e068e6697479b9aa50cf8223096c4bb23567a05;hpb=3bcc59a4bdb1841a6d979c416649694bf9a2a479;p=depot.git diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb index 3e068e6..1bed039 100644 --- a/app/views/products/index.html.erb +++ b/app/views/products/index.html.erb @@ -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 %>