mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 17:26:06 +01:00
Removes spaces in versions anchors.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8560 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -328,6 +328,10 @@ module ApplicationHelper
|
||||
end
|
||||
end
|
||||
|
||||
def anchor(text)
|
||||
text.to_s.gsub(' ', '_')
|
||||
end
|
||||
|
||||
def html_hours(text)
|
||||
text.gsub(%r{(\d+)\.(\d+)}, '<span class="hours hours-int">\1</span><span class="hours hours-dec">.\2</span>').html_safe
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user