X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcoitem%2Flist.rhtml;h=92113ad19d6f382d33e72d764bb5903bf790b1b3;hb=e4597521e3a7365f86731f7d69643cb1067acb5e;hp=2b0db697b2cef6ae20b3891ab54d504e9237e646;hpb=11b4d4103e1c24cb773216b9116d260734395f3c;p=cs356-p2-videostore.git diff --git a/app/views/coitem/list.rhtml b/app/views/coitem/list.rhtml index 2b0db69..92113ad 100644 --- a/app/views/coitem/list.rhtml +++ b/app/views/coitem/list.rhtml @@ -2,7 +2,9 @@
Item ID | Customer | +Type | Rentable | Overdue | Date Checked Out | @@ -11,12 +13,17 @@ <% for coitem in @coitems %>||||
---|---|---|---|---|---|---|---|---|---|
<%=h coitem.rentable.id.to_s %> | <%=h coitem.customer.name %> | -<%=h coitem.rentable.title %> | +<%=h coitem.rentable.class %> | + <% if coitem.rentable.type == Game %> +<%=link_to coitem.rentable.title.to_s, :controller => 'game', :action => 'show', :id => coitem.rentable %> | + <% else %> +<%=link_to coitem.rentable.title.to_s, :controller => 'video', :action => 'show', :id => coitem.rentable %> | + <% end %><%=h tf_to_yesno(coitem.overdue?) %> | <%=h coitem.out_date %> | <%=h coitem.due_date %> | -<%= link_to 'View', :action => 'show', :id => coitem %> |