OSDN Git Service

fixed #9397 Roadmap - Distinguishing open and closed issues
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Mar 2007 18:56:47 +0000 (18:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Mar 2007 18:56:47 +0000 (18:56 +0000)
(closed) is added at the end of closed issue subjects

git-svn-id: http://redmine.rubyforge.org/svn/trunk@360 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/roadmap.rhtml

index 0aac5a7..bb6cfcf 100644 (file)
     <p><%= format_date(version.effective_date) %><br />
     <%=h version.description %></p>
     <ul>
-    <% version.fixed_issues.find(:all, :conditions => ["issues.tracker_id in (#{@selected_tracker_ids.join(',')})"]).each do |issue| %>
-    <li><%= link_to "#{issue.tracker.name} #{issue.id}", :controller => 'issues', :action => 'show', :id => issue %>: <%=h issue.subject %></li>
+    <% version.fixed_issues.find(:all,
+                                 :include => :status,
+                                 :conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
+                                 :order => "position").each do |issue| %>
+        <li><%= link_to "#{issue.tracker.name} #{issue.id}", :controller => 'issues', :action => 'show', :id => issue %>: <%=h issue.subject %>
+        <%= content_tag "em", "(#{l(:label_closed_issues)})" if issue.status.is_closed? %></li>
     <% end %>
     </ul>
 <% end %>