%- include("partials/layout-top", { title }) %>
<% users.forEach((user) => { %>
<% const notes = (notesByUser && notesByUser[user.id]) ? notesByUser[user.id] : []; %>
Internal username
Identities
Notes
<% if (isAdmin) { %>
Update username
<% } %>
<% }) %>
<%= user.internal_username %>
<% if (!user.identities.length) { %>
None
<% } else { %>
<% user.identities.forEach((identity) => { %>
<% } %>
<% if (notes.length) { %>
<% } else { %>
No notes
<% } %>
<% if (isAdmin) { %>
<% } %>