diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-18 10:17:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-18 10:17:59 +0000 |
commit | db3e8616c89ba34196fd12eafb3680df9479a024 (patch) | |
tree | b7d0ca11af7c9ec464357c9e5193a8250f1d96eb /app/views | |
parent | 8fdef1f82098258e2d5dda840ce5f4a921726f51 (diff) | |
download | redmine-db3e8616c89ba34196fd12eafb3680df9479a024.tar.gz redmine-db3e8616c89ba34196fd12eafb3680df9479a024.zip |
better rendering time for projects/calendar
git-svn-id: http://redmine.rubyforge.org/svn/trunk@343 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/calendar.rhtml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/projects/calendar.rhtml b/app/views/projects/calendar.rhtml index 154c5618a..8db92a938 100644 --- a/app/views/projects/calendar.rhtml +++ b/app/views/projects/calendar.rhtml @@ -43,9 +43,7 @@ while day <= @date_to <% end %> <td valign="top" class="<%= day.month==@month ? "even" : "odd" %>" style="width:14%; <%= Date.today == day ? 'background:#FDFED0;' : '' %>"> <p class="textright"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p> - <% day_issues = [] - @issues.each { |i| day_issues << i if i.start_date == day or i.due_date == day } - day_issues.each do |i| %> + <% ((@ending_issues_by_days[day] || []) + (@starting_issues_by_days[day] || [])).uniq.each do |i| %> <div class="tooltip"> <%= if day == i.start_date and day == i.due_date image_tag('arrow_bw.png') |