<% if (id) { %>
  • <%= name %>
  • Logout
  • <% } else { %>
  • Login
  • <% } %>