Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 595e53b661
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 0.787 kB
<h3>Upcoming Games</h3>
<%= form_for 'update', :url => batch_update_admin_games_path(), :html => { :method => 'put' } do |f| %>
<table>
<% last_play_at = Time.local( 1999, 1, 1 )
@upcoming_games.each do |game|
%>
<% unless last_play_at.year == game.play_at.year &&
last_play_at.month == game.play_at.month &&
last_play_at.day == game.play_at.day %>
<tr style='background-color: silver;'>
<td colspan='6'><%= game.play_at.strftime('%A, %d. %B %Y') %></td>
</tr>
<% end %>
<%= render :partial => 'game_upcoming', :locals => { :game => game } %>
<% last_play_at = game.play_at
end
%><!-- each game -->
</table>
<p>
<%= f.submit "Update Upcoming Games", :class => 'btn-primary' %>
</p>
<% end %>
Jump to Line
Something went wrong with that request. Please try again.