gambosite/app/views/loot/list.html.erb

26 lines
823 B
Plaintext
Raw Normal View History

2025-03-11 09:52:32 -07:00
<h1>Seasonal Loot List</h1>
<% if @loot.any? %>
<div class="wrapper">
<div class="table">
<div class="row header">
<div class="cell">Date</div>
<div class="cell">Player</div>
<div class="cell">Item</div>
<div class="cell">Roll Type</div>
</div>
<% @loot.each do |l| %>
<div class="row">
<div class="cell" data-title="Date"><%= l.date %></div>
<div class="cell" data-title="Player"><%= l.player_name_with_alt %></div>
<div class="cell" data-title="Item"><%= link_to l.item_name, l.wowhead, target: "_blank", rel: "nofollow" %></div>
<div class="cell" data-title="Roll Type"><%= l.roll_type_pretty %></div>
</div>
<% end %>
</div>
<a href="/loot">Loot Distribution</a>
</div>
<% else %>
<h1>No loot records exist</h1>
<% end %>