From 2dbb3978184e919fd554cf372cd48c166a2211f6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 12 Jun 2007 23:07:00 +0000 Subject: [PATCH] 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 --- app/controllers/issues_controller.rb | 2 ++ app/views/issues/show.rhtml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index f57dfc8889..e0005b3096 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 2c4905e9da..0bbc20c4d8 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -27,7 +27,7 @@ <%=l(:field_done_ratio)%> :<%= @issue.done_ratio %> % - <%=l(:field_fixed_version)%> :<%= @issue.fixed_version ? @issue.fixed_version.name : "-" %> + <%=l(:field_fixed_version)%> :<%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %> <%=l(:label_spent_time)%> : <%= @issue.spent_hours > 0 ? (link_to lwr(:label_f_hour, @issue.spent_hours), {:controller => 'timelog', :action => 'details', :issue_id => @issue}, :class => 'icon icon-time') : "-" %>