<% if (label) { %>
data-role="close"<% } %>> <% if (icon) { %> <% if (badge) { %> <% } else { %> <% } %> <% } %> <%= label %>
<% } %>