<% day = calendar.startdt
while day <= calendar.enddt %>
<%= ("#{(day+(11-day.cwday)%7).cweek} | ".html_safe) if day.cwday == calendar.first_wday %>
<%= 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 %>
<% elsif i.is_a? CustomValue %>
<% if i.customized.visible? %>
<% if i.customized.is_a? Issue %>
<%= h(i.custom_field.name) %>:
<%= h("#{i.customized.project} -") unless @project && @project == i.customized.project %>
<%= link_to_issue(i.customized, :subject => false) %>
<%= render_issue_tooltip(i.customized) %>
<% elsif i.customized.is_a? Project %>
<%= h(i.custom_field.name) %><% unless @project && @project == i.customized %>:
<%= link_to_project(i.customized) %>
<% end %>
<% else %>
<%= h(i.custom_field.name) %>:
<%= h("#{i.customized.project} -") unless @project && @project == i.customized.project %>
<%= link_to_version(i.customized) %>
<% end %>
<% end %>
<% else %>
<%= h("#{i.project} -") unless @project && @project == i.project %>
<%= link_to_version i%>
<% end %>
<% end %>
|
<%= '