X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fgame%2Fsearchresults.rhtml;h=203f4cc70a17257b8353ce0308e213dd8d910ecd;hb=26ea4349c0583820be12b9f980ec4884f7db5690;hp=54e7998e01f9e311c0c0409a5d1ae921ed6a5c1b;hpb=0dccca2d3c0e9d5e6eaa1c1ebee3670654fd8c43;p=cs356-p2-videostore.git diff --git a/app/views/game/searchresults.rhtml b/app/views/game/searchresults.rhtml index 54e7998..203f4cc 100644 --- a/app/views/game/searchresults.rhtml +++ b/app/views/game/searchresults.rhtml @@ -1,27 +1,29 @@ -

Search Results

+

Search Results for '<%= @query[0].to_s %>'

<% if @games.empty? %>

Sorry, there were no results

<% else %> - +
- - - <% for column in Game.content_columns %> - - <% end %> + + + + + + <% for game in @games %> - - - <% for column in Game.content_columns %> - - <% end %> - + + + + + + + - + <% end %>
Game IDChecked Out<%= column.human_name %>Game IDChecked OutTitleNew ReleaseGenrePlatform
<%=h game.id %><%=h game.checkedout? %><%=h game.send(column.name) %><%= link_to 'Show', :action => 'show', :id => game %><%=h game.id %><%=h game.title %><%=h tf_to_yesno(game.checkedout?) %><%=h tf_to_yesno(game.newrelease) %><%=h game.genre %><%=h game.game_platform %><%= link_to 'View', :action => 'show', :id => game %> <%= link_to 'Edit', :action => 'edit', :id => game %><%= link_to 'Destroy', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :post => true %><%= link_to 'Remove', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %>