summaryrefslogtreecommitdiffstats
path: root/app/helpers/versions_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-13 14:41:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-13 14:41:53 +0000
commit861ca78179869e13b4b73baa6968127cfd30c401 (patch)
tree8495a2ab1e64cca78524c49181f18d1bf7eeee06 /app/helpers/versions_helper.rb
parent8fb1a7e3ccc7b501704a7873b328c1b976554cab (diff)
downloadredmine-861ca78179869e13b4b73baa6968127cfd30c401.tar.gz
redmine-861ca78179869e13b4b73baa6968127cfd30c401.zip
Fixed that roadmap anchor links can be ambigous (#11540).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10200 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/versions_helper.rb')
-rw-r--r--app/helpers/versions_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb
index e6f886734..91dec8e91 100644
--- a/app/helpers/versions_helper.rb
+++ b/app/helpers/versions_helper.rb
@@ -19,6 +19,14 @@
module VersionsHelper
+ def version_anchor(version)
+ if @project == version.project
+ anchor version.name
+ else
+ anchor "#{version.project.try(:identifier)}-#{version.name}"
+ end
+ end
+
STATUS_BY_CRITERIAS = %w(tracker status priority author assigned_to category)
def render_issue_status_by(version, criteria)