summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-27 13:34:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-27 13:34:41 +0000
commit262741913119f61eb4ccdd21410e552fdaca159d (patch)
tree76a647109db21853c4fa4fa04335a63fe76a80a4 /app/helpers/issues_helper.rb
parentca807c8d928497bc8c68310bd852a2b85c83e975 (diff)
downloadredmine-262741913119f61eb4ccdd21410e552fdaca159d.tar.gz
redmine-262741913119f61eb4ccdd21410e552fdaca159d.zip
Keep track of issue description changes (#746).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4954 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index ec027e2e0..f9f1c41ac 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -1,5 +1,5 @@
-# redMine - project management software
-# Copyright (C) 2006 Jean-Philippe Lang
+# Redmine - project management software
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -183,7 +183,16 @@ module IssuesHelper
end
end
- if !detail.value.blank?
+ if detail.property == 'attr' && detail.prop_key == 'description'
+ s = l(:text_journal_changed_no_detail, :label => label)
+ unless no_html
+ diff_link = link_to 'diff',
+ {:controller => 'journals', :action => 'diff', :id => detail.journal_id, :detail_id => detail.id},
+ :title => l(:label_view_diff)
+ s << " (#{ diff_link })"
+ end
+ s
+ elsif !detail.value.blank?
case detail.property
when 'attr', 'cf'
if !detail.old_value.blank?