字符截断
This commit is contained in:
parent
8cee159cb7
commit
43442d6f62
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue