<% day = calendar.startdt
while day <= calendar.enddt %>
<%= "#{day.cweek} | " if day.cwday == calendar.first_wday %>
<%= day.day %>
<% calendar.events_on(day).each do |i| %>
<% if i.is_a? Issue %>
<%= if day == i.start_date && day == i.due_date
image_tag('arrow_bw.png')
elsif day == i.start_date
image_tag('arrow_from.png')
elsif day == i.due_date
image_tag('arrow_to.png')
end %>
<%= h("#{i.project.name} -") unless @project && @project == i.project %>
<%= link_to_issue i %>: <%= h(truncate(i.subject, 30)) %>
<%= render_issue_tooltip i %>
<% else %>
<%= link_to_version i, :class => "icon icon-package" %>
<% end %>
<% end %>
|
<%= '