projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change the default route to the login page
[cs356-p2-videostore.git]
/
app
/
views
/
game
/
list.rhtml
diff --git
a/app/views/game/list.rhtml
b/app/views/game/list.rhtml
index
d35c1eb
..
a32c14d
100644
(file)
--- a/
app/views/game/list.rhtml
+++ b/
app/views/game/list.rhtml
@@
-1,26
+1,26
@@
-<h1>Listing
g
ames</h1>
+<h1>Listing
G
ames</h1>
-<table>
+<table
border="1"
>
<tr>
<th>Game ID</th>
<tr>
<th>Game ID</th>
- <th>Checked Out</th>
<th>Title</th>
<th>Title</th>
+ <th>Checked Out</th>
<th>New Release</th>
<th>Genre</th>
<th>New Release</th>
<th>Genre</th>
- <t
d
>Platform</th>
+ <t
h
>Platform</th>
</tr>
<% for game in @games %>
<tr>
<td><%=h game.id %></td>
</tr>
<% for game in @games %>
<tr>
<td><%=h game.id %></td>
- <td><%=h game.checkedout? %></td>
<td><%=h game.title %></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><%=h game.genre %></td>
<td><%=h game.game_platform %></td>
- <td><%= link_to '
Sho
w', :action => 'show', :id => game %></td>
+ <td><%= link_to '
Vie
w', :action => 'show', :id => game %></td>
<td><%= link_to 'Edit', :action => 'edit', :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>
</tr>
<% end %>
</table>