X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Forders%2Findex.html.erb;fp=app%2Fviews%2Forders%2Findex.html.erb;h=308635ebb04f3ec0e7d379960f36e366e059573e;hb=2e4e591080e228dec676acf40b9e7bc4b044b8bc;hp=640e77e3bea4078a5276769b9bdb2afc8f469eea;hpb=173183d0b7ffc7143d0f0bfe40694cfa2522a95f;p=depot.git diff --git a/app/views/orders/index.html.erb b/app/views/orders/index.html.erb index 640e77e..308635e 100644 --- a/app/views/orders/index.html.erb +++ b/app/views/orders/index.html.erb @@ -1,4 +1,5 @@ -

Listing orders

+
+

Listing orders

@@ -10,7 +11,7 @@ <% for order in @orders %> - + @@ -21,9 +22,9 @@ <% for li in order.line_items %> - + - @@ -36,3 +37,4 @@
<%= link_to 'New order', new_order_path %> + \ No newline at end of file
<%=h order.name %> <%=h order.address %> <%=h order.email %><%= link_to 'Destroy', order, :confirm => 'Are you sure?', :method => :delete %>
<%= li.quantity%> × + <%= li.quantity%> × <%= h li.product.title %> = <%= number_to_currency li.total_price, :unit => "£" %>