##// END OF EJS Templates
"#id" patterns are turned into links to issues in descriptions and commit messages...
Jean-Philippe Lang -
r271:2e31311e3c9d
parent child
Show More
@@ -93,7 +93,9 module ApplicationHelper
93 93 end
94 94
95 95 def textilizable(text)
96 (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize") ? RedCloth.new(h(text)).to_html : simple_format(auto_link(h(text)))
96 text = (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize") ? RedCloth.new(h(text)).to_html : simple_format(auto_link(h(text)))
97 # turn "#id" patterns into links to issues
98 text = text.gsub(/#(\d+)([^;\d])/, "<a href='/issues/show/\\1'>#\\1</a>\\2")
97 99 end
98 100
99 101 def error_messages_for(object_name, options = {})
General Comments 0
You need to be logged in to leave comments. Login now