Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created January 10, 2011 16:46
Show Gist options
  • Save jonpaul/773030 to your computer and use it in GitHub Desktop.
Save jonpaul/773030 to your computer and use it in GitHub Desktop.
<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">
<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 %>
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
@bcantin
Copy link

bcantin commented Jan 10, 2011

<%= game.title %>

Content Inline

<%= game.body %>


Content Inline Back to top^

Hr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment