<% projects = activity.student_work_projects.where("is_leader = 1") %>
-
+
已关联项目:<%='各小组尚未将小组项目关联到本次作业。' if projects.empty? %>
diff --git a/app/views/users/_course_homework.html.erb b/app/views/users/_course_homework.html.erb
index 2e492911a..793f5ba39 100644
--- a/app/views/users/_course_homework.html.erb
+++ b/app/views/users/_course_homework.html.erb
@@ -148,7 +148,7 @@
<% if activity.homework_type == 3 && activity.homework_detail_group.base_on_project == 1 %>
<% projects = activity.student_work_projects.where("is_leader = 1") %>
-
+
已关联项目:<%='各小组尚未将小组项目关联到本次作业。' if projects.empty? %>
@@ -300,4 +300,4 @@
+
diff --git a/app/views/users/_user_homework_detail.html.erb b/app/views/users/_user_homework_detail.html.erb
index d2420491c..05077eb26 100644
--- a/app/views/users/_user_homework_detail.html.erb
+++ b/app/views/users/_user_homework_detail.html.erb
@@ -150,7 +150,7 @@
<% if homework_common.homework_type == 3 && homework_common.homework_detail_group.base_on_project == 1 %>
<% projects = homework_common.student_work_projects.where("is_leader = 1") %>
-
+
已关联项目:<%='各小组尚未将小组项目关联到本次作业。' if projects.empty? %>