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