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

Welcome back <%= user.Username %>!

What would you like to do?

Change Username Change Password
<% if (user.UserLevel === UserLevel.BadgeEditor) { %> <% } %> <% if (user.UserLevel === UserLevel.Admin) { %> <% } %>

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 { %>  Activate  <% } %> <% if (party.CreatedByUserId === user.Id) { %> Delete <% } else { %> Leave <% } %>
<% } else { %> <% } %>

Badges

<% for (const badgeKey of badgeById.keys) { %> <% const badge = badgeById.get(badgeKey); const unlockedBadge = unlockedBadgesById.get(badgeKey); %> <% if (unlockedBadge) { %> "> <% } else if (!badge.IsSecret) { %> <% } %> <% } %>
<%- include("../base/footer") %>