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