X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fproducts%2Findex.html.erb;fp=app%2Fviews%2Fproducts%2Findex.html.erb;h=0000000000000000000000000000000000000000;hb=be9356cf35ae0ccfc15674b786386a61278bf305;hp=6bb547aa96d8023ebc9d510494ba5354c34bb5c2;hpb=3b424e341e1dda1f67b4461de089b76eb69bbc70;p=depot.git diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb deleted file mode 100644 index 6bb547a..0000000 --- a/app/views/products/index.html.erb +++ /dev/null @@ -1,39 +0,0 @@ -
-

Listing products

- - - <% for product in @products %> - - - - - - - - - <% end %> -
- <%= image_tag product.image_url, :class => 'list-image' %> - -
-
<%= 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 %> -
-
- <%= link_to 'Show', product %>
- <%= link_to 'Edit', edit_product_path(product) %>
- <%= link_to 'Destroy', product, - :confirm => 'Are you sure?', - :method => :delete %> -
-
- -
- -<%= link_to 'New product', new_product_path %>