X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fvideo%2Flist.rhtml;h=113ee97ae3e2d87a394fc5b433ca0bdf40f611b5;hb=db65069f5aa7906f44428b54c26cbf7fe490c2de;hp=d74ec253f17ff8bf0967f6f37f65a11e4c6dccaa;hpb=42bfb060c3d3d661486f94ce7a8f8c12cf452399;p=cs356-p2-videostore.git diff --git a/app/views/video/list.rhtml b/app/views/video/list.rhtml index d74ec25..113ee97 100644 --- a/app/views/video/list.rhtml +++ b/app/views/video/list.rhtml @@ -1,10 +1,10 @@
Video ID | -Checked Out | Title | +Checked Out | New Release | Genre | Director | @@ -14,15 +14,15 @@ <% for video in @videos %>|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%=h video.id %> | -<%=h video.checkedout? %> | <%=h video.title %> | -<%=h video.newrelease %> | -<%=h Videogenre.find(video.video_genre).name %> | +<%=h tf_to_yesno(video.checkedout?) %> | +<%=h tf_to_yesno(video.newrelease) %> | +<%=h video.genre %> | <%=h video.director %> | -<%=h Media.find(video.media).name %> | -<%= link_to 'Show', :action => 'show', :id => video %> | +<%=h video.media_name %> | +<%= link_to 'View', :action => 'show', :id => video %> | <%= link_to 'Edit', :action => 'edit', :id => video %> | -<%= link_to 'Destroy', { :action => 'destroy', :id => video }, :confirm => 'Are you sure?', :method => :post %> | +<%= link_to 'Remove', { :action => 'destroy', :id => video }, :confirm => 'Are you sure?', :method => :post %> |