<%= day %> <% if (events.length > 0) { %>
<% iz=0; _.each(events, function(event) { iz=iz+1; %> <%if(event["class"]){%> " class="event" style="background:<%= event["class"] %>" data-toggle="tooltip" title="<%= event.title %>" data-event-day-ck="<%= data_day %>"> <%}else{%> " class="event event-default-red" data-toggle="tooltip" title="<%= event.title %>" data-event-day-ck="<%= data_day %>"> <%}%> <% }); %>
<% } %> <% if (events.length > 0) { %> <% if (events.length < 2) { %> <%=events.length%> Event Course <% } else { %> <%=events.length%> Events Courses <%}%> <% } %>