##// END OF EJS Templates
Merged r3865 and r3866 from trunk....
Jean-Philippe Lang -
r3754:a84920ca7016 0.9-stable
parent child
Show More
@@ -25,6 +25,9 class VersionsController < ApplicationController
25 helper :projects
25 helper :projects
26
26
27 def show
27 def show
28 @issues = @version.fixed_issues.visible.find(:all,
29 :include => [:status, :tracker, :priority],
30 :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id")
28 end
31 end
29
32
30 def edit
33 def edit
@@ -32,13 +32,10
32 <%= render :partial => 'versions/overview', :locals => {:version => @version} %>
32 <%= render :partial => 'versions/overview', :locals => {:version => @version} %>
33 <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
33 <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
34
34
35 <% issues = @version.fixed_issues.find(:all,
35 <% if @issues.present? %>
36 :include => [:status, :tracker, :priority],
37 :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
38 <% if issues.size > 0 %>
39 <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
36 <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
40 <ul>
37 <ul>
41 <% issues.each do |issue| -%>
38 <% @issues.each do |issue| -%>
42 <li><%= link_to_issue(issue) %></li>
39 <li><%= link_to_issue(issue) %></li>
43 <% end -%>
40 <% end -%>
44 </ul>
41 </ul>
General Comments 0
You need to be logged in to leave comments. Login now