<%- 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) { %> ") %>
<%= badge.Id === 13 ? `You've been Dame'd ${user.DameCount} times
` : "" %>Unlocked on <%= unlockedBadge.CreatedDatetime.toString().split(" ").slice(1, 4).join(" ") %>">
<% } else if (!badge.IsSecret) { %> <% } %> <% } %>
<%- include("../base/footer", { apiKey: session.apiKey, username: session.username }) %>