Prettify the video section of the application
[cs356-p2-videostore.git] / app / views / video / list.rhtml
index afe84ed..113ee97 100644 (file)
@@ -1,10 +1,10 @@
 <h1>Listing videos</h1>
 
-<table>
+<table border="1">
   <tr>
     <th>Video ID</th>
-    <th>Checked Out</th>
     <th>Title</th>
+    <th>Checked Out</th>
     <th>New Release</th>
     <th>Genre</th>
     <th>Director</th>
 <% for video in @videos %>
   <tr>
     <td><%=h video.id %></td>
-    <td><%=h video.checkedout? %></td>
     <td><%=h video.title %></td>
-    <td><%=h video.newrelease %></td>
+    <td><%=h tf_to_yesno(video.checkedout?) %></td>
+    <td><%=h tf_to_yesno(video.newrelease) %></td>
     <td><%=h video.genre %></td>
     <td><%=h video.director %></td>
     <td><%=h video.media_name %></td>
-    <td><%= link_to 'Show', :action => 'show', :id => video %></td>
+    <td><%= link_to 'View', :action => 'show', :id => video %></td>
     <td><%= link_to 'Edit', :action => 'edit', :id => video %></td>
-    <td><%= link_to 'Destroy', { :action => 'destroy', :id => video }, :confirm => 'Are you sure?', :method => :post %></td>
+    <td><%= link_to 'Remove', { :action => 'destroy', :id => video }, :confirm => 'Are you sure?', :method => :post %></td>
   </tr>
 <% end %>
 </table>