<% if (currentUser) { %>
Logharian
Dashboard
<% if (currentUser.role === 'admin') { %>
Kegiatan
Pengguna
<% } %>
Akun
<%= currentUser.nama.split(/\s+/).filter(function (w) { return /^[A-Za-z]/.test(w); }).slice(0, 2).map(function (w) { return w[0]; }).join('').toUpperCase() %>
<%= currentUser.nama %>
<%= roleLabel(currentUser.role) %>
Keluar
<% } %>
<% flashes.forEach(function (f) { %>
<%= f.msg %>
<% }) %>