配置班级列表的名称显示全

This commit is contained in:
cxt 2016-07-29 20:18:26 +08:00
parent 72977886c7
commit b3d34d6e0f
4 changed files with 6 additions and 4 deletions

View File

@ -397,6 +397,8 @@ class CoursesService
if course
if course_endTime_timeout? course
@state = 2
elsif course[:is_delete] == 1
@state = 11
else
if current_user.member_of_course?(course) #如果已经是成员
@state = 3

View File

@ -7,7 +7,7 @@
</span>
</td>
<td align="center">
<%= link_to(course.teacher.show_name.truncate(6, omission: '...'), user_path(course.teacher)) %>
<%= link_to(course.teacher.show_name, user_path(course.teacher)) %>
</td>
<td align="center">
<%= course.class_period %>

View File

@ -72,7 +72,7 @@
</span>
</td>
<td align="center">
<%= link_to(course.teacher.show_name.truncate(6, omission: '...'), user_path(course.teacher)) %>
<%= link_to(course.teacher.show_name, user_path(course.teacher)) %>
</td>
<td align="center">
<%= course.class_period %>

View File

@ -52,7 +52,7 @@
<td class="center">
</td>
<td align="center">
<%= link_to(syllabus.try(:user).try(:realname).truncate(6, omission: '...'), user_path(syllabus.user)) %>
<%= link_to syllabus.user.show_name, user_path(syllabus.user) %>
</td>
<td class="center">
<%= format_date(syllabus.created_at) %>
@ -70,7 +70,7 @@
<%= render :partial => 'admin/rename_course_name', :locals => {:course => course} %>
</td>
<td align="center">
<%= link_to(course.try(:teacher).try(:realname).truncate(6, omission: '...'), user_path(course.teacher)) %>
<%= link_to(course.teacher.show_name, user_path(course.teacher)) %>
</td>
<td class="center">
<%= format_date(course.created_at) %>