31 lines
1,017 B
Text
31 lines
1,017 B
Text
<div class="col-md-9">
|
|
<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.defender) %>"><%= raid.defender %></td>
|
|
<td class="text-right"><%= readable_number(raid.soldiers) %></td>
|
|
<td class="text-right"><%= readable_number(raid.money) %></td>
|
|
<td class="text-right"><%= raid.created_at.strftime('%H:%M on %m-%d-%Y') %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<ul class="list-group">
|
|
<% @top20.each do |user, last| %>
|
|
<li class="list-group-item"><%= user %><span class="pull-right"><%= last.strftime('%H:%M on %m-%d-%Y') if last %></li>
|
|
<% end %>
|
|
</div>
|