mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 14:34:03 +08:00
init project
This commit is contained in:
12
app/views/courses/online_learning.json.jbuilder
Normal file
12
app/views/courses/online_learning.json.jbuilder
Normal file
@@ -0,0 +1,12 @@
|
||||
json.stages @stages do |stage|
|
||||
json.partial! 'stages/stage', locals: {stage: stage, user: @user, subject: @subject, myshixuns: @myshixuns}
|
||||
end
|
||||
|
||||
# json.description @subject&.description
|
||||
|
||||
json.start_learning @start_learning
|
||||
json.subject_id @subject.id
|
||||
|
||||
json.learned @start_learning ? @course.my_subject_progress(@myshixuns) : 0
|
||||
|
||||
json.last_shixun @start_learning ? last_subject_shixun(@course, @myshixuns) : ""
|
||||
Reference in New Issue
Block a user