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

<h1><%= player.discord_username %></h1>
<a href="/players/<%=player._id%>/new_character"><button type="button" class="btn btn-primary">Create Player</button></a>

<table id="t01">
    <th>Character</th>
    <th>class</th>
    <th>xp</th>
    </tr>
    <% characters.forEach(function(character){ %>
        <tr>
            <td><a href="/players/<%=player._id%>/character/<%=character._id%>"><%= character.name%></a></td>
            <td><%=character.class%></td>
            <td><%=character.xp%></td>
        </tr>
    <% }) %>
</table>

<%- include ("../partials/footer") %>