|
|
@ -12,10 +12,11 @@ json.tasks @tasks.each do |task|
|
|
|
|
json.name task.name
|
|
|
|
json.name task.name
|
|
|
|
json.private_icon !task.is_public
|
|
|
|
json.private_icon !task.is_public
|
|
|
|
json.task_status task.status #6.12 -hs
|
|
|
|
json.task_status task.status #6.12 -hs
|
|
|
|
json.status task_curr_status(task, @course)[:status]
|
|
|
|
task_curr_status = task_curr_status(task, @course)
|
|
|
|
json.status_time task_curr_status(task, @course)[:time]
|
|
|
|
json.status task_curr_status[:status]
|
|
|
|
|
|
|
|
json.status_time task_curr_status[:time]
|
|
|
|
|
|
|
|
|
|
|
|
unless task_curr_status(task, @course)[:status].include?("未发布")
|
|
|
|
unless task_curr_status[:status].include?("未发布")
|
|
|
|
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
|
|
|
|
end
|
|
|
|
end
|
|
|
|