summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-12 23:07:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-12 23:07:00 +0000
commit2dbb3978184e919fd554cf372cd48c166a2211f6 (patch)
tree84a4fde502f7d6b0de7c527ead4f00ae4ecc6842
parent136a2a614b23bab67815c3edb73783df0dace022 (diff)
downloadredmine-2dbb3978184e919fd554cf372cd48c166a2211f6.tar.gz
redmine-2dbb3978184e919fd554cf372cd48c166a2211f6.zip
Fixed version field on issue view page now links to the corresponding version in the roadmap.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@562 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/issues_controller.rb2
-rw-r--r--app/views/issues/show.rhtml2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index f57dfc888..e0005b309 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -21,6 +21,8 @@ class IssuesController < ApplicationController
cache_sweeper :issue_sweeper, :only => [ :edit, :change_status, :destroy ]
+ helper :projects
+ include ProjectsHelper
helper :custom_fields
include CustomFieldsHelper
helper :ifpdf
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml
index 2c4905e9d..0bbc20c4d 100644
--- a/app/views/issues/show.rhtml
+++ b/app/views/issues/show.rhtml
@@ -27,7 +27,7 @@
<td><b><%=l(:field_done_ratio)%> :</b></td><td><%= @issue.done_ratio %> %</td>
</tr>
<tr>
- <td><b><%=l(:field_fixed_version)%> :</b></td><td><%= @issue.fixed_version ? @issue.fixed_version.name : "-" %></td>
+ <td><b><%=l(:field_fixed_version)%> :</b></td><td><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td>
<td><b><%=l(:label_spent_time)%> :</b></td>
<td><%= @issue.spent_hours > 0 ? (link_to lwr(:label_f_hour, @issue.spent_hours), {:controller => 'timelog', :action => 'details', :issue_id => @issue}, :class => 'icon icon-time') : "-" %></td>
</tr>