@@ -27,6 +27,9 class VersionsController < ApplicationController | |||||
27 | helper :projects |
|
27 | helper :projects | |
28 |
|
28 | |||
29 | def show |
|
29 | def show | |
|
30 | @issues = @version.fixed_issues.find(:all, | |||
|
31 | :include => [:status, :tracker, :priority], | |||
|
32 | :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") | |||
30 | end |
|
33 | end | |
31 |
|
34 | |||
32 | def new |
|
35 | def new |
@@ -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