@@ -93,7 +93,9 module ApplicationHelper | |||||
93 | end |
|
93 | end | |
94 |
|
94 | |||
95 | def textilizable(text) |
|
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 | end |
|
99 | end | |
98 |
|
100 | |||
99 | def error_messages_for(object_name, options = {}) |
|
101 | def error_messages_for(object_name, options = {}) |
General Comments 0
You need to be logged in to leave comments.
Login now