24 lines
725 B
Text
24 lines
725 B
Text
<h2>Index</h2>
|
|
|
|
<table class="table table-striped table-hover table-bordered table-condensed">
|
|
<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 style="<%= player_style(raid.attacker) %>"><%= raid.attacker %></td>
|
|
<td style="<%= player_style(raid.attacker) %>"><%= raid.defender %></td>
|
|
<td class="text-right"><%= readable_number(raid.soldiers) %></td>
|
|
<td class="text-right"><%= readable_number(raid.money) %></td>
|
|
<td class="text0right"><%= raid.created_at.strftime('%H:%M on %m-%d-%Y') %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|