Skip to content

Instantly share code, notes, and snippets.

@craigw
Created October 4, 2010 10:38
Show Gist options
  • Save craigw/609499 to your computer and use it in GitHub Desktop.
Save craigw/609499 to your computer and use it in GitHub Desktop.
<div class="actions left">
<h3>Home</h3>
<% @home_actions.each do |player_action| %>
<%=h player_action.inspect %><br />
<% end %>
</div>
<div class="actions right">
<h3>Away</h3>
<table class="standings" summary="Actions from the game">
<thead>
<tr>
<th class="player">Player</th>
<th class="action">Action</th>
<th class="time">Time</th>
</tr>
</thead>
<tbody>
<% @away_actions.each do |player_action| %>
<tr>
<td><%=h player_action.real_player.name %></td>
<td><%=h player_action.to_s %></td>
<td><%=h player_action.match_time %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment