修改课程老师名称过长时页面显示异常

This commit is contained in:
sw 2014-11-20 09:30:04 +08:00
parent 4633a13a59
commit 43f9d82f5e
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
</span>
<span class='font_bolder'>
<%= link_to(course.try(:teacher).try(:realname), user_path(course.teacher)) %>
<%= link_to(course.try(:teacher).try(:realname).truncate(6, omission: '...'), user_path(course.teacher)) %>
<%#=course.try(:teacher).try(:name)%>
</span>
</div>