分组作业的作品列表显示“X组已交”

This commit is contained in:
cxt 2016-10-24 11:17:23 +08:00
parent 40a895a786
commit 9c4eed3cdd
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<span class="c_dark f14 fb fl mr15">
作品
<font class="f12 c_red">
(<span id="student_work_count"><%= @student_work_count%></span>人已交)
(<span id="student_work_count"><%= @student_work_count%></span><%=@homework.homework_type == 3 ? '组' : '' %>已交)
</font>
<%# my_work = @homework.student_works.where("user_id = #{User.current.id}").first %>
<% my_work = cur_user_works_for_homework @homework %>