<%= (u.name && u.name.trim()) ? u.name : '—' %>
<%= u.email || '—' %>
<% if (typeof u.has_google !== 'undefined' || typeof u.has_password !== 'undefined') { %>
·
<% if (u.has_google && u.has_password) { %>
Google + Email
<% } else if (u.has_google) { %>
Google
<% } else if (u.has_password) { %>
Email
<% } else { %>
No login set
<% } %>
·
<% if (u.email_verified) { %>
Verified
<% } else { %>
Unverified
<% } %>
<% } %>
<% if (u.role === 'admin') { %>
admin
<% } else { %>
<%= u.role %>
<% } %>
<% if (u.banned) { %>
banned
<% } %>
<%= u.created_at || '' %>
<% if (u.role !== 'admin') { %>
<% } else { %>
<% if (!currentUser || currentUser.id !== u.id) { %>
<% } else { %>
(You)
<% } %>
<% } %>
<% if (!currentUser || currentUser.id !== u.id) { %>
<% if (u.banned) { %>
<% } else { %>
<% } %>
<% } %>