|
|
@ -26,6 +26,9 @@ if @task.published? || @user_course_identity < Course::STUDENT
|
|
|
|
|
|
|
|
|
|
|
|
# 是否具有分组
|
|
|
|
# 是否具有分组
|
|
|
|
json.have_grouping @task.have_grouping?
|
|
|
|
json.have_grouping @task.have_grouping?
|
|
|
|
|
|
|
|
# 是否关联项目
|
|
|
|
|
|
|
|
json.have_project @task.have_grouping? && @task.base_on_project
|
|
|
|
|
|
|
|
|
|
|
|
if @user_course_identity == Course::STUDENT
|
|
|
|
if @user_course_identity == Course::STUDENT
|
|
|
|
json.commit_count grduationwork_count @task, 1
|
|
|
|
json.commit_count grduationwork_count @task, 1
|
|
|
|
json.uncommit_count grduationwork_count @task, 0
|
|
|
|
json.uncommit_count grduationwork_count @task, 0
|
|
|
|