mirror of
https://github.com/redmine/redmine.git
synced 2026-01-22 15:33:22 +01:00
Increase the maximum description length to 240 characters in the Activity view (#42041).
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23420 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -414,7 +414,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def format_activity_description(text)
|
||||
h(text.to_s.truncate(120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).
|
||||
h(text.to_s.truncate(240).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).
|
||||
gsub(/[\r\n]+/, "<br />").html_safe
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user