summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-04-07 12:16:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-04-07 12:16:09 +0000
commitef71edd3311e76e6bb308283407ea068aa62b6ce (patch)
treef6c8f986c9ccf93f0b1075da122ac7ebf707d884 /app/views
parent708c3c9ec6efd8359efe450371ac818d406f6fd4 (diff)
downloadredmine-ef71edd3311e76e6bb308283407ea068aa62b6ce.tar.gz
redmine-ef71edd3311e76e6bb308283407ea068aa62b6ce.zip
Added versions due dates on calendar.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@429 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/calendar.rhtml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/calendar.rhtml b/app/views/projects/calendar.rhtml
index cb83a36b6..5f5659a9e 100644
--- a/app/views/projects/calendar.rhtml
+++ b/app/views/projects/calendar.rhtml
@@ -57,7 +57,8 @@ 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>
- <% ((@ending_issues_by_days[day] || []) + (@starting_issues_by_days[day] || [])).uniq.each do |i| %>
+ <% ((@ending_events_by_days[day] || []) + (@starting_events_by_days[day] || [])).uniq.each do |i| %>
+ <% if i.is_a? Issue %>
<div class="tooltip">
<%= if day == i.start_date and day == i.due_date
image_tag('arrow_bw.png')
@@ -71,6 +72,9 @@ while day <= @date_to
<%= render :partial => "issues/tooltip", :locals => { :issue => i }%>
</span>
</div>
+ <% else %>
+ <%= image_tag('milestone.png') %> <small><%= "#{l(:label_version)}: #{i.name}" %></small>
+ <% end %>
<% end %>
</td>
<%= '</tr><tr style="height:100px">' if day.cwday >= 7 and day!=@date_to %>