This commit is contained in:
2025-03-11 09:52:32 -07:00
parent 0e380931b1
commit 97d5bd9ace
18 changed files with 294 additions and 61 deletions

View File

@ -40,6 +40,18 @@
<%= submit_tag "Set Alt", id: "set-alt-button" %>
<% end %>
<% form_with(url: "/admin/set_lootban", method: :post, local: true) do %>
<h2>Set Lootban</h2>
<label for="lootban-input">Set Lootban: </label>
<input id="lootban-input" type="text">
<%= submit_tag "Set Lootban", id: "set-lootban-button" %>
<% end %>
<% form_with(url: "/admin/delete_lootban", method: :post, local: true) do %>
<%= submit_tag "Clear Lootban", id: "clear-lootban-button" %>
<% end %>
<a href="/">Leaderboard</a>
<a href="/admin/destroy">Logout</a>
</div>

View File

@ -0,0 +1,27 @@
<h1>Seasonal Loot Distribution</h1>
<% if @players.any? %>
<div class="wrapper">
<div class="table">
<div class="row header">
<div class="cell">Player</div>
<div class="cell">Main Spec</div>
<div class="cell">Minor Upgrade</div>
<div class="cell">Offspec</div>
<div class="cell">Transmog</div>
</div>
<% @players.each do |player| %>
<div class="row">
<div class="cell" data-title="Player"><%= player[0] %></div>
<div class="cell" data-title="Main Spec"><%= player[1]%></div>
<div class="cell" data-title="Minor Upgrade"><%= player[2]%></div>
<div class="cell" data-title="Offspec"><%= player[3] %></div>
<div class="cell" data-title="Transmog"><%= player[4] %></div>
</div>
<% end %>
</div>
<a href="/loot/list">Loot List</a>
</div>
<% else %>
<h1>No loot records exist</h1>
<% end %>

View File

@ -0,0 +1,25 @@
<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 %>