|
|
|
@ -3,14 +3,14 @@ json.creator do
|
|
|
|
|
json.partial! 'users/user', locals: { user: shixun.owner }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 推荐实训
|
|
|
|
|
json.recommands do
|
|
|
|
|
json.partial! 'shap_shixun', locals: { shixuns: recommend_shixun(shixun) }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 相关路径
|
|
|
|
|
json.paths do
|
|
|
|
|
json.partial! 'subjects/subject', locals: {subjects: relation_path(shixun)}
|
|
|
|
|
json.partial! 'subjects/subject', locals: {subjects: shixun.relation_path}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 推荐实训
|
|
|
|
|
json.recommands do
|
|
|
|
|
json.partial! 'shap_shixun', locals: { shixuns: shixun.relation_path.size > 0 ? recommend_shixun(shixun) : [] }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 技能标签
|
|
|
|
|