<%- include('../partials/header') %>

All Hunts

<% if (hunts.length === 0) { %>

No hunts have been created yet.

<% } else { %> <% hunts.forEach(hunt => { %>

<%= hunt.name %>

<%= hunt.short_name %> · <%= hunt.package_count %> packages · by <%= hunt.creator_name %> <% if (hunt.expiry_date) { %> · Expires <% } %> <% if (hunt.start_date && new Date(hunt.start_date) > new Date()) { %> · Starts <% } %>
<% if (hunt.expiry_date && new Date(hunt.expiry_date) < new Date()) { %> Expired <% } else if (hunt.start_date && new Date(hunt.start_date) > new Date()) { %> Upcoming <% } else { %> <%= hunt.package_count %> packages <% } %>
<% }) %> <% } %>
<%- include('../partials/footer') %>