parent
8a25eaeebd
commit
887171cf7e
@ -0,0 +1,21 @@
|
||||
|
||||
json.members @members do |member|
|
||||
json.partial! 'subject_member', locals: { user: member.user }
|
||||
json.role member.role
|
||||
end
|
||||
|
||||
# 技能标签
|
||||
json.tags @tags do |tag|
|
||||
unless tag.blank?
|
||||
json.tag_name tag
|
||||
json.status @user_tags.include?(tag)
|
||||
end
|
||||
end
|
||||
|
||||
# 我的进展
|
||||
json.progress do
|
||||
json.my_score @subject.my_subject_score
|
||||
json.all_score @subject.all_score
|
||||
json.learned @subject.my_subject_progress
|
||||
json.time @subject.my_consume_time
|
||||
end
|
Loading…
Reference in new issue