You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/shixuns/_top.json.jbuilder

19 lines
743 B

6 years ago
json.status shixun.status
# REDO:前端需要通过status来判断发布
json.task_operation task_operation_url(current_myshixun, shixun)
json.can_fork @can_fork
json.can_copy shixun.can_copy
if shixun.can_copy
json.fork_num shixun.fork_count
end
json.identifier shixun.identifier
json.name shixun.name
json.stu_num shixun.myshixuns_count
json.experience shixun.all_score
json.diffcult diff_to_s(shixun.trainee)
6 years ago
json.score_info shixun.shixun_preference_info # todo: 这块可以改成只显示实训的平均分,不用每次都去取每种星的分数了。
6 years ago
# 用于是否显示导航栏中的'背景知识'
json.propaedeutics shixun.propaedeutics.present?