<% 7.times do |i| %><% end %> <% day = calendar.startdt while day <= calendar.enddt %> <%= "" if day.cwday == calendar.first_wday %> <%= '' if day.cwday==calendar.last_wday and day!=calendar.enddt %> <% day = day + 1 end %>
<%= day_name( (calendar.first_wday+i)%7 ) %>
#{day.cweek}

<%= day.day %>

<% calendar.events_on(day).each do |i| %> <% if i.is_a? Issue %>
<%= h("#{i.project} -") unless @project && @project == i.project %> <%= link_to_issue i, :truncate => 30 %> <%= render_issue_tooltip i %>
<% else %> <%= h("#{i.project} -") unless @project && @project == i.project %> <%= link_to_version i%> <% end %> <% end %>