Prettify the Game system
[cs356-p2-videostore.git] / app / views / game / list.rhtml
index d35c1eb..123e767 100644 (file)
@@ -1,26 +1,26 @@
-<h1>Listing games</h1>
+<h1>Listing Games</h1>
 
-<table>
+<table border="1">
   <tr>
     <th>Game ID</th>
     <th>Checked Out</th>
     <th>Title</th>
     <th>New Release</th>
     <th>Genre</th>
-    <td>Platform</th>
+    <th>Platform</th>
   </tr>
   
 <% for game in @games %>
   <tr>
     <td><%=h game.id %></td>
-    <td><%=h game.checkedout? %></td>
     <td><%=h game.title %></td>
-    <td><%=h game.newrelease %></td>
+    <td><%=h tf_to_yesno(game.checkedout?) %></td>
+    <td><%=h tf_to_yesno(game.newrelease) %></td>
     <td><%=h game.genre %></td>
     <td><%=h game.game_platform %></td>
-    <td><%= link_to 'Show', :action => 'show', :id => game %></td>
+    <td><%= link_to 'View', :action => 'show', :id => game %></td>
     <td><%= link_to 'Edit', :action => 'edit', :id => game %></td>
-    <td><%= link_to 'Destroy', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %></td>
+    <td><%= link_to 'Remove', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %></td>
   </tr>
 <% end %>
 </table>