字符截断

This commit is contained in:
lizanle 2015-04-17 10:45:49 +08:00
parent 8cee159cb7
commit 43442d6f62
1 changed files with 2 additions and 2 deletions

View File

@ -394,9 +394,9 @@ module ApplicationHelper
def format_version_name(version)
if version.project == @project
h(truncate(version.name,:length=>30))
h(truncate(version.name,:length=>20))
else
h("#{version.project} - #{truncate(version.name,:length=>30)}")
h("#{version.project} - #{truncate(version.name,:length=>20)}")
end
end