From d58762a52dd7410b302532c0bc5d6b0082287a76 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 12 Dec 2009 15:33:31 +0000 Subject: Roadmap: sort issues by project and prepend project name if different (#4373). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3163 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/helpers') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cbecb5055..3e1d6cea8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -64,6 +64,7 @@ module ApplicationHelper # link_to_issue(issue) # => Defect #6: This is the subject # link_to_issue(issue, :truncate => 6) # => Defect #6: This i... # link_to_issue(issue, :subject => false) # => Defect #6 + # link_to_issue(issue, :project => true) # => Foo - Defect #6 # def link_to_issue(issue, options={}) title = nil @@ -80,6 +81,7 @@ module ApplicationHelper :class => issue.css_classes, :title => title s << ": #{h subject}" if subject + s = "#{h issue.project} - " + s if options[:project] s end -- cgit v1.2.3