<% if (hasAccess) { -%>
<% } else { -%>

You do not have access to <%= name %>


<% } -%>