X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fvideo%2Flist.rhtml;h=198eeb1dd8b0808ed0cdab58ac3e03e9fc09291a;hb=refs%2Ftags%2Fturned-in;hp=1a0ec1642e9c48e0081ba5be03875171bd797a01;hpb=3947513155ffed3b49a2cd0e80cd3ef26b551f59;p=cs356-p2-videostore.git diff --git a/app/views/video/list.rhtml b/app/views/video/list.rhtml index 1a0ec16..198eeb1 100644 --- a/app/views/video/list.rhtml +++ b/app/views/video/list.rhtml @@ -1,24 +1,28 @@

Listing videos

- +
- - - <% for column in Video.content_columns %> - - <% end %> + + + + + + + <% for video in @videos %> - - - <% for column in Video.content_columns %> - - <% end %> - + + + + + + + + - + <% end %>
Video IDChecked Out<%= column.human_name %>Video IDTitleChecked OutNew ReleaseGenreDirectorMedia
<%=h video.id %><%=h video.checkedout? %><%=h video.send(column.name) %><%= link_to 'Show', :action => 'show', :id => video %><%=h video.id %><%=h video.title %><%=h tf_to_yesno(video.checkedout?) %><%=h tf_to_yesno(video.newrelease) %><%=h video.genre.name %><%=h video.director %><%=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 %>