trugul-bot/views/bossfight.erb

42 lines
1.3 KiB
Text
Raw Normal View History

2015-04-28 10:32:21 -04:00
<div class="col-md-3">
<ul class="list-group">
2015-04-28 10:35:42 -04:00
<li class="list-group-item text-right">
<span class="pull-left"><strong>Target:</strong></span>
<%= @username %>
</li>
2015-04-28 10:32:21 -04:00
<li class="list-group-item text-right">
<span class="pull-left"><strong>Kill Date:</strong></span>
2015-04-28 11:59:39 -04:00
<%= @kill_date.strftime('%H:%M on %m-%d-%Y') if @kill_date %>
2015-04-28 10:35:42 -04:00
</li>
2015-04-28 10:32:21 -04:00
<li class="list-group-item text-right">
<span class="pull-left"><strong>Killing Blow:</strong></span>
2015-04-28 11:59:39 -04:00
<%= @kill_user if @kill_user %>
2015-04-28 10:32:21 -04:00
</li>
<li class="list-group-item text-right">
<span class="pull-left"><strong>Soliders Killed:</strong></span>
2015-04-28 10:35:42 -04:00
<%= readable_number(@soldiers_killed) if @soldiers_killed %>
2015-04-28 10:32:21 -04:00
</li>
</ul>
</div>
2015-04-28 10:26:23 -04:00
2015-04-28 11:02:17 -04:00
<div class="col-md-9">
<table class="table table-striped table-hover table-bordered table-condensed">
<thead>
<tr>
<td>Attacker</td>
<td>Attempts</td>
<td>Soldiers Killed</td>
</tr>
</thead>
<tbody>
2015-04-28 11:36:17 -04:00
<% @contributors.each do |contributor| %>
2015-04-28 11:02:17 -04:00
<tr>
2015-04-28 11:36:17 -04:00
<td><%= contributor[:username] %></td>
<td class="text-right"><%= contributor[:attacks] %></td>
<td class="text-right"><%= readable_number(contributor[:lost]) %></td>
2015-04-28 11:02:17 -04:00
</tr>
<% end %>
</tbody>
</table>
2015-04-28 10:32:21 -04:00
</div>