<%- include("base/header", { title: "Home", userId: user.Id }) %>

Welcome back <%= user.Username %>!

What would you like to do?

Your Parties

<% if (parties.length > 0) { %> <% for (const party of parties) { %> <% } %>
Name Code
<%= party.Name %> <%= party.PartyRef %> <% if (activeUserParty && activeUserParty.PartyId === party.Id) { %> Deactivate <% } else { %> Set Current <% } %> <% if (party.CreatedByUserId === user.Id) { %> Leave <% } else { %> Leave <% } %>
<% } else { %> <% } %>
<%- include("base/footer") %>