分组作业报500

This commit is contained in:
cxt 2015-12-11 18:00:55 +08:00
parent 1674391e4b
commit 1d2b6165ef
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
<% end %>
<div class="cl"></div>
<span class="fl fontGrey2" id="relate_project_show">
<% if @homework %>
<% if @homework && @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
<% unless @homework.student_work_projects.where("user_id = #{User.current.id}").empty? %>
<% project = Project.find @homework.student_work_projects.where("user_id = #{User.current.id}").first.project_id %>
关联项目:<%=project.name %>