2015-04-15 11:00:32 -04:00
|
|
|
<h2>Index</h2>
|
|
|
|
|
2015-04-23 15:09:39 -04:00
|
|
|
<table class="table table-striped table-hover table-bordered table-condensed">
|
2015-04-15 11:00:32 -04:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>Attacker</td>
|
|
|
|
<td>Defender</td>
|
|
|
|
<td>Soldiers</td>
|
|
|
|
<td>Money</td>
|
|
|
|
<td>Time</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @raids.each do |raid| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= raid.attacker %></td>
|
|
|
|
<td><%= raid.defender %></td>
|
2015-04-23 15:09:39 -04:00
|
|
|
<td class="text-right"><%= readable_number(raid.soldiers) %></td>
|
|
|
|
<td class="text-right"><%= readable_number(raid.money) %></td>
|
2015-04-15 11:00:32 -04:00
|
|
|
<td><%= raid.created_at %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|