From 2dbb3978184e919fd554cf372cd48c166a2211f6 2007-06-12 23:07:00 From: Jean-Philippe Lang Date: 2007-06-12 23:07:00 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 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index f57dfc8..e0005b3 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 2c4905e..0bbc20c 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') : "-" %>