X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=app%2Fviews%2Fvideo%2Flist.rhtml;h=198eeb1dd8b0808ed0cdab58ac3e03e9fc09291a;hb=refs%2Ftags%2Fturned-in;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..198eeb1 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.name %> | <%=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 %> |