Created
January 10, 2011 16:46
-
-
Save jonpaul/773030 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2><%= game.title %></h2> | |
<a href="/games/<%= game.url %>"> | |
<img src="http://news.gs1.net/<%= @week.title %>/<%= game.image %>" width="329" | |
height="215" alt="Content Inline" hspace="0" vspace="4" class="inline"></a> | |
<p class="first"><%= game.body %></p> | |
<%= store %> | |
<br /> | |
<a href="/games/<%= game.url %>"> | |
<img src="http://news.gs1.net/<%= @week.title %>/download.png" width="118" | |
height="59" alt="Content Inline"></a> <a href="#top" class="center">Back to top^</a> | |
<img src="http://news.gs1.net/<%= @week.title %>/hr.gif" width="348" height="27" | |
alt="Hr"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<p> | |
<b>Title:</b> | |
<%= @week.title %> | |
</p> | |
<% @stores.each do |store| %> | |
<textarea> | |
<table class="store" summary="Gamestore"> | |
<tr> | |
<td class="greeting"> | |
<%= @week.greeting %> | |
</td> | |
</tr> | |
<tr> | |
<td class="store"> | |
<span class="name"><%= store.name %></span> | |
<span class="url"><%= store.url %></span> | |
</td> | |
</tr> <% unless @week.games.empty? %> | |
<table class="games" summary="Games for Week"> | |
<%= render @games, :locals => { :store => store, :week => @week } %> | |
<td align="center" valign="top" width="219" class="sidebar"> | |
<h2 class="issue">New Game Downloads!</h2> | |
<ul> | |
<% @games.each do |game| %> | |
<li><a href="<%= store.url %>/games/<%= game.url %>"><%= game.title %></a></li> | |
<% end %> | |
</ul> | |
</td> | |
</tr><!-- end table row started in partial games/_game --> | |
</table> | |
</table> | |
<hr /> | |
</textarea> | |
<% end %> | |
<% end %> | |
<%= link_to 'Edit', edit_week_path(@week) %> | | |
<%= link_to 'Back', weeks_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def show | |
@week = Week.find(params[:id]) | |
@games = @week.games | |
@stores = @week.stores | |
respond_to do |format| | |
format.html # show.html.erb | |
format.xml { render :xml => @week } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<%= game.title %>
<%= game.body %>