<%= day %> <% if (events.length > 0) { %>
<% _.each(events, function(event) { %> <% var icon = "fa-circle"; if (event['extra'] == "single-display") icon = "fa-desktop"; if (event['extra'] == "multi-display") icon = "fa-desktop"; if (event['extra'] == "recurring") icon = "fa-repeat"; if (event['extra'] == "priority") icon = "fa-bullseye"; if (event['extra'] == "view-only") icon = "fa-lock"; %> <% }); %>
<% } %>