projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the table titles in the game list match the data
[cs356-p2-videostore.git]
/
app
/
views
/
video
/
list.rhtml
diff --git
a/app/views/video/list.rhtml
b/app/views/video/list.rhtml
index
d74ec25
..
113ee97
100644
(file)
--- a/
app/views/video/list.rhtml
+++ b/
app/views/video/list.rhtml
@@
-1,10
+1,10
@@
<h1>Listing videos</h1>
<h1>Listing videos</h1>
-<table>
+<table
border="1"
>
<tr>
<th>Video ID</th>
<tr>
<th>Video ID</th>
- <th>Checked Out</th>
<th>Title</th>
<th>Title</th>
+ <th>Checked Out</th>
<th>New Release</th>
<th>Genre</th>
<th>Director</th>
<th>New Release</th>
<th>Genre</th>
<th>Director</th>
@@
-14,15
+14,15
@@
<% for video in @videos %>
<tr>
<td><%=h video.id %></td>
<% for video in @videos %>
<tr>
<td><%=h video.id %></td>
- <td><%=h video.checkedout? %></td>
<td><%=h video.title %></td>
<td><%=h video.title %></td>
- <td><%=h video.newrelease %></td>
- <td><%=h Videogenre.find(video.video_genre).name %></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.director %></td>
- <td><%=h
Media.find(video.media).
name %></td>
- <td><%= link_to '
Sho
w', :action => 'show', :id => video %></td>
+ <td><%=h
video.media_
name %></td>
+ <td><%= link_to '
Vie
w', :action => 'show', :id => video %></td>
<td><%= link_to 'Edit', :action => 'edit', :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>
</tr>
<% end %>
</table>