blob: f7376e954c59c8eb6910c53fb01106ebaa699f1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<h1 class="text-3xl mb-4">Bestiary</h1>
<% if @monster_kills.any? %>
<table class="table-auto">
<thead>
<tr>
<th class="table-header-padded">Monster</th>
<th class="table-header-padded">Kills</th>
</tr>
</thead>
<tbody>
<% @monster_kills.ordered_by_monster_name.each do |mk| %>
<tr>
<td class="table-cell-padded"><%= mk.monster.name %></td>
<td class="table-cell-padded"><%= mk.quantity %></td>
</tr>
<% end %>
</tbody>
</table>
<% else %>
<p>You haven't killed any monsters yet.</p>
<% end %>
|