X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;ds=sidebyside;f=app%2Fviews%2Fproducts%2Findex.html.erb;h=1bed0399ad8347e978c810128e7d7cea163b02d5;hb=942d6c5b97e90c2c9036d1ec776ca98584e5be8f;hp=88120ee7e05a27a417f52f7b280dd760a9ecc1a8;hpb=e580d4626176c8deb6f44fec7e66f980b5923b29;p=depot.git diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb index 88120ee..1bed039 100644 --- a/app/views/products/index.html.erb +++ b/app/views/products/index.html.erb @@ -1,24 +1,41 @@ -
Title | -Description | -Image url | -|||
---|---|---|---|---|---|
<%=h product.title %> | -<%=h product.description %> | -<%=h product.image_url %> | -<%= link_to 'Show', product %> | -<%= link_to 'Edit', edit_product_path(product) %> | -<%= link_to 'Destroy', product, :confirm => 'Are you sure?', :method => :delete %> | -
+ <%= image_tag product.image_url, :class => 'list-image' %> + | +
+
|
+
+ <%= link_to 'Show', product %> + <%= link_to 'Edit', edit_product_path(product) %> + <%= link_to 'Destroy', product, :confirm => 'Are you sure?', :method => :delete %> + |
+